34 #ifndef PTLIB_PWAVFILEDEV_H
35 #define PTLIB_PWAVFILEDEV_H
47 #if defined(P_WAVFILE)
59 PSoundChannel_WAVFile();
60 ~PSoundChannel_WAVFile();
62 bool Open(
const Params & params);
70 unsigned bitsPerSample);
85 bool ReadSamples(
void * data, PINDEX size);
86 bool ReadSample(
short * data,
unsigned channels);
87 void CopyMerge(
short * & output,
const short * wavSample,
unsigned wavChannels);
92 unsigned m_sampleRate;
96 PINDEX m_samplePosition;
100 #endif // defined(P_WAVFILE)
102 #endif // PTLIB_PWAVFILEDEV_H