This commit is contained in:
2024-02-27 10:10:02 +01:00
parent c0aea669c7
commit 547809c898
131 changed files with 65609 additions and 0 deletions

24
Engine/SoundStream.h Normal file
View File

@@ -0,0 +1,24 @@
#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;
};