CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
AudioMetadata.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10namespace CeresEngine {
11
13 struct AudioMetadata final {
15 using Channels = unsigned int;
16
18 using SampleRate = unsigned int;
19
21 using SampleCount = unsigned int;
22
23 public:
26
29
32
33 public:
39 };
40
41} // namespace CeresEngine
Definition Application.hpp:19
A class collecting audio metadata information.
Definition AudioMetadata.hpp:13
unsigned int Channels
A type defining the channel count representation.
Definition AudioMetadata.hpp:15
SampleCount sampleCount
The number of samples in the audio.
Definition AudioMetadata.hpp:31
AudioMetadata(Channels channels, SampleRate sampleRate, SampleCount sampleCount)
Creates a new audio metadata object.
unsigned int SampleCount
A type defining the number of counts representation.
Definition AudioMetadata.hpp:21
SampleRate sampleRate
The audio clip sample rate in Hz.
Definition AudioMetadata.hpp:28
unsigned int SampleRate
A type defining the sample rate representation.
Definition AudioMetadata.hpp:18
Channels channels
The number of channels in the audio.
Definition AudioMetadata.hpp:25