From 2fc6293932564fd9f84a31898aa11c0b9a3b44cc Mon Sep 17 00:00:00 2001 From: Tom Rondeau <tom@trondeau.com> Date: Wed, 13 Aug 2014 16:06:19 -0400 Subject: audio: modified the audio registration system. Instead of static functions and macros, this just uses simple ifdefs in the code to register new audio components if cmake found them. The code is more complicated for the developer, if we ever add a new audio machine. But this allows us to use gr-audio in statically linked cases. --- gr-audio/lib/osx/osx_source.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gr-audio/lib/osx/osx_source.cc') diff --git a/gr-audio/lib/osx/osx_source.cc b/gr-audio/lib/osx/osx_source.cc index b51a6563ed..e37fc07d96 100644 --- a/gr-audio/lib/osx/osx_source.cc +++ b/gr-audio/lib/osx/osx_source.cc @@ -34,10 +34,10 @@ namespace gr { namespace audio { - AUDIO_REGISTER_SOURCE(REG_PRIO_HIGH, osx) - (int sampling_rate, - const std::string& device_name, - bool ok_to_block) + source::sptr + osx_source_fcn(int sampling_rate, + const std::string& device_name, + bool ok_to_block) { return source::sptr (new osx_source(sampling_rate, device_name, ok_to_block)); -- cgit v1.2.3