7 #ifndef NAZARA_SOUND_HPP 8 #define NAZARA_SOUND_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Audio/Enums.hpp> 12 #include <Nazara/Audio/SoundBuffer.hpp> 13 #include <Nazara/Audio/SoundEmitter.hpp> 26 void EnableLooping(
bool loop)
override;
29 UInt32 GetDuration()
const override;
30 UInt32 GetPlayingOffset()
const override;
31 SoundStatus GetStatus()
const override;
33 bool IsLooping()
const override;
34 bool IsPlayable()
const;
35 bool IsPlaying()
const;
37 bool LoadFromFile(
const String& filePath,
const SoundBufferParams& params = SoundBufferParams());
38 bool LoadFromMemory(
const void* data, std::size_t size,
const SoundBufferParams& params = SoundBufferParams());
39 bool LoadFromStream(
Stream& stream,
const SoundBufferParams& params = SoundBufferParams());
41 void Pause()
override;
45 void SetPlayingOffset(UInt32 offset);
57 #endif // NAZARA_SOUND_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a string.
Definition: String.hpp:22
Audio class that represents a sound.
Definition: Sound.hpp:17
Audio class that represents a sound source, that emits sound.
Definition: SoundEmitter.hpp:19
Audio class that represents a buffer for sound.
Definition: SoundBuffer.hpp:43
Core class that represents a stream.
Definition: Stream.hpp:19