Audio system overhaul for support of multiple audio drivers.

This commit is contained in:
gibbed
2014-01-25 03:18:22 -08:00
parent bbe50cfe26
commit 47c71d702a
13 changed files with 418 additions and 231 deletions

View File

@@ -24,18 +24,10 @@ NopAudioSystem::NopAudioSystem(Emulator* emulator) :
NopAudioSystem::~NopAudioSystem() {
}
void NopAudioSystem::Initialize() {
AudioSystem::Initialize();
X_STATUS NopAudioSystem::CreateDriver(size_t index, HANDLE wait_handle, AudioDriver** out_driver) {
return X_STATUS_NOT_IMPLEMENTED;
}
void NopAudioSystem::Pump() {
//
}
void NopAudioSystem::SubmitFrame(uint32_t frame_ptr) {
// Process samples! They are big-endian floats.
}
void NopAudioSystem::Shutdown() {
AudioSystem::Shutdown();
void NopAudioSystem::DestroyDriver(AudioDriver* driver) {
XEASSERTALWAYS();
}