Fixed many issues with the QtPlayer and related classes. Now the VideoRenderer can be passed through SWIG and connected to a PyQt application and handle display signals for each frame. Also, refactored some OpenMP settings into its own header.

This commit is contained in:
Jonathan Thomas
2014-04-02 16:48:27 -05:00
parent 6e65c36690
commit e073ad89f5
18 changed files with 109 additions and 71 deletions

View File

@@ -124,12 +124,12 @@ void AudioReaderSource::GetMoreSamplesFromReader() {
// Load all of its samples into the buffer
for (int channel = 0; channel < new_buffer->getNumChannels(); channel++)
if (speed >= 0)
//if (speed >= 0)
// playback normal
new_buffer->addFrom(channel, position, *frame->GetAudioSampleBuffer(), channel, frame_position, amount_to_copy);
else
//else
// reverse playback
new_buffer->addFrom(channel, position, *reverse_buffer(frame->GetAudioSampleBuffer()), channel, frame_position, amount_to_copy);
//new_buffer->addFrom(channel, position, *reverse_buffer(frame->GetAudioSampleBuffer()), channel, frame_position, amount_to_copy);
// Adjust remaining samples
position += amount_to_copy;