11 changed files with 33 additions and 56 deletions
@ -1,17 +0,0 @@
|
||||
#pragma once |
||||
|
||||
namespace dvl { |
||||
|
||||
struct IDirectSoundBuffer { |
||||
virtual void Release() = 0; |
||||
virtual bool IsPlaying() = 0; |
||||
virtual void Play(int lVolume, int lPan) = 0; |
||||
virtual void Stop() = 0; |
||||
virtual int SetChunk(BYTE *fileData, DWORD dwBytes) = 0; |
||||
}; |
||||
|
||||
typedef IDirectSoundBuffer *LPDIRECTSOUNDBUFFER; |
||||
|
||||
const auto DVL_ERROR_SUCCESS = 0L; |
||||
|
||||
} // namespace dvl
|
||||
@ -0,0 +1,18 @@
|
||||
#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
|
||||
@ -1,21 +0,0 @@
|
||||
#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
|
||||
Loading…
Reference in new issue