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.
21 lines
398 B
21 lines
398 B
#pragma once |
|
|
|
#include "devilution.h" |
|
|
|
#include <SDL_mixer.h> |
|
|
|
namespace dvl { |
|
|
|
struct DirectSoundBuffer final : public IDirectSoundBuffer { |
|
public: |
|
void Release() override; |
|
bool IsPlaying() override; |
|
void Play(int lVolume, int lPan) override; |
|
void Stop() override; |
|
int SetChunk(BYTE *fileData, DWORD dwBytes) override; |
|
|
|
private: |
|
Mix_Chunk *chunk; |
|
}; |
|
|
|
} // namespace dvl
|
|
|