AudioDecoder destructor

This commit is contained in:
Dr. Chat
2015-05-22 22:02:11 -05:00
parent a69d1b7f04
commit 3389b9e421
2 changed files with 18 additions and 0 deletions

View File

@@ -95,11 +95,14 @@ X_STATUS AudioSystem::Setup() {
// Create a new decoder per context
// Needed because some data needs to be persisted across calls
// TODO: Need to destroy this on class destruction
xma_context_array_[i].decoder = new AudioDecoder();
xma_context_array_[i].decoder->Initialize(16);
}
registers_.next_context = 1;
// Threads
worker_running_ = true;
worker_thread_ = new kernel::XHostThread(emulator()->kernel_state(),
128 * 1024, 0, [this]() {