Commit 22b958b4 authored by David Reid's avatar David Reid

Rename ma_lpf to ma_lpf2.

parent f028e65e
This diff is collapsed.
...@@ -69,8 +69,8 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi ...@@ -69,8 +69,8 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
ma_result result; ma_result result;
ma_decoder decoder; ma_decoder decoder;
drwav wav; drwav wav;
ma_lpf_config lpfConfig; ma_lpf2_config lpfConfig;
ma_lpf lpf; ma_lpf2 lpf;
printf(" %s\n", pOutputFilePath); printf(" %s\n", pOutputFilePath);
...@@ -79,8 +79,8 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi ...@@ -79,8 +79,8 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
return result; return result;
} }
lpfConfig = ma_lpf_config_init(decoder.outputFormat, decoder.outputChannels, decoder.outputSampleRate, 2000); lpfConfig = ma_lpf2_config_init(decoder.outputFormat, decoder.outputChannels, decoder.outputSampleRate, 2000);
result = ma_lpf_init(&lpfConfig, &lpf); result = ma_lpf2_init(&lpfConfig, &lpf);
if (result != MA_SUCCESS) { if (result != MA_SUCCESS) {
ma_decoder_uninit(&decoder); ma_decoder_uninit(&decoder);
drwav_uninit(&wav); drwav_uninit(&wav);
...@@ -99,7 +99,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi ...@@ -99,7 +99,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
framesJustRead = ma_decoder_read_pcm_frames(&decoder, tempIn, framesToRead); framesJustRead = ma_decoder_read_pcm_frames(&decoder, tempIn, framesToRead);
/* Filter */ /* Filter */
ma_lpf_process_pcm_frames(&lpf, tempOut, tempIn, framesJustRead); ma_lpf2_process_pcm_frames(&lpf, tempOut, tempIn, framesJustRead);
/* Write to the WAV file. */ /* Write to the WAV file. */
drwav_write_pcm_frames(&wav, framesJustRead, tempOut); drwav_write_pcm_frames(&wav, framesJustRead, tempOut);
......
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