mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-29 06:36:41 +00:00
Merge pull request #4247 from FearlessTobi/port-1314
Port yuzu-emu/yuzu#1314: "audio_core/time_stretch: Silence truncation warnings in Process()"
This commit is contained in:
commit
7db46da4fc
|
@ -62,8 +62,8 @@ std::size_t TimeStretcher::Process(const s16* in, std::size_t num_in, s16* out,
|
||||||
LOG_DEBUG(Audio, "{:5}/{:5} ratio:{:0.6f} backlog:{:0.6f}", num_in, num_out, stretch_ratio,
|
LOG_DEBUG(Audio, "{:5}/{:5} ratio:{:0.6f} backlog:{:0.6f}", num_in, num_out, stretch_ratio,
|
||||||
backlog_fullness);
|
backlog_fullness);
|
||||||
|
|
||||||
sound_touch->putSamples(in, num_in);
|
sound_touch->putSamples(in, static_cast<u32>(num_in));
|
||||||
return sound_touch->receiveSamples(out, num_out);
|
return sound_touch->receiveSamples(out, static_cast<u32>(num_out));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimeStretcher::Clear() {
|
void TimeStretcher::Clear() {
|
||||||
|
|
Loading…
Reference in a new issue