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.
18 lines
315 B
18 lines
315 B
#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
|
|
|