Upgrade Audio (part 2)

This commit is contained in:
Jérôme Leclercq
2021-05-24 22:09:47 +02:00
parent ac57b3fbf4
commit 8cdd0b51cb
15 changed files with 158 additions and 104 deletions

View File

@@ -9,27 +9,32 @@
namespace Nz
{
enum AudioFormat
enum class AudioFormat
{
AudioFormat_Unknown = -1,
Unknown = -1,
// The integer value is the number of channels used by the format
AudioFormat_Mono = 1,
AudioFormat_Stereo = 2,
AudioFormat_Quad = 4,
AudioFormat_5_1 = 6,
AudioFormat_6_1 = 7,
AudioFormat_7_1 = 8,
U16_Mono,
U16_Stereo,
U16_Quad,
U16_5_1,
U16_6_1,
U16_7_1,
AudioFormat_Max = AudioFormat_7_1
Max = U16_7_1
};
enum SoundStatus
constexpr std::size_t AudioFormatCount = static_cast<std::size_t>(AudioFormat::Max) + 1;
enum class SoundStatus
{
SoundStatus_Playing,
SoundStatus_Paused,
SoundStatus_Stopped
Playing,
Paused,
Stopped,
Max = Stopped
};
constexpr std::size_t SoundStatusCount = static_cast<std::size_t>(SoundStatus::Max) + 1;
}
#endif // NAZARA_ENUMS_AUDIO_HPP