Functions related to playback of synthesized tones or recording/saving files for later playback/use.
More...
|
BOOL | isNumPadKeyPressed (int key) |
|
void | playAudio (HWAVEOUT hWaveOut, short *buffer, WAVEFORMATEX format, int numSamples) |
| Play audio stored in the provided buffer.
|
|
void | prepareAudioChannels (HWAVEOUT hWaveOut, WAVEHDR headers, short *buffers, int numSamplesPerChannel, WAVEFORMATEX format) |
|
void | updateWaveHeader (WAVEHDR *header, short *buffer) |
|
Functions related to playback of synthesized tones or recording/saving files for later playback/use.
◆ isNumPadKeyPressed()
BOOL isNumPadKeyPressed |
( |
int | key | ) |
|
◆ playAudio()
void playAudio |
( |
HWAVEOUT | hWaveOut, |
|
|
short * | buffer, |
|
|
WAVEFORMATEX | format, |
|
|
int | numSamples ) |
Play audio stored in the provided buffer.
This function plays audio stored in the buffer using the system's default audio output device.
- Parameters
-
buffer | The pointer to the buffer containing audio signals. |
format | The format struct specifying format to play in. |
numSamples | Total number of samples to play back. |
◆ prepareAudioChannels()
void prepareAudioChannels |
( |
HWAVEOUT | hWaveOut, |
|
|
WAVEHDR | headers, |
|
|
short * | buffers, |
|
|
int | numSamplesPerChannel, |
|
|
WAVEFORMATEX | format ) |
◆ updateWaveHeader()
void updateWaveHeader |
( |
WAVEHDR * | header, |
|
|
short * | buffer ) |