|
BSAPI
|
An interface that allows to receive waveform. More...
#include <bsapi.h>
Public Types | |
| enum | wave_format_type { wfUnknown, wfUnsupported, wfLin16, wfLin8, wfALaw, wfMuLaw, wfFloat } |
| Waveform format. More... | |
Public Member Functions | |
| virtual bool BSAPI_METHOD | OnWaveform (SUnknownI *pSender, wave_format_type waveformFormat, int sampleFreq, int nChannels, void *pData, int nBytes, unsigned int flags)=0 |
| This function will receive waveform data from sender. | |
An interface that allows to receive waveform.
SWaveformSourceCallbackI is an interface that must each class that wants to receive waveform from the SAudioWaveformSourceI, SFileWaveformSourceI, SWaveformFormatConvertorI or SWaveformFilterI must implement.
Waveform format.
| wfUnknown |
The waveform format is not known. |
| wfUnsupported |
The waveform format does not have its own ID. It is not supported by SWaveformFormatConvertorI. |
| wfLin16 |
Linear coding, 16 bits per sample. |
| wfLin8 |
Linear coding, 8 bit per sample. |
| wfALaw |
A-law compression, 8 bits per sample. |
| wfMuLaw |
Mu-law compression, 8 bits per sample. |
| wfFloat |
Linear coding, array of floats. |
| virtual bool BSAPI_METHOD SWaveformSourceCallbackI::OnWaveform | ( | SUnknownI * | pSender, |
| wave_format_type | waveformFormat, | ||
| int | sampleFreq, | ||
| int | nChannels, | ||
| void * | pData, | ||
| int | nBytes, | ||
| unsigned int | flags | ||
| ) | [pure virtual] |
This function will receive waveform data from sender.
| pSender | pointer to source object |
| waveformFormat | format of the recived data. |
| sampleFreq | sampling frequency |
| nChannels | number of channels |
| pData | pointer to received data |
| nBytes | number of bytes received |
| flags | binary flags characterizing the transfer
|
1.7.5.1