-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(audio): replace OpenAL audio device for Miniaudio backend (#1005)
- Loading branch information
1 parent
48bc4ab
commit b505f0e
Showing
9 changed files
with
300 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule openal-soft
deleted from
d3875f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#include "oal_audio_device.hpp" | ||
#include "miniaudio_device.hpp" | ||
|
||
using namespace cubos::core::al; | ||
|
||
std::shared_ptr<AudioDevice> AudioDevice::create(const std::string& specifier) | ||
std::shared_ptr<AudioDevice> AudioDevice::create() | ||
{ | ||
return std::make_shared<OALAudioDevice>(specifier); | ||
return std::make_shared<MiniaudioDevice>(); | ||
} | ||
|
||
void AudioDevice::enumerateDevices(std::vector<std::string>& devices) | ||
{ | ||
OALAudioDevice::enumerateDevices(devices); | ||
MiniaudioDevice::enumerateDevices(devices); | ||
} |
Oops, something went wrong.