13
0

Remove some debug output

This commit is contained in:
Robin Gareus 2017-08-06 14:48:18 +02:00
parent bc713b00c3
commit 515bd5ad4d
4 changed files with 8 additions and 2 deletions

View File

@ -81,14 +81,18 @@ Butler::config_changed (std::string p)
audio_dstream_playback_buffer_size = (uint32_t) floor (Config->get_audio_playback_buffer_seconds() * _session.frame_rate()); audio_dstream_playback_buffer_size = (uint32_t) floor (Config->get_audio_playback_buffer_seconds() * _session.frame_rate());
_session.adjust_playback_buffering (); _session.adjust_playback_buffering ();
} else { } else {
#ifndef NDEBUG
std::cerr << "Skip explicit buffer seconds, preset in use\n"; std::cerr << "Skip explicit buffer seconds, preset in use\n";
#endif
} }
} else if (p == "capture-buffer-seconds") { } else if (p == "capture-buffer-seconds") {
if (Config->get_buffering_preset() == Custom) { if (Config->get_buffering_preset() == Custom) {
audio_dstream_capture_buffer_size = (uint32_t) floor (Config->get_audio_capture_buffer_seconds() * _session.frame_rate()); audio_dstream_capture_buffer_size = (uint32_t) floor (Config->get_audio_capture_buffer_seconds() * _session.frame_rate());
_session.adjust_capture_buffering (); _session.adjust_capture_buffering ();
} else { } else {
#ifndef NDEBUG
std::cerr << "Skip explicit buffer seconds, preset in use\n"; std::cerr << "Skip explicit buffer seconds, preset in use\n";
#endif
} }
} else if (p == "buffering-preset") { } else if (p == "buffering-preset") {
Diskstream::set_buffering_parameters (Config->get_buffering_preset()); Diskstream::set_buffering_parameters (Config->get_buffering_preset());

View File

@ -483,7 +483,9 @@ ControlProtocolManager::set_state (const XMLNode& node, int /*version*/)
ControlProtocolInfo* cpi = cpi_by_name (name); ControlProtocolInfo* cpi = cpi_by_name (name);
if (cpi) { if (cpi) {
#ifndef NDEBUG
std::cerr << "protocol " << name << " active ? " << active << std::endl; std::cerr << "protocol " << name << " active ? " << active << std::endl;
#endif
if (active) { if (active) {
delete cpi->state; delete cpi->state;

View File

@ -857,10 +857,12 @@ Diskstream::set_buffering_parameters (BufferingPreset bp)
Config->set_audio_capture_buffer_seconds (write_buffer_size); Config->set_audio_capture_buffer_seconds (write_buffer_size);
Config->set_audio_playback_buffer_seconds (read_buffer_size); Config->set_audio_playback_buffer_seconds (read_buffer_size);
#ifndef NDEBUG
cerr << "Set buffering params to " << disk_read_chunk_frames << '|' << disk_write_chunk_frames << '|' cerr << "Set buffering params to " << disk_read_chunk_frames << '|' << disk_write_chunk_frames << '|'
<< Config->get_audio_playback_buffer_seconds() << '|' << Config->get_audio_playback_buffer_seconds() << '|'
<< Config->get_audio_capture_buffer_seconds () << Config->get_audio_capture_buffer_seconds ()
<< endl; << endl;
#endif
} }
bool bool

View File

@ -358,8 +358,6 @@ CoreSelection::set_state (const XMLNode& node, int /* version */)
_stripables.insert (ss); _stripables.insert (ss);
} }
std::cerr << "set state: " << _stripables.size() << std::endl;
return 0; return 0;
} }