mirror of
https://github.com/mackron/miniaudio.git
synced 2026-06-29 17:42:42 +02:00
Fix warnings in the resampling test.
This commit is contained in:
@@ -98,9 +98,9 @@ static void resampler_data_callback(ma_device* pDevice, void* pFramesOut, const
|
|||||||
frameCountOut = frameCount - framesWritten;
|
frameCountOut = frameCount - framesWritten;
|
||||||
ma_resampler_process_pcm_frames(&pResamplerData->resampler, pResamplerData->cache, &frameCountIn, ma_offset_ptr(pFramesOut, framesWritten * bpf), &frameCountOut);
|
ma_resampler_process_pcm_frames(&pResamplerData->resampler, pResamplerData->cache, &frameCountIn, ma_offset_ptr(pFramesOut, framesWritten * bpf), &frameCountOut);
|
||||||
|
|
||||||
MA_MOVE_MEMORY(pResamplerData->cache, ma_offset_ptr(pResamplerData->cache, frameCountIn * bpf), (pResamplerData->cachedFrameCount - frameCountIn) * bpf);
|
MA_MOVE_MEMORY(pResamplerData->cache, ma_offset_ptr(pResamplerData->cache, frameCountIn * bpf), (size_t)((pResamplerData->cachedFrameCount - frameCountIn) * bpf));
|
||||||
pResamplerData->cachedFrameCount -= frameCountIn;
|
pResamplerData->cachedFrameCount -= (ma_uint32)frameCountIn;
|
||||||
framesWritten += frameCountOut;
|
framesWritten += (ma_uint32)frameCountOut;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user