Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
SoundSystem.hpp
1/*
2Copyright (C) 2017-2019,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_SOUNDSYSTEM_H
17#define AEONGAMES_SOUNDSYSTEM_H
18
20#include <memory>
21#include <functional>
22
23namespace AeonGames
24{
25 class StringId;
28 {
29 public:
30 private:
31 };
32
38 DLL std::unique_ptr<SoundSystem> ConstructSoundSystem ( const StringId& aIdentifier );
40 DLL bool RegisterSoundSystemConstructor ( const StringId& aIdentifier, const std::function<std::unique_ptr<SoundSystem>() >& aConstructor );
42 DLL bool UnregisterSoundSystemConstructor ( const StringId& aIdentifier );
44 DLL void EnumerateSoundSystemConstructors ( const std::function<bool ( const StringId& ) >& aEnumerator );
46}
47#endif
Platform-specific macros, includes, and DLL export/import definitions.
Abstract interface for a platform sound system back-end.
CRC-based compile-time string identifier.
Definition StringId.hpp:31
<- This is here just for the literals
Definition AABB.hpp:31
DLL bool RegisterSoundSystemConstructor(const StringId &aIdentifier, const std::function< std::unique_ptr< SoundSystem >() > &aConstructor)
Registers a SoundSystem loader for a specific identifier.
DLL void EnumerateSoundSystemConstructors(const std::function< bool(const StringId &) > &aEnumerator)
Enumerates SoundSystem loader identifiers via an enumerator functor.
DLL std::unique_ptr< SoundSystem > ConstructSoundSystem(const StringId &aIdentifier)
Construct a SoundSystem back-end for the given identifier.
DLL bool UnregisterSoundSystemConstructor(const StringId &aIdentifier)
Unregisters a SoundSystem loader for a specific identifier.