diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-08-20 15:01:53 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-08-20 15:01:53 +0100 |
| commit | 1ba9ed9c71f11b638fb829ed9ff5946df09bab35 (patch) | |
| tree | f1b91d09be166ad580ee65faadaf0d24c698368c /rotord/src/rotor.cpp | |
| parent | 7c66c73d883ad1d815b26463b14a106176829eef (diff) | |
frame mode for video loader + audio output bugfix
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rwxr-xr-x | rotord/src/rotor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 407004e..90f60a9 100755 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -217,7 +217,7 @@ bool Video_output::render(const float duration, const float framerate,const stri int samples_in_frame=(audioloader.codecContext->channels*audioloader.codecContext->sample_rate)/framerate; string whether=usingaudio?"Loading":"Cannot load"; logger.information(whether+" audio file: "+audio_filename+", each frame contains "+ofToString(samples_in_frame)+" samples at "+ofToString(audioloader.codecContext->sample_rate)+" hz"); - uint16_t *audioframe=new uint16_t[samples_in_frame]; + uint16_t *audioframe; } float vstep=1.0f/framerate; @@ -231,6 +231,7 @@ bool Video_output::render(const float duration, const float framerate,const stri //instead: get full amount of samples for frame //send audio_framesize() of them through until buffer is used //pass full buffer within frame_spec for av nodes + exporter.encodeFrame(audioloader.get_samples(exporter.get_audio_framesize())); af+=exporter.get_audio_step(); } @@ -266,7 +267,7 @@ bool Video_output::render(const float duration, const float framerate,const stri if (usingaudio) { audioloader.close(); - delete[] audioframe; + //delete[] audioframe; } |
