|
|
|
|
26
|
/// set p to NULL to dynamically allocate the object
|
26
|
/// set p to NULL to dynamically allocate the object
|
27
|
/// fn and chIdx are optional - set fn to NULL to allocate the reader without opening a file.
|
27
|
/// fn and chIdx are optional - set fn to NULL to allocate the reader without opening a file.
|
28
|
/// If fn is valid then chIdx must also be valid.
|
28
|
/// If fn is valid then chIdx must also be valid.
|
29
|
- /// Set 'endSmpIdx' to cmInvalidIdx to not limit the range of samples returned.
|
|
|
|
|
29
|
+ /// Set 'endSmpIdx' to cmInvalidIdx to return the entire signal in cmAudioFileRdRead().
|
|
|
30
|
+ /// Set 'endSmpIdx' to 0 to return all samples between 0 and the end of the file.
|
30
|
cmAudioFileRd* cmAudioFileRdAlloc( cmCtx* c, cmAudioFileRd* p, unsigned procSmpCnt, const char* fn, unsigned chIdx, unsigned begSmpIdx, unsigned endSmpIdx );
|
31
|
cmAudioFileRd* cmAudioFileRdAlloc( cmCtx* c, cmAudioFileRd* p, unsigned procSmpCnt, const char* fn, unsigned chIdx, unsigned begSmpIdx, unsigned endSmpIdx );
|
31
|
cmRC_t cmAudioFileRdFree( cmAudioFileRd** p );
|
32
|
cmRC_t cmAudioFileRdFree( cmAudioFileRd** p );
|
32
|
cmRC_t cmAudioFileRdOpen( cmAudioFileRd* p, unsigned procSmpCnt, const cmChar_t* fn, unsigned chIdx, unsigned begSmpIdx, unsigned endSmpIdx );
|
33
|
cmRC_t cmAudioFileRdOpen( cmAudioFileRd* p, unsigned procSmpCnt, const cmChar_t* fn, unsigned chIdx, unsigned begSmpIdx, unsigned endSmpIdx );
|