mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 17:51:47 +01:00
24 lines
597 B
C++
24 lines
597 B
C++
#pragma once
|
|
#include <string>
|
|
class SoundStream final
|
|
{
|
|
public:
|
|
explicit SoundStream( const std::string& path );
|
|
~SoundStream( );
|
|
SoundStream( const SoundStream& other ) = delete;
|
|
SoundStream& operator=( const SoundStream& rhs ) = delete;
|
|
SoundStream(SoundStream&& other) = delete;
|
|
SoundStream& operator=(SoundStream&& other) = delete;
|
|
|
|
bool IsLoaded( ) const;
|
|
bool Play( bool repeat ) const;
|
|
static void Stop( );
|
|
static void Pause( );
|
|
static void Resume( );
|
|
static void SetVolume(int value );
|
|
static int GetVolume( );
|
|
static bool IsPlaying( );
|
|
|
|
private:
|
|
Mix_Music *m_pMixMusic;
|
|
}; |