diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-13 04:12:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 04:12:47 +0200 |
commit | ce23ae3edec94b4e28632c953449241b1a2c321e (patch) | |
tree | 86493754ac94f58f67fba93b0f402407806dcfc9 | |
parent | Merge pull request #655 from bunnei/pred-lt-nan (diff) | |
parent | We only need to alert for memory pool changes (diff) | |
download | yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar.gz yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar.bz2 yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar.lz yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar.xz yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.tar.zst yuzu-ce23ae3edec94b4e28632c953449241b1a2c321e.zip |
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 2da936b27..b7f591c6d 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -47,7 +47,7 @@ public: // Start the audio event CoreTiming::ScheduleEvent(audio_ticks, audio_event); - voice_status_list.reserve(worker_params.voice_count); + voice_status_list.resize(worker_params.voice_count); } ~IAudioRenderer() { CoreTiming::UnscheduleEvent(audio_event, 0); @@ -87,8 +87,6 @@ private: memory_pool[i].state = MemoryPoolStates::Attached; else if (mem_pool_info[i].pool_state == MemoryPoolStates::RequestDetach) memory_pool[i].state = MemoryPoolStates::Detached; - else - memory_pool[i].state = mem_pool_info[i].pool_state; } std::memcpy(output.data() + sizeof(UpdateDataHeader), memory_pool.data(), response_data.memory_pools_size); @@ -183,7 +181,9 @@ private: behavior_size = 0xb0; memory_pools_size = (config.effect_count + (config.voice_count * 4)) * 0x10; voices_size = config.voice_count * 0x10; + voice_resource_size = 0x0; effects_size = config.effect_count * 0x10; + mixes_size = 0x0; sinks_size = config.sink_count * 0x20; performance_manager_size = 0x10; total_size = sizeof(UpdateDataHeader) + behavior_size + memory_pools_size + |