Refactored the audio waveform generation into the Timeline class. Added the ability to set the volume, and the ability to mix layers of audio samples together. Also, made the waveform's have a transparent background, so they can be layered on top of other layers.

This commit is contained in:
Jonathan Thomas
2012-11-29 16:32:48 -06:00
parent afd9b1d6d3
commit d3ef1fac13
10 changed files with 85 additions and 40 deletions

View File

@@ -872,7 +872,7 @@ void FFmpegReader::ProcessAudioPacket(int requested_frame, int target_frame, int
f = CreateFrame(starting_frame_number);
// Add samples for current channel to the frame
f->AddAudio(channel_filter, start, iterate_channel_buffer, samples, 1.0f);
f->AddAudio(true, channel_filter, start, iterate_channel_buffer, samples, 1.0f);
#pragma omp critical (openshot_cache)
// Add or update cache