mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 12:48:00 -05:00
Added audren:u#GetAudioRendererState
This commit is contained in:
@ -49,9 +49,14 @@ void Stream::Play() {
|
||||
}
|
||||
|
||||
void Stream::Stop() {
|
||||
state = State::Stopped;
|
||||
ASSERT_MSG(false, "Unimplemented");
|
||||
}
|
||||
|
||||
u32 Stream::GetState() const {
|
||||
return static_cast<u32>(state);
|
||||
}
|
||||
|
||||
s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const {
|
||||
const std::size_t num_samples{buffer.GetSamples().size() / GetNumChannels()};
|
||||
return CoreTiming::usToCycles((static_cast<u64>(num_samples) * 1000000) / sample_rate);
|
||||
|
Reference in New Issue
Block a user