mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
Replace verify() with ensure() with auto src location.
Expression ensure(x) returns x. Using comma operator removed.
This commit is contained in:
parent
38745e5782
commit
e055d16b2c
121 changed files with 693 additions and 690 deletions
|
@ -363,7 +363,7 @@ bool microphone_device::has_data() const
|
|||
|
||||
u32 microphone_device::capture_audio()
|
||||
{
|
||||
verify(HERE), sample_size > 0;
|
||||
ensure(sample_size > 0);
|
||||
|
||||
u32 num_samples = inbuf_size / sample_size;
|
||||
|
||||
|
@ -412,7 +412,7 @@ void microphone_device::get_raw(const u32 num_samples)
|
|||
}
|
||||
break;
|
||||
case microphone_handler::singstar:
|
||||
verify(HERE), sample_size == 4;
|
||||
ensure(sample_size == 4);
|
||||
|
||||
// Mixing the 2 mics as if channels
|
||||
if (input_devices.size() == 2)
|
||||
|
@ -466,7 +466,7 @@ void microphone_device::get_dsp(const u32 num_samples)
|
|||
}
|
||||
break;
|
||||
case microphone_handler::singstar:
|
||||
verify(HERE), sample_size == 4;
|
||||
ensure(sample_size == 4);
|
||||
|
||||
// Mixing the 2 mics as if channels
|
||||
if (input_devices.size() == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue