mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Fix bugs in the resource manager.
This commit is contained in:
@@ -2510,6 +2510,10 @@ static ma_result ma_mixer_mix_data_source_mmap(ma_mixer* pMixer, ma_data_source*
|
||||
if (pEffect == NULL) {
|
||||
/* Fast path. Mix directly from the data source and don't bother applying an effect. */
|
||||
result = ma_data_source_map(pDataSource, &pMappedBuffer, &framesToProcess);
|
||||
if (result != MA_SUCCESS) {
|
||||
break; /* Failed to map. Abort. */
|
||||
}
|
||||
|
||||
if (framesToProcess == 0) {
|
||||
break; /* Wasn't able to map any data. Abort. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user