diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-12 00:23:56 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-12 00:23:56 +0100 |
| commit | a9b7b73bc1bbe47affa034a7dec09b7acbd0e267 (patch) | |
| tree | ad038c6ad424bb4abe4b3a5bf651a7adac07def5 /maximilian.h | |
| parent | 5172ef13c1e5949eb80ffced4e85f6cafbb5b173 (diff) | |
Support for loading a specific channel from a stereo wav file as an argument to the load function. Default is channel 0
Diffstat (limited to 'maximilian.h')
| -rwxr-xr-x | maximilian.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/maximilian.h b/maximilian.h index a2a913f..34c91c2 100755 --- a/maximilian.h +++ b/maximilian.h @@ -167,6 +167,7 @@ private: string myPath; int myChunkSize; int mySubChunk1Size; + int readChannel; short myFormat; int myByteRate; short myBlockAlign; @@ -202,7 +203,7 @@ public: // maxiSample(); - bool load(string fileName); + bool load(string fileName, int channel=0); void trigger(); |
