Added in JUCE audio resampling, and have lots of resampling debug code still in place.

This commit is contained in:
Jonathan Thomas
2012-07-30 02:37:19 -05:00
parent 8387f503a6
commit efb38cc9d8
5 changed files with 165 additions and 24 deletions

View File

@@ -757,6 +757,17 @@ void FFmpegReader::ProcessAudioPacket(int requested_frame, int target_frame, int
// Add or update cache
my_cache->Add(f.number, f);
// DEBUG
// for (int s = start; s<samples; s++)
// if (f.number == 1 && s > 500)
// {
// cout << iterate_channel_buffer[s] << endl;
// }
// else if (f.number == 2 && s < 34)
// {
// cout << iterate_channel_buffer[s] << endl;
// }
}
// Decrement remaining samples