Added audren:u#GetAudioRendererState
This commit is contained in:
parent
b2845ff16b
commit
5d1edf66c1
5 changed files with 21 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue