SoundSynth 1.1.1
A small compiled library with applications for C sound synthesis and playback functions. The library was compiled for Windows 64-bit and should work with 64- or 32-bit windows architectures.
Loading...
Searching...
No Matches
Implementation

Functions related to playback of synthesized tones or recording/saving files for later playback/use. More...

Functions

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)
 

Detailed Description

Functions related to playback of synthesized tones or recording/saving files for later playback/use.

Function Documentation

◆ 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
bufferThe pointer to the buffer containing audio signals.
formatThe format struct specifying format to play in.
numSamplesTotal 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 )