Permalink
Browse files

Disable tone generation when nothing is rolling out

Also decrease default jpeg quality to 80
  • Loading branch information...
1 parent 3e914f5 commit 1ca0522b20b5f3e03e84b55480495386e64eb3c4 root committed Mar 7, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 replay/replay_ingest.cpp
  2. +2 −1 replay/replay_playout_bars_source.cpp
@@ -46,7 +46,7 @@ void ReplayIngest::run_thread( ) {
ReplayRawFrame *monitor_frame;
ReplayFrameData data_to_write;
- Mjpeg422Encoder enc(1920, 1080, 90); /* FIXME: hard coded frame size */
+ Mjpeg422Encoder enc(1920, 1080, 80); /* FIXME: hard coded frame size */
Mjpeg422Encoder thumb_enc(480, 272, 30);
timecode_t pos;
@@ -22,6 +22,7 @@
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
+#include <string.h>
ReplayPlayoutBarsSource::ReplayPlayoutBarsSource( ) {
int barsfd;
@@ -52,7 +53,7 @@ void ReplayPlayoutBarsSource::read_frame(ReplayPlayoutFrame &frame_data,
frame_data.tc = 0;
frame_data.fractional_tc = 0;
frame_data.source_name = "No Source";
- oscillate(frame_data.audio_data, 440);
+ memset(frame_data.audio_data->data( ), 0, frame_data.audio_data->size( ));
}
void ReplayPlayoutBarsSource::oscillate(AudioPacket *pkt, float frequency) {

0 comments on commit 1ca0522

Please sign in to comment.