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.
24 lines
416 B
24 lines
416 B
|
6 years ago
|
#pragma once
|
||
|
5 years ago
|
|
||
|
6 years ago
|
#include <SDL_mixer.h>
|
||
|
|
|
||
|
5 years ago
|
#include "miniwin/miniwin.h"
|
||
|
5 years ago
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
5 years ago
|
class SoundSample final {
|
||
|
6 years ago
|
public:
|
||
|
5 years ago
|
void Release();
|
||
|
|
bool IsPlaying();
|
||
|
|
void Play(int lVolume, int lPan, int channel = -1);
|
||
|
|
void Stop();
|
||
|
5 years ago
|
int SetChunkStream(HANDLE stormHandle);
|
||
|
5 years ago
|
int SetChunk(BYTE *fileData, DWORD dwBytes);
|
||
|
|
int GetLength();
|
||
|
6 years ago
|
|
||
|
|
private:
|
||
|
|
Mix_Chunk *chunk;
|
||
|
5 years ago
|
};
|
||
|
6 years ago
|
|
||
|
5 years ago
|
} // namespace devilution
|