aboutsummaryrefslogtreecommitdiffstats
path: root/gr-audio
diff options
context:
space:
mode:
authorRyan Volz <ryan.volz@gmail.com>2020-09-04 16:01:26 -0400
committerMichael Dickens <michael.dickens@ettus.com>2020-10-02 10:13:57 -0400
commit4849af9ad83bc16d21e2c63ab95bab1755289c2f (patch)
tree06672ead2debac85ace7b6f97c3b17fe6699ba52 /gr-audio
parentgr-fec: fix MSVC workaround for libfec Reed-Solomon decoder (diff)
downloadgnuradio-4849af9ad83bc16d21e2c63ab95bab1755289c2f.tar.xz
gnuradio-4849af9ad83bc16d21e2c63ab95bab1755289c2f.zip
gr-audio: osx: Fix compilation.
Diffstat (limited to 'gr-audio')
-rw-r--r--gr-audio/lib/osx/osx_sink.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-audio/lib/osx/osx_sink.cc b/gr-audio/lib/osx/osx_sink.cc
index 2a0fa6693..ea73f7939 100644
--- a/gr-audio/lib/osx/osx_sink.cc
+++ b/gr-audio/lib/osx/osx_sink.cc
@@ -115,7 +115,7 @@ void osx_sink::setup()
err_str += ": ";
for (UInt32 nn = 0; nn < all_names.size(); ++nn) {
err_str += all_names[nn];
- if (nn != all_names - 1) {
+ if (nn != all_names.size() - 1) {
err_str += ", ";
}
}
@@ -906,7 +906,7 @@ OSStatus osx_sink::au_output_callback(void* in_ref_con,
msg << ((void*)(pthread_self())) << " : audio_osx_sink::au_output_callback: "
<< "starting: qSC = " << This->d_queue_sample_count
<< ", in#F = " << in_number_frames << ", in#C = " << This->d_n_user_channels;
- GR_LOG_INFO(d_debug_logger, msg.str());
+ GR_LOG_INFO(This->d_debug_logger, msg.str());
#endif
if (This->d_queue_sample_count < in_number_frames) {
@@ -933,7 +933,7 @@ OSStatus osx_sink::au_output_callback(void* in_ref_con,
<< "number of available items changing "
<< "unexpectedly (should never happen): was " << in_number_frames
<< " now " << t_n_output_items;
- GR_LOG_ERROR(d_logger, msg.str());
+ GR_LOG_ERROR(This->d_logger, msg.str());
err = kAudioUnitErr_TooManyFramesToProcess;
}
}
@@ -948,7 +948,7 @@ OSStatus osx_sink::au_output_callback(void* in_ref_con,
std::ostringstream msg;
msg << ((void*)(pthread_self())) << " au_output_callback: "
<< "signaling waiting condition";
- GR_LOG_INFO(d_debug_logger, msg.str());
+ GR_LOG_INFO(This->d_debug_logger, msg.str());
#endif
This->d_cond_data.notify_one();
}
@@ -957,7 +957,7 @@ OSStatus osx_sink::au_output_callback(void* in_ref_con,
std::ostringstream msg;
msg << ((void*)(pthread_self())) << " au_output_callback: "
<< "returning: qSC = " << This->d_queue_sample_count << ", err = " << err;
- GR_LOG_INFO(d_debug_logger, msg.str());
+ GR_LOG_INFO(This->d_debug_logger, msg.str());
#endif
return (err);