summaryrefslogtreecommitdiff
path: root/gr-audio/lib
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-05-09 12:20:33 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-05-09 12:20:33 -0700
commita78f057937bb9ba91965b06869a3ed417724516e (patch)
treea3271eec8696ef1f0a7b0215b0ae9c687fde5a64 /gr-audio/lib
parent2933a6709410a4ba40b4286e369b29bd24cbd37e (diff)
parent3e3ed2f6aee01f8d2216463511591cd2c0bf4312 (diff)
Merge branch 'master' into next
Diffstat (limited to 'gr-audio/lib')
-rw-r--r--gr-audio/lib/osx/osx_common.h5
-rw-r--r--gr-audio/lib/osx/osx_impl.cc8
2 files changed, 9 insertions, 4 deletions
diff --git a/gr-audio/lib/osx/osx_common.h b/gr-audio/lib/osx/osx_common.h
index 59b866dbe3..5d8a3800a5 100644
--- a/gr-audio/lib/osx/osx_common.h
+++ b/gr-audio/lib/osx/osx_common.h
@@ -29,8 +29,13 @@ namespace gr {
namespace audio {
namespace osx {
+#ifndef _OSX_AU_DEBUG_
#define _OSX_AU_DEBUG_ 0
+#endif
+
+#ifndef _OSX_AU_DEBUG_RENDER_
#define _OSX_AU_DEBUG_RENDER_ 0
+#endif
#define check_error_and_throw(err,what,throw_str) \
if(err) { \
diff --git a/gr-audio/lib/osx/osx_impl.cc b/gr-audio/lib/osx/osx_impl.cc
index aa0320d18a..d18c24c786 100644
--- a/gr-audio/lib/osx/osx_impl.cc
+++ b/gr-audio/lib/osx/osx_impl.cc
@@ -33,10 +33,6 @@
#include <locale>
#include <stdexcept>
-namespace gr {
-namespace audio {
-namespace osx {
-
std::ostream&
operator<<
(std::ostream& s,
@@ -70,6 +66,10 @@ operator<<
return(s);
};
+namespace gr {
+namespace audio {
+namespace osx {
+
static UInt32
_get_num_channels
(AudioDeviceID ad_id,