mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 01:59:19 +01:00
Init
This commit is contained in:
24
Engine/SoundEffect.h
Normal file
24
Engine/SoundEffect.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
class Mix_Chunk;
|
||||
class SoundEffect final
|
||||
{
|
||||
public:
|
||||
explicit SoundEffect( const std::string& path );
|
||||
~SoundEffect( );
|
||||
SoundEffect(const SoundEffect& other) = delete;
|
||||
SoundEffect& operator=(const SoundEffect& rhs) = delete;
|
||||
SoundEffect( SoundEffect&& other) = delete;
|
||||
SoundEffect& operator=( SoundEffect&& rhs) = delete;
|
||||
|
||||
bool IsLoaded( ) const;
|
||||
bool Play( const int loops ) const;
|
||||
void SetVolume( const int value );
|
||||
int GetVolume( ) const;
|
||||
static void StopAll( );
|
||||
static void PauseAll( );
|
||||
static void ResumeAll( );
|
||||
|
||||
private:
|
||||
Mix_Chunk* m_pMixChunk;
|
||||
};
|
||||
Reference in New Issue
Block a user