Commit ad488a10 authored by David Reid's avatar David Reid

Fix warnings with the new resampler.

parent 6f634d78
...@@ -492,7 +492,7 @@ mal_uint64 mal_resampler_read__passthrough(mal_resampler* pResampler, mal_uint64 ...@@ -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 ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment