SRC: Implement ma_speex_resampler_get_expected_output_frame_count().

This commit is contained in:
David Reid
2020-01-19 17:47:22 +10:00
parent f7ff9ee19e
commit 867e1ee7e4
2 changed files with 49 additions and 2 deletions
+7 -2
View File
@@ -802,8 +802,13 @@ ma_uint64 ma_resampler_get_expected_output_frame_count(ma_resampler* pResampler,
case ma_resample_algorithm_speex:
{
#if defined(MA_HAS_SPEEX_RESAMPLER)
/* TODO: Implement me. */
return 0;
ma_uint64 count;
int speexErr = ma_speex_resampler_get_expected_output_frame_count((SpeexResamplerState*)pResampler->state.speex.pSpeexResamplerState, inputFrameCount, &count);
if (speexErr != RESAMPLER_ERR_SUCCESS) {
return 0;
}
return count;
#else
break;
#endif