Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
backgamon authored Oct 21, 2024
1 parent 20eed6a commit 2aedb7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ dword_result_t XAudioSubmitRenderDriverFrame_entry(lpunknown_t driver_ptr,
assert_true((driver_ptr.guest_address() & 0xFFFF0000) == 0x41550000);

auto audio_system = kernel_state()->emulator()->audio_system();
audio_system->SubmitFrame(driver_ptr.guest_address() & 0x0000FFFF,
samples_ptr);
auto samples =
kernel_state()->memory()->TranslateVirtual<float*>(samples_ptr);
audio_system->SubmitFrame(driver_ptr.guest_address() & 0x0000FFFF, samples);

return X_ERROR_SUCCESS;
}
Expand Down

0 comments on commit 2aedb7b

Please sign in to comment.