Supermodel/Src/OSD/Audio.h
Nik Henson 03fa9532eb - Added function-based interface Audio for OSD sound output, together with SDL implementation
- Added object interface CThread for OSD threading and synchronization, together with SDL implementation
- Added multi-threading to CModel3 so that separate CPUs (PPC of main board, 68K of sound board and Z80 of drive board) can be run in separate threads if requested to improve performance on multi-core PCs
- Added -multi-threaded command line option (default is to run single-threaded still)
2011-07-20 21:14:00 +00:00

32 lines
604 B
C
Executable file

#ifndef INCLUDED_AUDIO_H
#define INCLUDED_AUDIO_H
/*
* Audio.h
*
* Function-based interface for audio output.
*/
/*
* OpenAudio()
*
* Initializes the audio system.
*/
extern BOOL OpenAudio();
/*
* OutputAudio(unsigned numSamples, *INT16 leftBuffer, *INT16 rightBuffer)
*
* Sends a chunk of two-channel audio with the given number of samples to the audio system.
*/
extern void OutputAudio(unsigned numSamples, INT16 *leftBuffer, INT16 *rightBuffer);
/*
* CloseAudio()
*
* Shuts down the audio system.
*/
extern void CloseAudio();
#endif // INCLUDED_AUDIO_H