Skip to content

Commit fe781bb

Browse files
author
Chris Hold
committed
Rename VERBOSE to SSR_VERBOSE
1 parent 0eee75c commit fe781bb

19 files changed

Lines changed: 110 additions & 110 deletions

src/aaprenderer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AapRenderer : public SourceToOutput<AapRenderer, LoudspeakerRenderer>
5555
, _ambisonics_order(params.get("ambisonics_order", 0))
5656
, _in_phase_rendering(params.get("in_phase", true))
5757
{
58-
VERBOSE((_in_phase_rendering ? "U" : "Not u")
58+
SSR_VERBOSE((_in_phase_rendering ? "U" : "Not u")
5959
<< "sing in-phase rendering.");
6060
}
6161

@@ -205,7 +205,7 @@ AapRenderer::load_reproduction_setup()
205205

206206
assert(_ambisonics_order > 0);
207207

208-
VERBOSE("Using Ambisonics order " << _ambisonics_order << ".");
208+
SSR_VERBOSE("Using Ambisonics order " << _ambisonics_order << ".");
209209

210210
// TODO: more things?
211211
}

src/audioplayer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ AudioPlayer::~AudioPlayer()
4646
if (!_file_map.empty())
4747
{
4848
maptools::purge(_file_map);
49-
VERBOSE2("AudioPlayer dtor: file map deleted.");
49+
SSR_VERBOSE2("AudioPlayer dtor: file map deleted.");
5050
}
5151
else
5252
{
53-
VERBOSE2("AudioPlayer dtor.");
53+
SSR_VERBOSE2("AudioPlayer dtor.");
5454
}
5555
}
5656

@@ -71,7 +71,7 @@ std::string AudioPlayer::get_port_name(const std::string& audio_file_name,
7171
auto registered_file = get_item(_file_map, audio_file_name);
7272
if (registered_file != nullptr)
7373
{
74-
VERBOSE2("AudioPlayer: Input file '" + audio_file_name
74+
SSR_VERBOSE2("AudioPlayer: Input file '" + audio_file_name
7575
+ "' already registered.");
7676
if (channel > registered_file->get_channels())
7777
{
@@ -285,7 +285,7 @@ AudioPlayer::Soundfile::Soundfile(const std::string& filename, bool loop,
285285
// This is a little ugly, but I don't know a better way to do it.
286286
// If you know one, tell me, please!
287287
std::this_thread::sleep_for(std::chrono::microseconds(ssr::usleeptime));
288-
VERBOSE2("Added '" + _filename
288+
SSR_VERBOSE2("Added '" + _filename
289289
+ "', format: '" + apf::str::A2S(_sample_format)
290290
+ "', channels: " + apf::str::A2S(_channels)
291291
+ ", sample rate: " + apf::str::A2S(_sample_rate) + ".");
@@ -296,7 +296,7 @@ AudioPlayer::Soundfile::~Soundfile()
296296
{
297297
// TODO: check if ecasound is really running.
298298
_eca.command("cs-disconnect"); // implies "stop" and "engine-halt"
299-
VERBOSE2("AudioPlayer::Soundfile: '" + _filename + "' disconnected.");
299+
SSR_VERBOSE2("AudioPlayer::Soundfile: '" + _filename + "' disconnected.");
300300
}
301301

302302
AudioPlayer::Soundfile::ptr_t AudioPlayer::Soundfile::create(

src/audiorecorder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ AudioRecorder::AudioRecorder(const std::string& audio_file_name,
8181
}
8282
// use JACK transport (only receive), and set client name
8383
_eca.command("-G:jack," + this->client_name + ",recv");
84-
VERBOSE_NOLF("AudioRecorder ('" + this->client_name
84+
SSR_VERBOSE_NOLF("AudioRecorder ('" + this->client_name
8585
+ "'): Trying to activate ... ");
8686
_eca.command("cs-connect");
8787
if (_eca.error())
8888
{
89-
VERBOSE("failed!");
89+
SSR_VERBOSE("failed!");
9090
SSR_ERROR("File must be writable and needs an extension recognized by "
9191
"ecasound, e.g. \".wav\".");
9292
throw audiorecorder_error("ecasound: " + _eca.last_error());
9393
}
94-
VERBOSE("done.");
94+
SSR_VERBOSE("done.");
9595

9696
if (!this->enable())
9797
{
@@ -109,7 +109,7 @@ AudioRecorder::AudioRecorder(const std::string& audio_file_name,
109109
AudioRecorder::~AudioRecorder()
110110
{
111111
_eca.command("cs-disconnect"); // implies "stop" and "engine-halt"
112-
VERBOSE2("AudioRecorder dtor ('" + client_name + "').");
112+
SSR_VERBOSE2("AudioRecorder dtor ('" + client_name + "').");
113113
}
114114

115115
bool AudioRecorder::enable()

src/configuration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ ssr::conf_struct ssr::configuration(int& argc, char* argv[])
593593
conf.renderer_params.set("system_output_prefix", conf.output_port_prefix);
594594
}
595595

596-
VERBOSE2("Requested renderer settings:");
596+
SSR_VERBOSE2("Requested renderer settings:");
597597
for (const auto& entry: conf.renderer_params)
598598
{
599-
VERBOSE2(entry.first << " = " << entry.second);
599+
SSR_VERBOSE2(entry.first << " = " << entry.second);
600600
}
601601

602602
return conf;
@@ -729,7 +729,7 @@ int ssr::load_config_file(const char *filename, conf_struct& conf){
729729
break;
730730
}//switch
731731

732-
VERBOSE2(key << " = " << value);
732+
SSR_VERBOSE2(key << " = " << value);
733733

734734
if (!strcmp(key, "NAME"))
735735
{

src/controller.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Controller<Renderer>::Controller(int argc, char* argv[])
508508
if (_conf.ip_server)
509509
{
510510

511-
VERBOSE("Starting IP Server with port " << _conf.server_port
511+
SSR_VERBOSE("Starting IP Server with port " << _conf.server_port
512512
<< " and with end-of-message character with ASCII code " <<
513513
_conf.end_of_message_character << ".");
514514

@@ -521,7 +521,7 @@ Controller<Renderer>::Controller(int argc, char* argv[])
521521
#ifdef ENABLE_WEBSOCKET_INTERFACE
522522
if (_conf.websocket_server)
523523
{
524-
VERBOSE("Starting WebSocket server with port " << _conf.websocket_port);
524+
SSR_VERBOSE("Starting WebSocket server with port " << _conf.websocket_port);
525525
_websocket_interface = std::make_unique<ws::Server>(*this
526526
, _conf.websocket_port, _conf.websocket_resource_directory);
527527
}
@@ -938,11 +938,11 @@ class Controller<Renderer>::CommonInterface
938938
if (auto_rotate)
939939
{
940940
_controller._orient_all_sources_toward_reference();
941-
VERBOSE("Auto-rotation of sound sources is enabled.");
941+
SSR_VERBOSE("Auto-rotation of sound sources is enabled.");
942942
}
943943
else
944944
{
945-
VERBOSE("Auto-rotation of sound sources is disabled.");
945+
SSR_VERBOSE("Auto-rotation of sound sources is disabled.");
946946
}
947947
}
948948
}
@@ -989,7 +989,7 @@ class Controller<Renderer>::CommonInterface
989989
{
990990
if (_controller._scene.get_auto_rotation())
991991
{
992-
VERBOSE2("Ignoring update of source rotation."
992+
SSR_VERBOSE2("Ignoring update of source rotation."
993993
<< " Auto-rotation is enabled.");
994994
return;
995995
}
@@ -1498,7 +1498,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
14981498

14991499
if (scene_file_name == "")
15001500
{
1501-
VERBOSE("No scene file specified. Opening empty scene ...");
1501+
SSR_VERBOSE("No scene file specified. Opening empty scene ...");
15021502
return true;
15031503
}
15041504

@@ -1527,7 +1527,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
15271527
}
15281528
else if (scene_file->validate(_conf.xml_schema))
15291529
{
1530-
VERBOSE("Valid scene setup (" << scene_file_name << ").");
1530+
SSR_VERBOSE("Valid scene setup (" << scene_file_name << ").");
15311531
}
15321532
else
15331533
{
@@ -1550,7 +1550,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
15501550
master_volume = 0.0f;
15511551
}
15521552

1553-
VERBOSE("Setting master volume to " << master_volume << " dB.");
1553+
SSR_VERBOSE("Setting master volume to " << master_volume << " dB.");
15541554
_publish(&api::SceneControlEvents::master_volume
15551555
, apf::math::dB2linear(master_volume));
15561556

@@ -1567,7 +1567,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
15671567
}
15681568

15691569
// always use default value when nothing is specified
1570-
VERBOSE("Setting amplitude decay exponent to " << exponent << ".");
1570+
SSR_VERBOSE("Setting amplitude decay exponent to " << exponent << ".");
15711571
_publish(&api::SceneControlEvents::decay_exponent, exponent);
15721572

15731573
// GET AMPLITUDE REFERENCE DISTANCE
@@ -1586,7 +1586,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
15861586
}
15871587

15881588
// always use default value when nothing is specified
1589-
VERBOSE("Setting amplitude reference distance to "
1589+
SSR_VERBOSE("Setting amplitude reference distance to "
15901590
<< ref_dist << " meters.");
15911591
_publish(&api::SceneControlEvents::amplitude_reference_distance, ref_dist);
15921592

@@ -1609,7 +1609,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
16091609
}
16101610
else
16111611
{
1612-
VERBOSE("No reference point given in XML file. "
1612+
SSR_VERBOSE("No reference point given in XML file. "
16131613
"Using standard (= origin).");
16141614
}
16151615
if (!pos_ptr) pos_ptr.reset(new internal::PositionPlusBool());
@@ -1645,7 +1645,7 @@ Controller<Renderer>::_load_scene(const std::string& scene_file_name)
16451645

16461646
if (model == "")
16471647
{
1648-
VERBOSE("Source model not defined!" << id_str << name_str
1648+
SSR_VERBOSE("Source model not defined!" << id_str << name_str
16491649
<< " Using default (= point source).");
16501650
model = "point";
16511651
}
@@ -1756,7 +1756,7 @@ Controller<Renderer>::_create_spontaneous_scene(
17561756
case 1: // mono file
17571757
{
17581758
Pos pos{0, default_source_distance};
1759-
VERBOSE("Creating point source at x = " << pos.x
1759+
SSR_VERBOSE("Creating point source at x = " << pos.x
17601760
<< " mtrs, y = " << pos.y << " mtrs.");
17611761
assert(pos.z == 0);
17621762
_new_source("", source_name, "point", audio_file_name, 1
@@ -1772,7 +1772,7 @@ Controller<Renderer>::_create_spontaneous_scene(
17721772
const float pos_y = default_source_distance * std::sin(pi/3.0f);
17731773

17741774
Pos pos{-pos_x, pos_y};
1775-
VERBOSE("Creating plane wave at x = " << pos.x
1775+
SSR_VERBOSE("Creating plane wave at x = " << pos.x
17761776
<< " mtrs, y = " << pos.y << " mtrs.");
17771777
assert(pos.z == 0);
17781778

@@ -1781,7 +1781,7 @@ Controller<Renderer>::_create_spontaneous_scene(
17811781
, false, 1.0f, false, "");
17821782

17831783
pos = Pos{pos_x, pos_y};
1784-
VERBOSE("Creating plane wave at x = " << pos.x
1784+
SSR_VERBOSE("Creating plane wave at x = " << pos.x
17851785
<< " mtrs, y = " << pos.y << " mtrs.");
17861786
assert(pos.z == 0);
17871787

@@ -1809,7 +1809,7 @@ Controller<Renderer>::_create_spontaneous_scene(
18091809

18101810
Pos pos{pos_x, pos_y};
18111811

1812-
VERBOSE("Creating point source at x = " << pos.x
1812+
SSR_VERBOSE("Creating point source at x = " << pos.x
18131813
<< " mtrs, y = " << pos.y << " mtrs.");
18141814
assert(pos.z == 0);
18151815

@@ -2036,7 +2036,7 @@ Controller<Renderer>::_new_source(id_t requested_id, const std::string& name
20362036

20372037
if (port_name == "")
20382038
{
2039-
VERBOSE("No audio file or port specified for source");
2039+
SSR_VERBOSE("No audio file or port specified for source");
20402040
}
20412041

20422042
apf::parameter_map p;

src/gui/quserinterface.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ ssr::QUserInterface::QUserInterface(api::Publisher& controller
240240
_deselect_all_sources(); // no source selected
241241

242242
// scene menu is not shown if floating control panel is used
243-
VERBOSE("Floating control panel is used, scene menu will not be shown.");
243+
SSR_VERBOSE("Floating control panel is used, scene menu will not be shown.");
244244
(void)path_to_scene_menu;
245245

246246
// update screen with update_frequency
@@ -456,7 +456,7 @@ void ssr::QUserInterface::_create_scene_menu(const std::string& path_to_scene_me
456456
return;
457457
}
458458

459-
VERBOSE("Creating scene menu from file '" << path_to_scene_menu << "'.");
459+
SSR_VERBOSE("Creating scene menu from file '" << path_to_scene_menu << "'.");
460460

461461
std::string line;
462462
std::string::size_type index;
@@ -556,7 +556,7 @@ void ssr::QUserInterface::_save_file_as()
556556
// if aborted
557557
if ( file_name.isEmpty() )
558558
{
559-
VERBOSE("Scene not saved.");
559+
SSR_VERBOSE("Scene not saved.");
560560
}
561561
else
562562
{
@@ -570,7 +570,7 @@ void ssr::QUserInterface::_save_file_as()
570570
}
571571

572572
_controller.take_control()->save_scene(file_name_std);
573-
VERBOSE("Scene saved in '" << file_name_std << "'.");
573+
SSR_VERBOSE("Scene saved in '" << file_name_std << "'.");
574574
}
575575

576576
}
@@ -1259,7 +1259,7 @@ void ssr::QUserInterface::dropEvent(QDropEvent *event)
12591259

12601260
QUrl url(urlList.at(0));
12611261

1262-
VERBOSE("Dropped file: " <<
1262+
SSR_VERBOSE("Dropped file: " <<
12631263
std::string(url.toString().toStdString()));
12641264

12651265
// Remove "file://"
@@ -1451,7 +1451,7 @@ void ssr::QUserInterface::_set_source_model(const int index)
14511451
model = LegacySource::point;
14521452
break;
14531453
}
1454-
VERBOSE("index: " << index);
1454+
SSR_VERBOSE("index: " << index);
14551455

14561456
unsigned int id = _id_of_last_clicked_source;
14571457
auto control = _controller.take_control();

0 commit comments

Comments
 (0)