fprintf(stderr, " --http-coarse-timebase use less timebase for HTTP (recommended for muxers\n");
fprintf(stderr, " that handle large pts poorly, like e.g. MP4)\n");
fprintf(stderr, " --flat-audio start with most audio processing turned off\n");
+ fprintf(stderr, " --disable-alsa-output disable audio monitoring via ALSA\n");
fprintf(stderr, " --no-flush-pbos do not explicitly signal texture data uploads\n");
fprintf(stderr, " (will give display corruption, but makes it\n");
fprintf(stderr, " possible to run with apitrace in real time)\n");
{ "http-audio-codec", required_argument, 0, 1006 },
{ "http-audio-bitrate", required_argument, 0, 1007 },
{ "flat-audio", no_argument, 0, 1002 },
+ { "disable-alsa-output", no_argument, 0, 1014 },
{ "no-flush-pbos", no_argument, 0, 1003 },
{ 0, 0, 0, 0 }
};
case 1002:
global_flags.flat_audio = true;
break;
+ case 1014:
+ global_flags.enable_alsa_output = false;
+ break;
case 1003:
global_flags.flush_pbos = false;
break;
int x264_bitrate = DEFAULT_X264_OUTPUT_BIT_RATE; // In kilobit/sec.
int x264_vbv_max_bitrate = -1; // In kilobits. 0 = no limit, -1 = same as <x264_bitrate> (CBR).
int x264_vbv_buffer_size = -1; // In kilobits. 0 = one-frame VBV, -1 = same as <x264_bitrate> (one-second VBV).
+ bool enable_alsa_output = true;
};
extern Flags global_flags;
// and there's a limit to how important the peak meter is.
peak_resampler.setup(OUTPUT_FREQUENCY, OUTPUT_FREQUENCY * 4, /*num_channels=*/2, /*hlen=*/16, /*frel=*/1.0);
- alsa.reset(new ALSAOutput(OUTPUT_FREQUENCY, /*num_channels=*/2));
+ if (global_flags.enable_alsa_output) {
+ alsa.reset(new ALSAOutput(OUTPUT_FREQUENCY, /*num_channels=*/2));
+ }
}
Mixer::~Mixer()