mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14: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;
|
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) {
|
if (framesJustRead == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -535,7 +535,7 @@ mal_uint64 mal_resampler_seek__passthrough(mal_resampler* pResampler, mal_uint64
|
|||||||
framesToRead = frameCount;
|
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;
|
totalFramesRead += framesRead;
|
||||||
frameCount -= framesRead;
|
frameCount -= framesRead;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user