Skip to content

Commit

Permalink
Update miniaudio_device.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat authored Sep 7, 2024
1 parent be3613d commit 98b2d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/audio/miniaudio_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 98b2d10

Please sign in to comment.