mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Fix warnings with the new resampler.
This commit is contained in:
@@ -492,7 +492,7 @@ mal_uint64 mal_resampler_read__passthrough(mal_resampler* pResampler, mal_uint64
|
||||
framesToReadNow = frameCount;
|
||||
}
|
||||
|
||||
mal_uint32 framesJustRead = pResampler->config.onRead(pResampler, (mal_uint32)framesToReadNow, ppRunningFrames);
|
||||
mal_uint32 framesJustRead = pResampler->config.onRead(pResampler, (mal_uint32)framesToReadNow, (void**)ppRunningFrames);
|
||||
if (framesJustRead == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -535,7 +535,7 @@ mal_uint64 mal_resampler_seek__passthrough(mal_resampler* pResampler, mal_uint64
|
||||
framesToRead = frameCount;
|
||||
}
|
||||
|
||||
mal_uint64 framesRead = pResampler->config.onRead(pResampler, (mal_uint32)framesToRead, trash);
|
||||
mal_uint64 framesRead = pResampler->config.onRead(pResampler, (mal_uint32)framesToRead, (void**)trash);
|
||||
totalFramesRead += framesRead;
|
||||
frameCount -= framesRead;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user