Added a DisplayWaveform method on a frame, to help debug audio issues. It uses ImageMagick to draw each channel and all samples in each channel.

This commit is contained in:
Jonathan Thomas
2011-10-24 17:32:26 -05:00
parent 43fd6c33d0
commit 81941041e3
4 changed files with 88 additions and 5 deletions

View File

@@ -429,6 +429,10 @@ void FFmpegReader::ProcessAudioPacket(int requested_frame, int target_frame, int
packet.size -= sample_count;
}
cout << "Added Audio Samples: " << packet_samples << endl;
for (int channel_filter = 0; channel_filter < info.channels; channel_filter++)
{
// Array of floats (to hold samples for each channel)