mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
cellMic: only call get_data once
This commit is contained in:
parent
6a6cd82070
commit
80e1b1adf4
1 changed files with 6 additions and 4 deletions
|
@ -521,6 +521,12 @@ void microphone_device::update_audio()
|
|||
|
||||
const u32 num_samples = capture_audio();
|
||||
|
||||
if ((signal_types & CELLMIC_SIGTYPE_RAW) ||
|
||||
(signal_types & CELLMIC_SIGTYPE_DSP))
|
||||
{
|
||||
get_data(num_samples);
|
||||
}
|
||||
|
||||
if (signal_types & CELLMIC_SIGTYPE_RAW)
|
||||
{
|
||||
get_raw(num_samples);
|
||||
|
@ -661,8 +667,6 @@ void microphone_device::get_raw(const u32 num_samples)
|
|||
return;
|
||||
}
|
||||
|
||||
get_data(num_samples);
|
||||
|
||||
rbuf_raw.write_bytes(temp_buf.data(), num_samples * sample_size);
|
||||
}
|
||||
|
||||
|
@ -673,8 +677,6 @@ void microphone_device::get_dsp(const u32 num_samples)
|
|||
return;
|
||||
}
|
||||
|
||||
get_data(num_samples);
|
||||
|
||||
rbuf_dsp.write_bytes(temp_buf.data(), num_samples * sample_size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue