output/Source: convert runtime check to assert()
Flush() may only be called if the source is open.
This commit is contained in:
parent
4d8a2ea688
commit
d8bb833ba3
|
@ -240,7 +240,7 @@ AudioOutputSource::ConsumeData(size_t nbytes) noexcept
|
|||
std::span<const std::byte>
|
||||
AudioOutputSource::Flush()
|
||||
{
|
||||
return filter
|
||||
? filter->Flush()
|
||||
: std::span<const std::byte>{};
|
||||
assert(filter);
|
||||
|
||||
return filter->Flush();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue