[beast: 2/24] BSE: use Rapicorn's printout()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/24] BSE: use Rapicorn's printout()
- Date: Thu, 24 Sep 2015 20:09:46 +0000 (UTC)
commit 5aa102eed5b045908dd2a71e74f80bd37b5f0f6e
Author: Tim Janik <timj gnu org>
Date: Tue Sep 22 21:37:01 2015 +0200
BSE: use Rapicorn's printout()
bse/bseblockutils.cc | 2 +-
bse/bseenginemaster.cc | 8 ++++----
bse/bsegconfig.cc | 2 +-
bse/bseladspa.cc | 2 +-
bse/bseladspamodule.cc | 2 +-
bse/bsemathsignal.cc | 4 ++--
bse/bseparasite.proc | 2 +-
bse/bsesnooper.cc | 20 ++++++++++----------
bse/bsetool.cc | 22 +++++++++++-----------
bse/bsewave.cc | 2 +-
bse/gsldatacache.cc | 4 ++--
bse/gsldatautils.cc | 10 +++++-----
bse/gslfilter.cc | 6 +++---
bse/gslwavechunk.cc | 38 +++++++++++++++++++-------------------
bse/testobject.cc | 2 +-
bse/tests/blocktests.cc | 36 ++++++++++++++++++------------------
bse/tests/misctests.cc | 4 ++--
bse/tests/subnormals.cc | 4 ++--
bse/tests/testcxx.cc | 4 ++--
plugins/bsefirfilter.c | 4 ++--
20 files changed, 89 insertions(+), 89 deletions(-)
---
diff --git a/bse/bseblockutils.cc b/bse/bseblockutils.cc
index 3a0d872..c449846 100644
--- a/bse/bseblockutils.cc
+++ b/bse/bseblockutils.cc
@@ -153,7 +153,7 @@ class BlockImpl : virtual public Bse::Block::Impl {
/* there is currently only a test for the SSE filter code, so in the
* non-SSE-case we simply always return true
*/
- g_print ("SSE filter implementation not tested: no SSE support available\n");
+ printout ("SSE filter implementation not tested: no SSE support available\n");
return true;
}
};
diff --git a/bse/bseenginemaster.cc b/bse/bseenginemaster.cc
index 3754707..ab9439d 100644
--- a/bse/bseenginemaster.cc
+++ b/bse/bseenginemaster.cc
@@ -939,11 +939,11 @@ master_process_flow (void)
if (profile_node)
{
if (profile_maxtime > guint64 (profile_modules))
- g_print ("Excess Node: %p Duration: %llu usecs ((void(*)())%p) \n",
- profile_node, (long long unsigned int) profile_maxtime,
profile_node->module.klass->process);
+ printout ("Excess Node: %p Duration: %llu usecs ((void(*)())%p) \n",
+ profile_node, (long long unsigned int) profile_maxtime,
profile_node->module.klass->process);
else
- g_print ("Slowest Node: %p Duration: %llu usecs ((void(*)())%p) \r",
- profile_node, (long long unsigned int) profile_maxtime,
profile_node->module.klass->process);
+ printout ("Slowest Node: %p Duration: %llu usecs ((void(*)())%p) \r",
+ profile_node, (long long unsigned int) profile_maxtime,
profile_node->module.klass->process);
}
}
diff --git a/bse/bsegconfig.cc b/bse/bsegconfig.cc
index e9551c7..6a1bfd9 100644
--- a/bse/bsegconfig.cc
+++ b/bse/bsegconfig.cc
@@ -146,7 +146,7 @@ set_gconfig (BseGConfig *gconfig)
GValue *v = sfi_value_rec (prec);
GString *gstring = g_string_new (NULL);
sfi_value_store_param (v, gstring, pspec_global_config, 2);
- g_print ("CONFIG:\n%s\n", gstring->str);
+ printout ("CONFIG:\n%s\n", gstring->str);
g_string_free (gstring, TRUE);
sfi_value_free (v);
sfi_rec_unref (prec);
diff --git a/bse/bseladspa.cc b/bse/bseladspa.cc
index a39934a..bea0cc4 100644
--- a/bse/bseladspa.cc
+++ b/bse/bseladspa.cc
@@ -686,7 +686,7 @@ ladspa_test_load (const gchar *file)
break;
bli = bse_ladspa_info_assemble (file, cld);
if (!bli->broken)
- g_print ("LADSPA: found %s\n", bli->ident);
+ printout ("LADSPA: found %s\n", bli->ident);
}
if (i == 0)
error = "missing LADSPA descriptor";
diff --git a/bse/bseladspamodule.cc b/bse/bseladspamodule.cc
index 19dc648..06655d5 100644
--- a/bse/bseladspamodule.cc
+++ b/bse/bseladspamodule.cc
@@ -127,7 +127,7 @@ bse_ladspa_module_class_init_from_info (BseLadspaModuleClass *ladspa_module_clas
BseLadspaPort *port = bli->cports + i;
GParamSpec *pspec, *pspec2 = NULL;
const char *group;
- // g_print ("LADSPA-PORT: %s\n", bse_ladspa_info_port_2str (port));
+ // printout ("LADSPA-PORT: %s\n", bse_ladspa_info_port_2str (port));
if (port->boolean)
{
group = "Switches";
diff --git a/bse/bsemathsignal.cc b/bse/bsemathsignal.cc
index 848bad3..c7d9786 100644
--- a/bse/bsemathsignal.cc
+++ b/bse/bsemathsignal.cc
@@ -707,7 +707,7 @@ main (int argc,
if (1) /* print errors */
for (x = -3; x < 3.01; x += 0.1)
{
- g_print ("%+f %+1.20f \t (%.20f - %.20f)\n",
+ printout ("%+f %+1.20f \t (%.20f - %.20f)\n",
x, exp (x * BSE_LN2) - bse_approx5_exp2 (x),
exp (x * BSE_LN2), bse_approx5_exp2 (x));
}
@@ -719,7 +719,7 @@ main (int argc,
// dummy += exp2f (x);
}
- g_print ("%f\r \n", dummy);
+ printout ("%f\r \n", dummy);
return 0;
}
diff --git a/bse/bseparasite.proc b/bse/bseparasite.proc
index 0fb5ecf..026ee7d 100644
--- a/bse/bseparasite.proc
+++ b/bse/bseparasite.proc
@@ -85,6 +85,6 @@ METHOD (BseItem, add-parasite) {
path = bse_item_create_parasite_name (item, path);
if (path)
bse_item_set_parasite (item, path, rec);
- g_print ("%s: %s: %p\n", G_STRFUNC, path, rec);
+ printout ("%s: %s: %p\n", G_STRFUNC, path, rec);
return Bse::ERROR_NONE;
}
diff --git a/bse/bsesnooper.cc b/bse/bsesnooper.cc
index 0d7e3b1..3f17d1d 100644
--- a/bse/bsesnooper.cc
+++ b/bse/bsesnooper.cc
@@ -179,16 +179,16 @@ snooper_process (BseModule *module,
seen_subn = TRUE;
}
avg /= (gdouble) n_values;
- g_print ("C%2u: max=%+1.5f min=%+1.5f avg=%+1.5f %u[%+1.5f,..,%+1.5f] freq=%+1.2f %s%s%s%s\r",
- data->context_id,
- max, min, avg,
- n_values,
- first, last,
- BSE_FREQ_FROM_VALUE (avg),
- seen_nan ? " +NAN" : "",
- seen_pinf ? " +PINF" : "",
- seen_ninf ? " +NINF" : "",
- seen_subn ? " +SUBNORM" : "");
+ printout ("C%2u: max=%+1.5f min=%+1.5f avg=%+1.5f %u[%+1.5f,..,%+1.5f] freq=%+1.2f %s%s%s%s\r",
+ data->context_id,
+ max, min, avg,
+ n_values,
+ first, last,
+ BSE_FREQ_FROM_VALUE (avg),
+ seen_nan ? " +NAN" : "",
+ seen_pinf ? " +PINF" : "",
+ seen_ninf ? " +NINF" : "",
+ seen_subn ? " +SUBNORM" : "");
}
}
diff --git a/bse/bsetool.cc b/bse/bsetool.cc
index 02eca24..6188f44 100644
--- a/bse/bsetool.cc
+++ b/bse/bsetool.cc
@@ -181,20 +181,20 @@ static String
dump_info (const ArgParser &ap)
{
auto print_int = [] (const char *name, int integer) {
- g_print ("%s =%-4d\n", name, integer);
+ printout ("%s =%-4d\n", name, integer);
};
auto print_note = [] (const char *note_name, int note) {
char *string = bse_note_to_string (note);
- g_print ("%s =%-4d \tfactor=%" FLF "f [%-5s] (freq=%" FLF "f)\n",
- note_name, note,
- bse_transpose_factor (BSE_MUSICAL_TUNING_12_TET, note - BSE_KAMMER_NOTE),
- string, bse_note_to_freq (BSE_MUSICAL_TUNING_12_TET, note));
+ printout ("%s =%-4d \tfactor=%" FLF "f [%-5s] (freq=%" FLF "f)\n",
+ note_name, note,
+ bse_transpose_factor (BSE_MUSICAL_TUNING_12_TET, note - BSE_KAMMER_NOTE),
+ string, bse_note_to_freq (BSE_MUSICAL_TUNING_12_TET, note));
g_free (string);
};
auto print_fine_tune = [] (const char *tune_name, int tune) {
- g_print ("%s =%-4d \tfactor=%" FLF "f\n",
- tune_name, tune,
- bse_cent_tune_fast (tune));
+ printout ("%s =%-4d \tfactor=%" FLF "f\n",
+ tune_name, tune,
+ bse_cent_tune_fast (tune));
};
printout ("Rate relevant limits:\n");
print_int ("BSE_MIN_OCTAVE ", BSE_MIN_OCTAVE);
@@ -227,7 +227,7 @@ dump_info (const ArgParser &ap)
note = bse_note_from_freq (BSE_MUSICAL_TUNING_12_TET, freq);
fine_tune = bse_note_fine_tune_from_note_freq (BSE_MUSICAL_TUNING_12_TET, note, freq);
freq = bse_note_to_tuned_freq (BSE_MUSICAL_TUNING_12_TET, note, fine_tune);
- g_print ("decompose: note=%4d fine_tune=%4d freq=%" FLF "f (diff=%g)\n", note, fine_tune, freq,
freq - f);
+ printout ("decompose: note=%4d fine_tune=%4d freq=%" FLF "f (diff=%g)\n", note, fine_tune, freq,
freq - f);
}
if (0)
for (j = BSE_MIN_NOTE; j <= BSE_MAX_NOTE; j += 1)
@@ -237,8 +237,8 @@ dump_info (const ArgParser &ap)
int note = BSE_NOTE_GENERIC (octave, semitone);
char *name = bse_note_to_string (j);
- g_print ("note[%3d]: name=%-8s octave=%3d semitone=%3d note=%3d match=%u\n",
- j, name, octave, semitone, note, j == note);
+ printout ("note[%3d]: name=%-8s octave=%3d semitone=%3d note=%3d match=%u\n",
+ j, name, octave, semitone, note, j == note);
g_free (name);
}
return "";
diff --git a/bse/bsewave.cc b/bse/bsewave.cc
index dbc17b4..c862d0b 100644
--- a/bse/bsewave.cc
+++ b/bse/bsewave.cc
@@ -592,7 +592,7 @@ bse_wave_restore_private (BseObject *object,
g_free (wave_name);
return GTokenType (')');
}
- // g_print ("set-locator \"%s\" \"%s\"\n", file_name, wave_name);
+ // printout ("set-locator \"%s\" \"%s\"\n", file_name, wave_name);
bse_wave_set_locator (wave, file_name, wave_name);
expected_token = G_TOKEN_NONE; /* got ')' */
}
diff --git a/bse/gsldatacache.cc b/bse/gsldatacache.cc
index e7d4c42..037ec3f 100644
--- a/bse/gsldatacache.cc
+++ b/bse/gsldatacache.cc
@@ -414,8 +414,8 @@ data_cache_free_olders_Lunlock (GslDataCache *dcache,
rejuvenate = dcache->max_age - max_lru;
if (0)
- g_print ("start sweep: dcache (%p) with %u nodes, max_age: %u, rejuvenate: %u (max_lru: %u)\n",
- dcache, dcache->n_nodes, dcache->max_age, rejuvenate, max_lru);
+ printout ("start sweep: dcache (%p) with %u nodes, max_age: %u, rejuvenate: %u (max_lru: %u)\n",
+ dcache, dcache->n_nodes, dcache->max_age, rejuvenate, max_lru);
size = dcache->node_size + (dcache->padding << 1);
slot_p = NULL;
for (i = 0; i < dcache->n_nodes; i++)
diff --git a/bse/gsldatautils.cc b/bse/gsldatautils.cc
index 8f72a30..efbc771 100644
--- a/bse/gsldatautils.cc
+++ b/bse/gsldatautils.cc
@@ -493,7 +493,7 @@ gsl_data_find_sample (GslDataHandle *dhandle,
{
gfloat val = gsl_data_handle_peek_value (dhandle, i, &peekbuf);
- /* g_print ("(%lu): %f <= %f <= %f\n", i, min_value, val, max_value); */
+ /* printout ("(%lu): %f <= %f <= %f\n", i, min_value, val, max_value); */
if (val >= min_value && val <= max_value)
break;
}
@@ -502,7 +502,7 @@ gsl_data_find_sample (GslDataHandle *dhandle,
{
gfloat val = gsl_data_handle_peek_value (dhandle, i, &peekbuf);
- /* g_print ("(%lu): %f > %f || %f < %f\n", i, val, max_value, val, min_value); */
+ /* printout ("(%lu): %f > %f || %f < %f\n", i, val, max_value, val, min_value); */
if (val > min_value || val < max_value)
break;
}
@@ -615,7 +615,7 @@ gsl_data_find_tailmatch (GslDataHandle *dhandle,
{
start = offset + l;
end = offset + l + lsize - 1;
- g_print ("\nimproved: %f < %f: [0x%llx..0x%llx] (%llu)\n", score, best_score, start, end,
lsize);
+ printout ("\nimproved: %f < %f: [0x%llx..0x%llx] (%llu)\n", score, best_score, start, end,
lsize);
best_score = score;
}
else
@@ -626,12 +626,12 @@ gsl_data_find_tailmatch (GslDataHandle *dhandle,
pcount = 100;
pval = lsize - lspec->min_loop;
pbound = (lspec->max_loop - lspec->min_loop + 1.);
- g_print ("\rprocessed: %f%% \r", pval / pbound);
+ printout ("\rprocessed: %f%% \r", pval / pbound);
}
}
gsl_data_handle_close (shandle);
- g_print ("\nhalted: %f: [0x%llx..0x%llx] (%llu)\n", best_score, start, end, end - start + 1);
+ printout ("\nhalted: %f: [0x%llx..0x%llx] (%llu)\n", best_score, start, end, end - start + 1);
*loop_start_p = start;
*loop_end_p = end;
diff --git a/bse/gslfilter.cc b/bse/gslfilter.cc
index 95a5bdc..1762665 100644
--- a/bse/gslfilter.cc
+++ b/bse/gslfilter.cc
@@ -776,7 +776,7 @@ gsl_filter_tscheb1_test (uint iorder,
/* choose roots from the left half-plane */
if (0)
- g_print ("zhqr-root:\n%s\n", bse_complex_list (iorder, roots, " ").c_str());
+ printout ("zhqr-root:\n%s\n", bse_complex_list (iorder, roots, " ").c_str());
r = roots;
for (i = 0; i < iorder; i++)
if (roots[i].re < 0)
@@ -790,7 +790,7 @@ gsl_filter_tscheb1_test (uint iorder,
/* assert roots found */
if (!(r - roots == iorder))
{
- g_print ("ERROR: n_roots=%u != iorder=%u\n", r - roots, iorder);
+ printout ("ERROR: n_roots=%u != iorder=%u\n", r - roots, iorder);
abort ();
}
@@ -1256,7 +1256,7 @@ gsl_biquad_lphp_reso (GslBiquadFilter *c,
break;
case GSL_BIQUAD_NORMALIZE_PEAK_GAIN:
r2p_norm = (BSE_SQRT2 * sqrt2_reso - 1.0) / (sqrt2_reso * sqrt2_reso - 0.5);
- g_print ("BIQUAD-lp: (peak-gain) r2p_norm = %f \n", r2p_norm);
+ printout ("BIQUAD-lp: (peak-gain) r2p_norm = %f \n", r2p_norm);
r2p_norm = r2p_norm > 1 ? kk * sqrt2_reso : kk * r2p_norm * sqrt2_reso;
break;
}
diff --git a/bse/gslwavechunk.cc b/bse/gslwavechunk.cc
index 25ae012..2318069 100644
--- a/bse/gslwavechunk.cc
+++ b/bse/gslwavechunk.cc
@@ -139,7 +139,7 @@ create_block_for_offset (GslWaveChunk *wchunk,
if (j >= 0)
{
k = j / loop_width;
- /* g_print ("endoffset-setup: j=%ld %%=%ld, k=%ld, k&1=%ld\n", j, j % loop_width, k, k & 1); */
+ /* printout ("endoffset-setup: j=%ld %%=%ld, k=%ld, k&1=%ld\n", j, j % loop_width, k, k & 1); */
j %= loop_width;
if (wchunk->loop_type == GSL_WAVE_LOOP_PINGPONG)
{
@@ -277,7 +277,7 @@ wave_identify_offset (GslWaveChunk *wchunk,
iter->rel_pos = wchunk->n_pad_values;
iter->ubound = iter->rel_pos + MIN (STATIC_ZERO_SIZE - 2 * wchunk->n_pad_values, wchunk->head.first -
pos);
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_UNDEF, pre-head %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_UNDEF, pre-head %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_UNDEF (wchunk);
}
if (UNLIKELY (pos > wchunk->tail.last)) /* outside wave boundaries */
@@ -286,14 +286,14 @@ wave_identify_offset (GslWaveChunk *wchunk,
iter->rel_pos = wchunk->n_pad_values;
iter->ubound = iter->rel_pos + MIN (STATIC_ZERO_SIZE - 2 * wchunk->n_pad_values, pos -
wchunk->tail.last);
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_UNDEF, post-tail %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_UNDEF, post-tail %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_UNDEF (wchunk);
}
if (pos <= wchunk->head.last)
{
iter->rel_pos = pos - wchunk->head.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_HEAD %lld %lld %lld\n", wchunk->head.first, iter->rel_pos, wchunk->head.last);
+ printout ("PHASE_HEAD %lld %lld %lld\n", wchunk->head.first, iter->rel_pos, wchunk->head.last);
return PHASE_HEAD (wchunk);
}
else if (pos <= wchunk->enter.last) /* before loop */
@@ -302,21 +302,21 @@ wave_identify_offset (GslWaveChunk *wchunk,
{
iter->rel_pos = pos - wchunk->enter.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_ENTER %lld %lld %lld\n", wchunk->enter.first, iter->rel_pos, wchunk->enter.last);
+ printout ("PHASE_ENTER %lld %lld %lld\n", wchunk->enter.first, iter->rel_pos, wchunk->enter.last);
return PHASE_ENTER (wchunk);
}
iter->rel_pos = pos - wchunk->head.last;
iter->lbound = wchunk->head.last;
iter->ubound = wchunk->enter.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM, pre-enter %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_NORM, pre-enter %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_NORM (wchunk);
}
else if (pos >= wchunk->tail.first)
{
iter->rel_pos = pos - wchunk->tail.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_TAIL %lld %lld %lld\n", wchunk->tail.first, iter->rel_pos, wchunk->tail.last);
+ printout ("PHASE_TAIL %lld %lld %lld\n", wchunk->tail.first, iter->rel_pos, wchunk->tail.last);
return PHASE_TAIL (wchunk);
}
else if (pos >= wchunk->leave.first) /* after loop */
@@ -325,7 +325,7 @@ wave_identify_offset (GslWaveChunk *wchunk,
{
iter->rel_pos = pos - wchunk->leave.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_LEAVE %lld %lld %lld\n", wchunk->leave.first, iter->rel_pos, wchunk->leave.last);
+ printout ("PHASE_LEAVE %lld %lld %lld\n", wchunk->leave.first, iter->rel_pos, wchunk->leave.last);
return PHASE_LEAVE (wchunk);
}
iter->rel_pos = pos - wchunk->leave.last;
@@ -334,7 +334,7 @@ wave_identify_offset (GslWaveChunk *wchunk,
iter->lbound = wchunk->tail_start_norm;
iter->ubound = wchunk->leave_end_norm;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM_BACKWARD, post-leave %lld %lld %lld\n", iter->lbound, iter->rel_pos,
iter->ubound);
+ printout ("PHASE_NORM_BACKWARD, post-leave %lld %lld %lld\n", iter->lbound, iter->rel_pos,
iter->ubound);
return PHASE_NORM_BACKWARD (wchunk);
}
else
@@ -342,7 +342,7 @@ wave_identify_offset (GslWaveChunk *wchunk,
iter->lbound = wchunk->leave_end_norm;
iter->ubound = wchunk->tail_start_norm;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM, post-leave %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_NORM, post-leave %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_NORM (wchunk);
}
}
@@ -358,35 +358,35 @@ wave_identify_offset (GslWaveChunk *wchunk,
{
iter->rel_pos = wchunk->wrap.length - one - wchunk->wrap.last + pos;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
+ printout ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos,
wchunk->wrap.last);
return PHASE_WRAP (wchunk);
}
if (pos >= wchunk->ppwrap.first)
{
iter->rel_pos = pos - wchunk->ppwrap.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_PPWRAP %lld %lld %lld\n", wchunk->ppwrap.first, iter->rel_pos,
wchunk->ppwrap.last);
+ printout ("PHASE_PPWRAP %lld %lld %lld\n", wchunk->ppwrap.first, iter->rel_pos,
wchunk->ppwrap.last);
return PHASE_PPWRAP (wchunk);
}
iter->ubound = wchunk->loop_last - one - wchunk->wrap.last;
iter->lbound = wchunk->loop_last - one - wchunk->ppwrap.first;
iter->rel_pos = pos - wchunk->wrap.last;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM_BACKWARD, pploop %lld %lld %lld\n", iter->lbound, iter->rel_pos,
iter->ubound);
+ printout ("PHASE_NORM_BACKWARD, pploop %lld %lld %lld\n", iter->lbound, iter->rel_pos,
iter->ubound);
return PHASE_NORM_BACKWARD (wchunk);
}
if (pos >= wchunk->wrap.first)
{
iter->rel_pos = pos - wchunk->wrap.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
+ printout ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
return PHASE_WRAP (wchunk);
}
iter->rel_pos = pos - wchunk->ppwrap.last;
iter->ubound = wchunk->loop_first + one + wchunk->wrap.first - loop_width;
iter->lbound = wchunk->loop_first + one + wchunk->ppwrap.last - loop_width;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM, pploop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_NORM, pploop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_NORM (wchunk);
}
else if (wchunk->loop_type == GSL_WAVE_LOOP_JUMP) /* in jump loop */
@@ -399,28 +399,28 @@ wave_identify_offset (GslWaveChunk *wchunk,
{
iter->rel_pos = pos - wchunk->wrap.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
+ printout ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
return PHASE_WRAP (wchunk);
}
if (pos <= wchunk->wrap.last)
{
iter->rel_pos = wchunk->wrap.length - one - wchunk->wrap.last + pos;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
+ printout ("PHASE_WRAP %lld %lld %lld\n", wchunk->wrap.first, iter->rel_pos, wchunk->wrap.last);
return PHASE_WRAP (wchunk);
}
iter->rel_pos = pos - wchunk->wrap.last;
iter->lbound = wchunk->loop_first + wchunk->wrap.last;
iter->ubound = wchunk->loop_first + wchunk->wrap.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM, jloop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_NORM, jloop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_NORM (wchunk);
}
iter->rel_pos = pos - wchunk->head.last;
iter->lbound = wchunk->head.last;
iter->ubound = wchunk->enter.first;
if (PRINT_DEBUG_INFO)
- g_print ("PHASE_NORM, noloop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
+ printout ("PHASE_NORM, noloop %lld %lld %lld\n", iter->lbound, iter->rel_pos, iter->ubound);
return PHASE_NORM (wchunk);
}
diff --git a/bse/testobject.cc b/bse/testobject.cc
index eb7b698..dd7b2bb 100644
--- a/bse/testobject.cc
+++ b/bse/testobject.cc
@@ -12,7 +12,7 @@ TestObjectImpl::~TestObjectImpl ()
int
TestObjectImpl::echo_test (const std::string &msg)
{
- g_print ("ServerImpl::echo_test: %s\n", msg.c_str());
+ printout ("ServerImpl::echo_test: %s\n", msg.c_str());
sig_echo_reply.emit (msg);
return msg.size();
}
diff --git a/bse/tests/blocktests.cc b/bse/tests/blocktests.cc
index 2d237fe..f2933c2 100644
--- a/bse/tests/blocktests.cc
+++ b/bse/tests/blocktests.cc
@@ -241,8 +241,8 @@ bench_fill (void)
}
report_usecs ("Block::fill", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("FillBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("FillBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -271,8 +271,8 @@ bench_copy (void)
assert (dest_fblock[0] == 2.f);
report_usecs ("Block::copy", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("CopyBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("CopyBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -300,8 +300,8 @@ bench_add (void)
}
report_usecs ("Block::add", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("AddBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("AddBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -329,8 +329,8 @@ bench_sub (void)
}
report_usecs ("Block::sub", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("SubBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("SubBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -359,8 +359,8 @@ bench_mul (void)
assert (fblock1[0] < 1e30); /* not close to infinity */
report_usecs ("Block::mul", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("MulBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("MulBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -388,8 +388,8 @@ bench_scale (void)
}
report_usecs ("Block::scale", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("ScaleBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("ScaleBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -426,8 +426,8 @@ bench_range (void)
assert (max_value == correct_max_value);
report_usecs ("Block::range", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("RangeBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("RangeBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -454,8 +454,8 @@ bench_square_sum (void)
}
report_usecs ("Block::square_sum", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("SquareSumBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("SquareSumBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static inline void
@@ -492,8 +492,8 @@ bench_range_and_square_sum (void)
assert (max_value == correct_max_value);
report_usecs ("Block::range_and_square_sum", 1000000.0 * m / dups * BENCH_SCALE);
if (0)
- g_print ("Range+SquareSumBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
- 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
+ printout ("Range+SquareSumBench: %.6f msecs (test-duration: %.6f calibration: %.6f)\n",
+ 1000.0 * m / dups * BENCH_SCALE, m * RUNS, c);
}
static void
diff --git a/bse/tests/misctests.cc b/bse/tests/misctests.cc
index 95a6c21..a1cd4fb 100644
--- a/bse/tests/misctests.cc
+++ b/bse/tests/misctests.cc
@@ -83,7 +83,7 @@ check_freq_vs_notes (BseMusicalTuningType musical_tuning)
int note, fine_tune;
int verbose = 0;
if (verbose)
- g_print ("compose : note=%4d fine_tune=%4d freq=%" FLF "f\n", j, k, freq);
+ printout ("compose : note=%4d fine_tune=%4d freq=%" FLF "f\n", j, k, freq);
f = freq;
note = bse_note_from_freq (musical_tuning, freq);
TASSERT (note != BSE_NOTE_VOID);
@@ -92,7 +92,7 @@ check_freq_vs_notes (BseMusicalTuningType musical_tuning)
double freq_error = freq - f;
double freq_ratio = MAX (freq, f) / MIN (freq, f);
if (verbose)
- g_print ("decompose: note=%4d fine_tune=%4d freq=%" FLF "f (diff=%" FLF "f)\n", note,
fine_tune, freq, freq - f);
+ printout ("decompose: note=%4d fine_tune=%4d freq=%" FLF "f (diff=%" FLF "f)\n", note,
fine_tune, freq, freq - f);
if (ABS (k) < 11)
TASSERT (note == j);
if (musical_tuning == BSE_MUSICAL_TUNING_12_TET)
diff --git a/bse/tests/subnormals.cc b/bse/tests/subnormals.cc
index 3cbd68e..e0ff238 100644
--- a/bse/tests/subnormals.cc
+++ b/bse/tests/subnormals.cc
@@ -166,8 +166,8 @@ benchmark_subnormal_eliminations ()
TOK();
TDONE();
if (0)
- g_print ("subnormal cancellation times: keep=%fs zap=%fs inlined-cond=%fs if-cond=%fs arithmetic=%f
bse=%f\n",
- test1_time, test2_time, test3_time, test4_time, test5_time, test6_time);
+ printout ("subnormal cancellation times: keep=%fs zap=%fs inlined-cond=%fs if-cond=%fs arithmetic=%f
bse=%f\n",
+ test1_time, test2_time, test3_time, test4_time, test5_time, test6_time);
constexpr const char *format = " %-28s : %+.14f milliseconds";
TMSG (format, "Subnormals-keep", test1_time * 1000);
TMSG (format, "Subnormals-bse-zap", test2_time * 1000);
diff --git a/bse/tests/testcxx.cc b/bse/tests/testcxx.cc
index 0bcdf5b..25222fc 100644
--- a/bse/tests/testcxx.cc
+++ b/bse/tests/testcxx.cc
@@ -11,11 +11,11 @@ struct FooTest : public CxxBase {};
struct Foo {
void bar (GParamSpec *p,int,float,int,int,int,int,int)
{
- g_print ("notify: %s\n", p->name);
+ printout ("notify: %s\n", p->name);
}
float baz (int, String s)
{
- g_print ("notify: \"%s\"\n", s.c_str());
+ printout ("notify: \"%s\"\n", s.c_str());
return 0;
}
};
diff --git a/plugins/bsefirfilter.c b/plugins/bsefirfilter.c
index d1b3a59..9cbf8bc 100644
--- a/plugins/bsefirfilter.c
+++ b/plugins/bsefirfilter.c
@@ -244,8 +244,8 @@ bse_fir_filter_update_locals (BseFIRFilter *filter)
#if 0
for (i = 0; i < filter->n_coeffs; i++)
- g_print ("a[%d]=%f ", i - z, filter->coeffs[i]);
- g_print ("\n=======\n");
+ printout ("a[%d]=%f ", i - z, filter->coeffs[i]);
+ printout ("\n=======\n");
#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]