[beast: 12/24] BSE: use Rapicorn's printerr()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 12/24] BSE: use Rapicorn's printerr()
- Date: Thu, 24 Sep 2015 20:10:37 +0000 (UTC)
commit ad25dd3247fd510dc07a342dd9c18203b16e3321
Author: Tim Janik <timj gnu org>
Date: Tue Sep 22 22:21:25 2015 +0200
BSE: use Rapicorn's printerr()
bse/bsedevice.cc | 18 +++++++++---------
bse/bseenginemaster.cc | 4 ++--
bse/bseengineschedule.cc | 22 +++++++++++-----------
bse/bseglue.cc | 2 +-
bse/bsejanitor.cc | 4 ++--
bse/bsemain.cc | 4 ++--
bse/bsemidifile.cc | 6 +++---
bse/bsenote.cc | 2 +-
bse/bseparam.cc | 2 +-
bse/bsepcmdevice-oss.cc | 4 ++--
bse/bseprobe.cc | 4 ++--
bse/bseprocedure.cc | 6 +++---
bse/bsesequencer.cc | 4 ++--
bse/bsestorage.cc | 6 +++---
bse/bsewave.cc | 2 +-
bse/gslcommon.cc | 4 ++--
bse/gsldatacache.cc | 8 ++++----
bse/gsldatahandle-vorbis.cc | 6 +++---
bse/gsldatautils.cc | 4 ++--
bse/gslfilter.cc | 2 +-
bse/tests/filtertest.cc | 14 +++++++-------
bse/tests/misctests.cc | 2 +-
bse/tests/resamplehandle.cc | 8 ++++----
bse/tests/subnormals.cc | 4 ++--
24 files changed, 71 insertions(+), 71 deletions(-)
---
diff --git a/bse/bsedevice.cc b/bse/bsedevice.cc
index 0094501..a05a8fe 100644
--- a/bse/bsedevice.cc
+++ b/bse/bsedevice.cc
@@ -283,16 +283,16 @@ bse_device_dump_list (GType base_type,
if (klass != last_klass)
{
if (klass->driver_syntax)
- g_printerr ("%s%s %s=%s\n", indent, klass->driver_name, klass->driver_name,
klass->driver_syntax);
+ printerr ("%s%s %s=%s\n", indent, klass->driver_name, klass->driver_name, klass->driver_syntax);
else
- g_printerr ("%s%s\n", indent, klass->driver_name);
+ printerr ("%s%s\n", indent, klass->driver_name);
if (klass->driver_blurb)
{
GString *gstring = g_string_new (klass->driver_blurb);
while (gstring->len && gstring->str[gstring->len - 1] == '\n')
gstring->str[--gstring->len] = 0;
g_string_prefix_lines (gstring, indent2);
- g_printerr ("%s\n", gstring->str);
+ printerr ("%s\n", gstring->str);
g_string_free (gstring, TRUE);
}
last_klass = klass;
@@ -300,7 +300,7 @@ bse_device_dump_list (GType base_type,
}
if (entry->device_error)
{
- g_printerr ("%sError: %s\n", indent2, entry->device_error);
+ printerr ("%sError: %s\n", indent2, entry->device_error);
last_topic = NULL;
}
else if (entry->device_blurb)
@@ -309,24 +309,24 @@ bse_device_dump_list (GType base_type,
if (!last_topic || strcmp (last_topic, topic) != 0)
{
if (topic[0])
- g_printerr ("%sDevices (%s):\n", indent2, topic);
+ printerr ("%sDevices (%s):\n", indent2, topic);
else
- g_printerr ("%sDevices:\n", indent2);
+ printerr ("%sDevices:\n", indent2);
last_topic = topic;
}
- g_printerr ("%s > %s\n", indent, entry->device_blurb);
+ printerr ("%s > %s\n", indent, entry->device_blurb);
}
}
if (with_auto)
{
- g_printerr ("%sauto\n", indent);
+ printerr ("%sauto\n", indent);
GString *gstring = g_string_new (/* TRANSLATORS: keep this text to 70 chars in width */
_("Auto is a special driver, it acts as a placeholder for\n"
"automatic driver selection."));
while (gstring->len && gstring->str[gstring->len - 1] == '\n')
gstring->str[--gstring->len] = 0;
g_string_prefix_lines (gstring, indent2);
- g_printerr ("%s\n", gstring->str);
+ printerr ("%s\n", gstring->str);
g_string_free (gstring, TRUE);
}
bse_device_entry_list_free (ring);
diff --git a/bse/bseenginemaster.cc b/bse/bseenginemaster.cc
index ab9439d..eb06940 100644
--- a/bse/bseenginemaster.cc
+++ b/bse/bseenginemaster.cc
@@ -559,7 +559,7 @@ master_process_job (BseJob *job)
if (job->data.message)
{
JOB_DEBUG ("debug");
- g_printerr ("BSE-ENGINE: %s\n", job->data.message);
+ printerr ("BSE-ENGINE: %s\n", job->data.message);
}
else
JOB_DEBUG ("nop");
@@ -1162,7 +1162,7 @@ MasterThread::master_thread()
if (err >= 0)
loop.revents_filled = TRUE;
else if (errno != EINTR)
- g_printerr ("%s: poll() error: %s\n", G_STRFUNC, g_strerror (errno));
+ printerr ("%s: poll() error: %s\n", G_STRFUNC, g_strerror (errno));
if (loop.revents_filled)
need_dispatch = _engine_master_check (&loop);
}
diff --git a/bse/bseengineschedule.cc b/bse/bseengineschedule.cc
index 383dc31..136b5c2 100644
--- a/bse/bseengineschedule.cc
+++ b/bse/bseengineschedule.cc
@@ -98,16 +98,16 @@ unschedule_cycle (EngineSchedule *sched,
static void
_engine_schedule_debug_dump (EngineSchedule *sched)
{
- g_printerr ("sched(%p) = {\n", sched);
+ printerr ("sched(%p) = {\n", sched);
if (sched)
{
guint i;
- g_printerr (" n_items=%u, n_vnodes=%u, leaf_levels=%u, secured=%u,\n",
+ printerr (" n_items=%u, n_vnodes=%u, leaf_levels=%u, secured=%u,\n",
sched->n_items, sfi_ring_length (sched->vnodes), sched->leaf_levels, sched->secured);
- g_printerr (" in_pqueue=%u, cur_leaf_level=%u,\n",
+ printerr (" in_pqueue=%u, cur_leaf_level=%u,\n",
sched->in_pqueue, sched->cur_leaf_level);
- g_printerr (" cur_node=%p, cur_cycle=%p,\n",
+ printerr (" cur_node=%p, cur_cycle=%p,\n",
sched->cur_node, sched->cur_cycle);
for (i = 0; i < sched->leaf_levels; i++)
{
@@ -115,20 +115,20 @@ _engine_schedule_debug_dump (EngineSchedule *sched)
if (!head)
continue;
- g_printerr (" { leaf_level=%u:", i);
+ printerr (" { leaf_level=%u:", i);
for (ring = head; ring; ring = sfi_ring_walk (ring, head))
- g_printerr (" node(%p(i:%u,s:%u))", ring->data,
+ printerr (" node(%p(i:%u,s:%u))", ring->data,
((EngineNode*) ring->data)->integrated,
((EngineNode*) ring->data)->sched_tag);
- g_printerr (" },\n");
+ printerr (" },\n");
}
SfiRing *ring;
- g_printerr (" { vnodes:");
+ printerr (" { vnodes:");
for (ring = sched->vnodes; ring; ring = sfi_ring_walk (ring, sched->vnodes))
- g_printerr (" vnode(%p(pj:%u))", ring->data, ((EngineNode*) ring->data)->probe_jobs != 0);
- g_printerr (" },\n");
+ printerr (" vnode(%p(pj:%u))", ring->data, ((EngineNode*) ring->data)->probe_jobs != 0);
+ printerr (" },\n");
}
- g_printerr ("};\n");
+ printerr ("};\n");
}
diff --git a/bse/bseglue.cc b/bse/bseglue.cc
index 165a2d0..6c96854 100644
--- a/bse/bseglue.cc
+++ b/bse/bseglue.cc
@@ -284,7 +284,7 @@ bglue_value_from_serializable (const GValue *svalue,
if (!dtype || !sfi_value_transform (svalue, value))
{
if (0)
- g_printerr ("from=%s to=%s, transformable=%u\n",
+ printerr ("from=%s to=%s, transformable=%u\n",
g_type_name (G_VALUE_TYPE (svalue)),
g_type_name (dtype),
g_value_type_transformable (G_VALUE_TYPE (svalue), dtype));
diff --git a/bse/bsejanitor.cc b/bse/bsejanitor.cc
index 7079f4d..f7eda9f 100644
--- a/bse/bsejanitor.cc
+++ b/bse/bsejanitor.cc
@@ -455,12 +455,12 @@ janitor_dispatch (GSource *source,
#if 0
if (port->gstring_stdout->len)
{
- g_printerr ("%s:O: %s", port->ident, port->gstring_stdout->str);
+ printerr ("%s:O: %s", port->ident, port->gstring_stdout->str);
g_string_truncate (port->gstring_stdout, 0);
}
if (port->gstring_stderr->len)
{
- g_printerr ("%s:E: %s", port->ident, port->gstring_stderr->str);
+ printerr ("%s:E: %s", port->ident, port->gstring_stderr->str);
g_string_truncate (port->gstring_stderr, 0);
}
#endif
diff --git a/bse/bsemain.cc b/bse/bsemain.cc
index 34778ba..68fe745 100644
--- a/bse/bsemain.cc
+++ b/bse/bsemain.cc
@@ -141,9 +141,9 @@ bse_init_intern()
// dump device list
if (bse_main_args->dump_driver_list)
{
- g_printerr ("%s", _("\nAvailable PCM drivers:\n"));
+ printerr ("%s", _("\nAvailable PCM drivers:\n"));
bse_device_dump_list (BSE_TYPE_PCM_DEVICE, " ", TRUE, NULL, NULL);
- g_printerr ("%s", _("\nAvailable MIDI drivers:\n"));
+ printerr ("%s", _("\nAvailable MIDI drivers:\n"));
bse_device_dump_list (BSE_TYPE_MIDI_DEVICE, " ", TRUE, NULL, NULL);
}
diff --git a/bse/bsemidifile.cc b/bse/bsemidifile.cc
index 1fe2c16..8f4e76f 100644
--- a/bse/bsemidifile.cc
+++ b/bse/bsemidifile.cc
@@ -191,7 +191,7 @@ bse_midi_file_load (const char *file_name,
smf->tracks[i].events = g_renew (BseMidiEvent*, smf->tracks[i].events, smf->tracks[i].n_events);
smf->tracks[i].events[n] = (BseMidiEvent*) sfi_ring_pop_head (&events);
}
- // g_printerr ("track%u: n_events=%u\n", i, smf->tracks[i].n_events);
+ // printerr ("track%u: n_events=%u\n", i, smf->tracks[i].n_events);
bse_midi_decoder_destroy (md);
if (*error_p)
{
@@ -340,9 +340,9 @@ bse_midi_file_setup_song (BseMidiFile *smf,
bse_item_set_undoable (btrack, "n-voices", 24, NULL);
Bse::PartIfaceP part_iface = song.create_part();
BsePart *bpart = part_iface->as<BsePart*>();
- // g_printerr ("part1: %p %s\n", part, G_OBJECT_TYPE_NAME (part));
+ // printerr ("part1: %p %s\n", part, G_OBJECT_TYPE_NAME (part));
track->insert_part (0, *part_iface);
- // g_printerr ("part2: %p %s\n", part, G_OBJECT_TYPE_NAME (part));
+ // printerr ("part2: %p %s\n", part, G_OBJECT_TYPE_NAME (part));
bse_midi_file_add_part_events (smf, i, bpart, btrack);
}
}
diff --git a/bse/bsenote.cc b/bse/bsenote.cc
index bc8fd74..0aab263 100644
--- a/bse/bsenote.cc
+++ b/bse/bsenote.cc
@@ -42,7 +42,7 @@ bse_note_from_freq (BseMusicalTuningType musical_tuning,
#endif
/* transform to note */
if (0)
- g_printerr ("freqlookup: %.9f < %.9f < %.9f : key = %.9f diffs = %+.9f %+.9f %+.9f\n", m[-1], m[0],
m[1], freq,
+ printerr ("freqlookup: %.9f < %.9f < %.9f : key = %.9f diffs = %+.9f %+.9f %+.9f\n", m[-1], m[0], m[1],
freq,
freq - m[-1], freq - m[0], m[1] - freq);
int note = m - table + BSE_KAMMER_NOTE;
/* yield VOID when exceeding corner cases */
diff --git a/bse/bseparam.cc b/bse/bseparam.cc
index a27b2b5..c349f7c 100644
--- a/bse/bseparam.cc
+++ b/bse/bseparam.cc
@@ -56,7 +56,7 @@ bse_param_spec_freq (const gchar *name,
max_freq - min_freq >= 10 &&
max_freq >= 15053 &&
min_freq <= 51.9))
- g_printerr ("bse_param_spec_freq(\"%s\",\"%s\",\"%s\") assertion:\n", name, nick, blurb);
+ printerr ("bse_param_spec_freq(\"%s\",\"%s\",\"%s\") assertion:\n", name, nick, blurb);
#endif
assert_return (default_freq >= min_freq && default_freq <= max_freq, NULL);
assert_return (max_freq - min_freq >= 10, NULL); /* check stepping */
diff --git a/bse/bsepcmdevice-oss.cc b/bse/bsepcmdevice-oss.cc
index abb59d5..5a58d72 100644
--- a/bse/bsepcmdevice-oss.cc
+++ b/bse/bsepcmdevice-oss.cc
@@ -429,12 +429,12 @@ oss_device_check_io (BsePcmHandle *handle,
{
if (oss->hard_sync)
{
- g_printerr ("OSS: underrun detected (diff=%d), forcing hard sync (retrigger)\n",
n_capture_avail - oss->queue_length);
+ printerr ("OSS: underrun detected (diff=%d), forcing hard sync (retrigger)\n", n_capture_avail
- oss->queue_length);
oss->needs_trigger = TRUE;
}
else /* soft-sync */
{
- g_printerr ("OSS: underrun detected (diff=%d), skipping input\n", n_capture_avail -
oss->queue_length);
+ printerr ("OSS: underrun detected (diff=%d), skipping input\n", n_capture_avail -
oss->queue_length);
/* soft sync, throw away extra data */
guint n_bytes = oss->frame_size * (n_capture_avail - oss->queue_length);
do
diff --git a/bse/bseprobe.cc b/bse/bseprobe.cc
index 265c3f1..d09cd70 100644
--- a/bse/bseprobe.cc
+++ b/bse/bseprobe.cc
@@ -246,7 +246,7 @@ public:
first_stamp = tick_stamp; /* record probe stamp */
}
else if (tick_stamp != first_stamp + n_computed)
- probe_xrun = true; // g_printerr ("%s: gap in probe block: %lld\n", G_STRFUNC, tick_stamp -
first_stamp - n_computed);
+ probe_xrun = true; // printerr ("%s: gap in probe block: %lld\n", G_STRFUNC, tick_stamp -
first_stamp - n_computed);
/* compute features */
uint n = block_size - n_computed;
if (n)
@@ -472,7 +472,7 @@ private:
g_signal_emit (source, bse_source_signal_probes, 0, probe_seq.c_ptr());
}
if (0)
- g_printerr ("BseProbe: got probe: %d %d (left=%d)\n", n_values, n_ostreams, pdata.n_pending);
+ printerr ("BseProbe: got probe: %d %d (left=%d)\n", n_values, n_ostreams, pdata.n_pending);
}
static void
source_probe_callback (gpointer data,
diff --git a/bse/bseprocedure.cc b/bse/bseprocedure.cc
index 9c7f8ab..1f579fe 100644
--- a/bse/bseprocedure.cc
+++ b/bse/bseprocedure.cc
@@ -10,7 +10,7 @@
#define PDEBUG(...) BSE_KEY_DEBUG ("procs", __VA_ARGS__)
#define CHECK_DEBUG() Bse::bse_debug_enabled ("procs")
-#define HACK_DEBUG /* very slow and leaks memory */ while (0) g_printerr
+#define HACK_DEBUG /* very slow and leaks memory */ while (0) printerr
/* --- macros --- */
#define parse_or_return bse_storage_scanner_parse_or_return
@@ -657,7 +657,7 @@ proc_cache_dispatch (GSource *source,
proc = ulist;
ulist = (BseProcedureClass*) proc->cache_next;
proc->cache_next = NULL;
- // g_printerr ("release-procedure: %s\n", BSE_PROCEDURE_NAME (proc));
+ // printerr ("release-procedure: %s\n", BSE_PROCEDURE_NAME (proc));
g_type_class_unref (proc);
}
g_source_get_current_time (source, ¤t_time);
@@ -674,7 +674,7 @@ procedure_class_unref (BseProcedureClass *proc)
*/
if (!proc->cache_stamp)
{
- // g_printerr ("cache-procedure: %s\n", BSE_PROCEDURE_NAME (proc));
+ // printerr ("cache-procedure: %s\n", BSE_PROCEDURE_NAME (proc));
assert (proc->cache_next == NULL);
proc->cache_stamp = 2; /* 'recent' stamp */
proc->cache_next = proc_cache;
diff --git a/bse/bsesequencer.cc b/bse/bsesequencer.cc
index c55fdbc..ffb0187 100644
--- a/bse/bsesequencer.cc
+++ b/bse/bsesequencer.cc
@@ -201,7 +201,7 @@ Sequencer::pool_poll_Lm (gint timeout_ms)
BSE_SEQUENCER_UNLOCK();
int result = poll ((struct pollfd*) pfds, n_pfds, timeout_ms);
if (result < 0 && errno != EINTR)
- g_printerr ("%s: poll() error: %s\n", G_STRFUNC, g_strerror (errno));
+ printerr ("%s: poll() error: %s\n", G_STRFUNC, g_strerror (errno));
BSE_SEQUENCER_LOCK();
if (result > 0 && pfds[0].revents)
{
@@ -372,7 +372,7 @@ Sequencer::sequencer_thread ()
{
gchar *dh = bse_object_strdup_debug_handle (song); /* thread safe */
/* if (!song->sequencer_underrun_detected_SL) */
- g_printerr ("BseSequencer: underrun by %lld blocks for song: %s\n",
+ printerr ("BseSequencer: underrun by %lld blocks for song: %s\n",
uint64 ((cur_stamp - old_song_pos) / bse_engine_block_size() + 1),
dh);
song->sequencer_underrun_detected_SL = TRUE;
diff --git a/bse/bsestorage.cc b/bse/bsestorage.cc
index 7fea955..15b7a0c 100644
--- a/bse/bsestorage.cc
+++ b/bse/bsestorage.cc
@@ -352,7 +352,7 @@ storage_parse_bse_version (BseStorage *self)
bse_storage_warn (self, "ignoring invalid version string: %s", scanner->value.v_string);
parse_or_return (scanner, ')'); /* eat closing paren */
if (0)
- g_printerr ("bse-version: code: %u.%u.%u file: %u.%u.%u feature(current):%d compat(current):%d
compat(-1):%d\n",
+ printerr ("bse-version: code: %u.%u.%u file: %u.%u.%u feature(current):%d compat(current):%d
compat(-1):%d\n",
BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION,
self->major_version, self->minor_version, self->micro_version,
BSE_STORAGE_VERSION (self, BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION),
@@ -1131,7 +1131,7 @@ bse_storage_warn_str (BseStorage *self, const std::string &string)
if (self->rstore)
sfi_rstore_warn (self->rstore, string);
else
- g_printerr ("BseStorage: while storing: %s", string.c_str());
+ printerr ("BseStorage: while storing: %s", string.c_str());
}
GTokenType
@@ -1151,7 +1151,7 @@ bse_storage_error_str (BseStorage *self, const std::string &string)
if (self->rstore)
sfi_rstore_error (self->rstore, string);
else
- g_printerr ("BseStorage: ERROR: while storing: %s\n", string.c_str());
+ printerr ("BseStorage: ERROR: while storing: %s\n", string.c_str());
}
static void
diff --git a/bse/bsewave.cc b/bse/bsewave.cc
index c862d0b..1919f1b 100644
--- a/bse/bsewave.cc
+++ b/bse/bsewave.cc
@@ -628,7 +628,7 @@ bse_wave_restore_private (BseObject *object,
if (expected_token == G_TOKEN_NONE && parsed_wchunk.data_handle)
{
if (0)
- g_printerr ("restore-wave-chunk: nch=%u of=%f mf=%f dh=%p\n",
+ printerr ("restore-wave-chunk: nch=%u of=%f mf=%f dh=%p\n",
parsed_wchunk.wh_n_channels,
parsed_wchunk.wh_osc_freq, parsed_wchunk.wh_mix_freq,
parsed_wchunk.data_handle);
diff --git a/bse/gslcommon.cc b/bse/gslcommon.cc
index d2c8ca4..b50cac1 100644
--- a/bse/gslcommon.cc
+++ b/bse/gslcommon.cc
@@ -364,7 +364,7 @@ gsl_progress_wipe (GslProgressState *pstate)
memset (wstr, ' ', pstate->wipe_length);
wstr[pstate->wipe_length] = '\r';
wstr[pstate->wipe_length + 1] = 0;
- g_printerr ("%s", wstr);
+ printerr ("%s", wstr);
g_free (wstr);
pstate->wipe_length = 0;
}
@@ -388,7 +388,7 @@ gsl_progress_printerr (gpointer message,
detail ? detail : "",
detail ? ")" : "");
l = strlen (str);
- g_printerr ("%s \r", str);
+ printerr ("%s \r", str);
g_free (str);
return l;
}
diff --git a/bse/gsldatacache.cc b/bse/gsldatacache.cc
index 037ec3f..d632041 100644
--- a/bse/gsldatacache.cc
+++ b/bse/gsldatacache.cc
@@ -372,7 +372,7 @@ gsl_data_cache_ref_node (GslDataCache *dcache,
while (!node->data)
global_dcache_cond_node_filled.wait (dcache->mutex);
dcache->mutex.unlock();
- /* g_printerr ("hit: %d :%d: %d\n", node->offset, offset, node->offset + dcache->node_size); */
+ /* printerr ("hit: %d :%d: %d\n", node->offset, offset, node->offset + dcache->node_size); */
if (rejuvenate_node)
{
global_dcache_spinlock.lock(); /* different lock */
@@ -384,7 +384,7 @@ gsl_data_cache_ref_node (GslDataCache *dcache,
insertion_pos = NODEP_INDEX (dcache, node_p); /* insert before neighbour */
if (offset > node->offset) /* insert after neighbour */
insertion_pos += 1;
- /* g_printerr ("mis: %d :%d: %d\n", node->offset, offset, node->offset + dcache->node_size); */
+ /* printerr ("mis: %d :%d: %d\n", node->offset, offset, node->offset + dcache->node_size); */
}
else
insertion_pos = 0; /* insert at start */
@@ -451,7 +451,7 @@ data_cache_free_olders_Lunlock (GslDataCache *dcache,
global_dcache_spinlock.unlock();
}
if (0)
- g_printerr ("freed %u nodes (%u bytes) remaining %u bytes (this dcache: n_nodes=%u)\n",
+ printerr ("freed %u nodes (%u bytes) remaining %u bytes (this dcache: n_nodes=%u)\n",
n_freed, n_freed * CONFIG_NODE_SIZE (),
global_dcache_n_aged_nodes * CONFIG_NODE_SIZE (),
dcache->n_nodes);
@@ -523,7 +523,7 @@ gsl_data_cache_unref_node (GslDataCache *dcache,
}
#if DEBUG_TRASHING
if (dcache->dhandle->open_count)
- g_printerr ("shrunk dcache by: dhandle=%p - %s - highp=%d: %d bytes (kept: %d)\n",
+ printerr ("shrunk dcache by: dhandle=%p - %s - highp=%d: %d bytes (kept: %d)\n",
dcache->dhandle, gsl_data_handle_name (dcache->dhandle),
dcache->high_persistency,
-(gint) node_size * (debug_gnaged - global_dcache_n_aged_nodes),
diff --git a/bse/gsldatahandle-vorbis.cc b/bse/gsldatahandle-vorbis.cc
index ef791d5..258b736 100644
--- a/bse/gsldatahandle-vorbis.cc
+++ b/bse/gsldatahandle-vorbis.cc
@@ -189,7 +189,7 @@ dh_vorbis_open (GslDataHandle *dhandle,
if (err < 0)
{
if (0)
- g_printerr ("failed to open ogg at offset %d (real offset=%lld) (add-zoffset=%d): %s\n",
+ printerr ("failed to open ogg at offset %d (real offset=%lld) (add-zoffset=%d): %s\n",
vhandle->rfile_byte_offset,
vfile->byte_offset,
vhandle->rfile_add_zoffset,
@@ -204,7 +204,7 @@ dh_vorbis_open (GslDataHandle *dhandle,
vhandle->bitstream_serialno = ov_serialnumber (&vhandle->ofile, vhandle->bitstream);
vhandle->n_bitstreams = n;
if (0)
- g_printerr ("Ogg/Vorbis: opening ogg: bitstream=%d/%d serialno=%d\n", vhandle->bitstream,
vhandle->n_bitstreams, vhandle->bitstream_serialno);
+ printerr ("Ogg/Vorbis: opening ogg: bitstream=%d/%d serialno=%d\n", vhandle->bitstream,
vhandle->n_bitstreams, vhandle->bitstream_serialno);
}
else
{
@@ -265,7 +265,7 @@ dh_vorbis_coarse_seek (GslDataHandle *dhandle, GslLong voffset)
vhandle->pcm_length = 0;
}
if (0)
- g_printerr ("OggS-SEEK: at %llu want %llu got %llu (diff-requested %lld)\n",
+ printerr ("OggS-SEEK: at %llu want %llu got %llu (diff-requested %lld)\n",
opos, pos, vhandle->pcm_pos, pos - opos);
return vhandle->pcm_pos * dhandle->setup.n_channels;
diff --git a/bse/gsldatautils.cc b/bse/gsldatautils.cc
index efbc771..5e4674f 100644
--- a/bse/gsldatautils.cc
+++ b/bse/gsldatautils.cc
@@ -426,8 +426,8 @@ gsl_data_detect_signal (GslDataHandle *handle,
*/
}
if (xcheck - minsamp > 0)
- g_printerr("###################");
- g_printerr ("active area %lld .. %lld, signal>16 at: %lld\t diff: %lld\n",minsamp,maxsamp,xcheck,
xcheck-minsamp);
+ printerr("###################");
+ printerr ("active area %lld .. %lld, signal>16 at: %lld\t diff: %lld\n",minsamp,maxsamp,xcheck,
xcheck-minsamp);
/* release open reference */
gsl_data_handle_close (handle);
diff --git a/bse/gslfilter.cc b/bse/gslfilter.cc
index 1762665..7f74716 100644
--- a/bse/gslfilter.cc
+++ b/bse/gslfilter.cc
@@ -1244,7 +1244,7 @@ gsl_biquad_lphp_reso (GslBiquadFilter *c,
denominator = 1 + (k + sqrt2_reso) * k;
if (0)
- g_printerr ("BIQUAD-lp: R=%f\n", BSE_SQRT2 * sqrt2_reso);
+ printerr ("BIQUAD-lp: R=%f\n", BSE_SQRT2 * sqrt2_reso);
switch (normalize)
{
diff --git a/bse/tests/filtertest.cc b/bse/tests/filtertest.cc
index 551396b..e4323a3 100644
--- a/bse/tests/filtertest.cc
+++ b/bse/tests/filtertest.cc
@@ -183,9 +183,9 @@ noexit_dump_iir_filter_gnuplot (const BseIIRFilterRequest *fireq,
consts[n_consts++] = 0.0;
bool success = bse_iir_filter_dump_gnuplot (fdes, fname, n_consts, consts, n_arrows, arrows, 55555);
TASSERT (success == true);
- g_printerr ("Filter: %s\n", bse_iir_filter_request_string (fireq));
- g_printerr ("Design: %s\n", bse_iir_filter_design_string (fdes));
- g_printerr ("GnuplotDump: wrote %s.gp and %s.dat use: gnuplot %s.gp\n", fname, fname, fname);
+ printerr ("Filter: %s\n", bse_iir_filter_request_string (fireq));
+ printerr ("Design: %s\n", bse_iir_filter_design_string (fdes));
+ printerr ("GnuplotDump: wrote %s.gp and %s.dat use: gnuplot %s.gp\n", fname, fname, fname);
}
static void
@@ -219,7 +219,7 @@ max_band_damping_zp (const BseIIRFilterDesign *fdes,
eps = min (eps, filter_zp_response (fdes, g_random_double_range (start_freq, end_freq)));
if (0)
for (double f = start_freq; f < end_freq; f += delta * 30)
- g_printerr ("PassBandZPDB: %f: %f\n", f, to_db (filter_zp_response (fdes, f)));
+ printerr ("PassBandZPDB: %f: %f\n", f, to_db (filter_zp_response (fdes, f)));
return to_db (eps);
}
@@ -239,7 +239,7 @@ min_band_damping_zp (const BseIIRFilterDesign *fdes,
eps = max (eps, filter_zp_response (fdes, g_random_double_range (start_freq, end_freq)));
if (0)
for (double f = start_freq; f < end_freq; f += delta * 30)
- g_printerr ("PassBandZPDB: %f: %f\n", f, to_db (filter_zp_response (fdes, f)));
+ printerr ("PassBandZPDB: %f: %f\n", f, to_db (filter_zp_response (fdes, f)));
return to_db (eps);
}
@@ -288,8 +288,8 @@ butterwoth_tests ()
success = bse_iir_filter_design (&req, &fdes);
if (0)
{
- g_printerr ("Filter: %s\n", bse_iir_filter_request_string (&req));
- g_printerr ("Design: %s\n", bse_iir_filter_design_string (&fdes));
+ printerr ("Filter: %s\n", bse_iir_filter_request_string (&req));
+ printerr ("Design: %s\n", bse_iir_filter_design_string (&fdes));
}
TASSERT (success == true);
TCMP (min_band_damping (&fdes, 0, 2000), <, gaineps);
diff --git a/bse/tests/misctests.cc b/bse/tests/misctests.cc
index a1cd4fb..0454632 100644
--- a/bse/tests/misctests.cc
+++ b/bse/tests/misctests.cc
@@ -146,7 +146,7 @@ main (gint argc,
for (int j = BSE_MUSICAL_TUNING_12_TET; j <= last_tuning; j++)
{
BseMusicalTuningType musical_tuning = BseMusicalTuningType (j);
- g_printerr ("Tuning System: %s\n", sfi_enum2choice (musical_tuning, BSE_TYPE_MUSICAL_TUNING_TYPE));
+ printerr ("Tuning System: %s\n", sfi_enum2choice (musical_tuning, BSE_TYPE_MUSICAL_TUNING_TYPE));
check_tuning_monotony (musical_tuning);
check_freq_vs_notes (musical_tuning);
}
diff --git a/bse/tests/resamplehandle.cc b/bse/tests/resamplehandle.cc
index 4e6f751..2c8c0fb 100644
--- a/bse/tests/resamplehandle.cc
+++ b/bse/tests/resamplehandle.cc
@@ -222,7 +222,7 @@ run_tests (const char *run_type)
check ("Up", "M", params[p].bits, run_type,
input, expected, 1, BSE_RESAMPLER2_MODE_UPSAMPLE,
params[p].bits, params[p].mono_upsample_db);
- // g_printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
+ // printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
}
// stereo upsampling test
@@ -233,7 +233,7 @@ run_tests (const char *run_type)
check ("Up", "S", params[p].bits, run_type,
input, expected, 2, BSE_RESAMPLER2_MODE_UPSAMPLE,
params[p].bits, params[p].stereo_upsample_db);
- // g_printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
+ // printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
}
// mono downsampling test
@@ -244,7 +244,7 @@ run_tests (const char *run_type)
check ("Dn", "M", params[p].bits, run_type,
input, expected, 1, BSE_RESAMPLER2_MODE_DOWNSAMPLE,
params[p].bits, params[p].mono_downsample_db);
- // g_printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
+ // printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
}
// stereo downsampling test
@@ -255,7 +255,7 @@ run_tests (const char *run_type)
check ("Dn", "S", params[p].bits, run_type,
input, expected, 2, BSE_RESAMPLER2_MODE_DOWNSAMPLE,
params[p].bits, params[p].stereo_downsample_db);
- // g_printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
+ // printerr (" ===> speed is equivalent to %.2f simultaneous 44100 Hz streams\n", streams);
}
}
}
diff --git a/bse/tests/subnormals.cc b/bse/tests/subnormals.cc
index e0ff238..f4d0750 100644
--- a/bse/tests/subnormals.cc
+++ b/bse/tests/subnormals.cc
@@ -196,9 +196,9 @@ main (int argc,
char *argv[])
{
bse_init_test (&argc, argv);
- g_printerr ("Checking if your processor is in 'denormals are zero' (DAZ) mode... ");
+ printerr ("Checking if your processor is in 'denormals are zero' (DAZ) mode... ");
bool daz_mode = check_denormals_are_zero();
- g_printerr (daz_mode ? "yes - skipping subnormal elimination tests.\n" : "no.\n");
+ printerr (daz_mode ? "yes - skipping subnormal elimination tests.\n" : "no.\n");
if (!daz_mode)
{
test_correct_subnormal_elimination<test2f> ("zap");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]