2012-11-01 16:19:01 +01:00
|
|
|
#ifndef __SOUNDSTREAM_H__
|
|
|
|
#define __SOUNDSTREAM_H__
|
|
|
|
|
2013-07-28 21:01:49 -07:00
|
|
|
#include "Common/CommonWindows.h"
|
2012-11-17 22:44:29 +00:00
|
|
|
|
2015-01-11 14:11:09 +01:00
|
|
|
typedef int (*StreamCallback)(short *buffer, int numSamples, int bits, int rate, int channels);
|
2012-11-01 16:19:01 +01:00
|
|
|
|
2015-01-11 14:18:40 +01:00
|
|
|
bool DSound_StartSound(HWND window, StreamCallback _callback, int sampleRate);
|
2015-01-11 14:11:09 +01:00
|
|
|
void DSound_UpdateSound();
|
|
|
|
void DSound_StopSound();
|
2012-11-01 16:19:01 +01:00
|
|
|
|
2015-01-11 14:11:09 +01:00
|
|
|
int DSound_GetSampleRate();
|
2012-11-01 16:19:01 +01:00
|
|
|
|
|
|
|
#endif //__SOUNDSTREAM_H__
|