mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
Remove HERE macro
Some cleanup. Add location to some functions.
This commit is contained in:
parent
d25c401aec
commit
36c8654fb8
130 changed files with 969 additions and 889 deletions
|
@ -203,7 +203,7 @@ error_code microphone_device::open_microphone(const u8 type, const u32 dsp_r, co
|
|||
case microphone_handler::singstar:
|
||||
case microphone_handler::real_singstar:
|
||||
// SingStar mic has always 2 channels, each channel represent a physical microphone
|
||||
ASSERT(num_channels >= 2);
|
||||
ensure(num_channels >= 2);
|
||||
if (num_channels > 2)
|
||||
{
|
||||
cellMic.error("Tried to open a SingStar-type device with num_channels = %d", num_channels);
|
||||
|
@ -211,7 +211,7 @@ error_code microphone_device::open_microphone(const u8 type, const u32 dsp_r, co
|
|||
}
|
||||
break;
|
||||
case microphone_handler::rocksmith: num_channels = 1; break;
|
||||
default: ASSERT(false); break;
|
||||
default: ensure(false); break;
|
||||
}
|
||||
|
||||
ALCenum num_al_channels;
|
||||
|
@ -437,7 +437,7 @@ void microphone_device::get_raw(const u32 num_samples)
|
|||
}
|
||||
|
||||
break;
|
||||
default: ASSERT(false); break;
|
||||
default: ensure(false); break;
|
||||
}
|
||||
|
||||
rbuf_raw.write_bytes(tmp_ptr, num_samples * sample_size);
|
||||
|
@ -491,7 +491,7 @@ void microphone_device::get_dsp(const u32 num_samples)
|
|||
}
|
||||
|
||||
break;
|
||||
default: ASSERT(false); break;
|
||||
default: ensure(false); break;
|
||||
}
|
||||
|
||||
rbuf_dsp.write_bytes(tmp_ptr, num_samples * sample_size);
|
||||
|
@ -1009,7 +1009,7 @@ error_code cellMicGetStatus(s32 dev_num, vm::ptr<CellMicStatus> status)
|
|||
|
||||
error_code cellMicStopEx()
|
||||
{
|
||||
fmt::throw_exception("Unexpected function" HERE);
|
||||
fmt::throw_exception("Unexpected function");
|
||||
}
|
||||
|
||||
error_code cellMicSysShareClose()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue