Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
AudioClip.hpp
1#pragma once
2
3#include <vector>
4#include "EngineCore/Assets/Asset.hpp"
5#include "al.h"
6
7namespace Grindstone {
8 namespace Audio {
9 struct AudioClipAsset : public Asset {
11 Uuid uuid,
12 std::string_view name,
13 ALuint buffer,
14 std::uint32_t channelCount,
15 std::uint32_t sampleRate,
16 std::uint16_t bitsPerSample
17 ) : Asset(uuid, name),
18 buffer(buffer),
19 channelCount(channelCount),
20 sampleRate(sampleRate),
21 bitsPerSample(bitsPerSample) {}
22
23 ALuint buffer = -1;
24 std::uint32_t channelCount = 0;
25 std::uint32_t sampleRate = 0;
26 std::uint16_t bitsPerSample = 0;
27
28 DEFINE_ASSET_TYPE("AudioClipAsset", AssetType::AudioClip)
29 };
30 }
31}
Definition Uuid.hpp:6
Definition Asset.hpp:18
Definition AudioClip.hpp:9