CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Buffer.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
10#include "Forward.hpp"
11
14
15#include <cstdint>
16
17namespace CeresEngine {
18
22 UInt32 frequency = 44100;
23
26 UInt8 bitDepth = 8;
27
31 UInt8 channels = 1;
32
35 UInt32 size = 0;
36
38 void* data = nullptr;
39 };
40
46 public:
48 AudioAPIBuffer() = default;
49
52
55
57 virtual ~AudioAPIBuffer() = default;
58 };
59
60} // namespace CeresEngine
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
The Buffer class represents an audio buffer (or a piece of) which consists of a sequence of samples t...
Definition Buffer.hpp:45
AudioAPIBuffer()=default
The default constructor.
AudioAPIBuffer(const AudioAPIBuffer &)=delete
Deleted copy constructor.
virtual ~AudioAPIBuffer()=default
Virtual destructor.
AudioAPIBuffer & operator=(const AudioAPIBuffer &)=delete
Deleted copy assignment operator.
A simple reference counter base class.
Definition SmartPtr.hpp:438
Definition Application.hpp:19
std::uint8_t UInt8
Definition DataTypes.hpp:17
std::uint32_t UInt32
Definition DataTypes.hpp:23