mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
Update miniaudio_device.cpp
This commit is contained in:
parent
be3613d901
commit
98b2d10ea2
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ void MiniAudioDevice::init(Samples& samples, bool safe) {
|
|||
deviceConfig.dataCallback = [](ma_device* device, void* out, const void* input, ma_uint32 frameCount) {
|
||||
auto self = reinterpret_cast<MiniAudioDevice*>(device->pUserData);
|
||||
s16* output = reinterpret_cast<ma_int16*>(out);
|
||||
usize maxSamples = std::min(self->samples->Capacity(), (usize)(frameCount * channelCount));
|
||||
const usize maxSamples = std::min(self->samples->Capacity(), usize(frameCount * channelCount));
|
||||
|
||||
// Wait until there's enough samples to pop
|
||||
while (self->samples->size() < maxSamples) {
|
||||
|
|
Loading…
Add table
Reference in a new issue