You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
315 B
19 lines
315 B
|
6 years ago
|
#pragma once
|
||
|
|
#include <SDL_mixer.h>
|
||
|
|
|
||
|
|
namespace dvl {
|
||
|
|
|
||
|
|
typedef struct SoundSample final {
|
||
|
|
public:
|
||
|
|
void Release() ;
|
||
|
|
bool IsPlaying() ;
|
||
|
|
void Play(int lVolume, int lPan) ;
|
||
|
|
void Stop() ;
|
||
|
|
int SetChunk(BYTE *fileData, DWORD dwBytes) ;
|
||
|
|
|
||
|
|
private:
|
||
|
|
Mix_Chunk *chunk;
|
||
|
|
} SoundSample;
|
||
|
|
|
||
|
|
} // namespace dvl
|