CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
AudioAPI.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
13
15
16namespace CeresEngine {
17
18 class CE_SCRIPT_EXPORT() AudioAPI : public RefCounted<AudioAPI> {
19 public:
21 AudioAPI() = default;
22
24 AudioAPI(const AudioAPI&) = delete;
25
27 AudioAPI& operator=(const AudioAPI&) = delete;
28
30 virtual ~AudioAPI() = default;
31
32 public:
34 [[nodiscard]] CE_SCRIPT_EXPORT()
35 virtual AudioAPIDevicePtr getDefaultDevice() const = 0;
36 };
37
38} // 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
Definition AudioAPI.hpp:18
AudioAPI()=default
The default constructor.
virtual ~AudioAPI()=default
Virtual destructor.
AudioAPI(const AudioAPI &)=delete
Deleted copy constructor.
AudioAPI & operator=(const AudioAPI &)=delete
Deleted copy assignment operator.
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
A simple reference counter base class.
Definition SmartPtr.hpp:438
Definition Application.hpp:19