mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-30 20:01:00 +00:00
6108e36ae9
Add missing #include to various files. strings.h isn't provided by MSVC so we don't include it there; it's needed for other OSes/compilers. Get rid of pre-ISO-C malloc.h includes; malloc is provided by stdlib.h. Fixes some linuxisms. Prepend __builtin_ to __clear_cache, calling it without the prefix is a GNU extension.
20 lines
425 B
C++
20 lines
425 B
C++
#ifndef __SOUNDSTREAM_H__
|
|
#define __SOUNDSTREAM_H__
|
|
|
|
#include <windows.h>
|
|
|
|
namespace DSound
|
|
{
|
|
typedef int (*StreamCallback)(short *buffer, int numSamples, int bits, int rate, int channels);
|
|
|
|
bool DSound_StartSound(HWND window, StreamCallback _callback);
|
|
void DSound_UpdateSound();
|
|
void DSound_StopSound();
|
|
|
|
float DSound_GetTimer();
|
|
int DSound_GetCurSample();
|
|
int DSound_GetSampleRate();
|
|
}
|
|
|
|
|
|
#endif //__SOUNDSTREAM_H__
|