diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-08-13 16:06:19 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-08-13 17:06:15 -0400 |
commit | 2fc6293932564fd9f84a31898aa11c0b9a3b44cc (patch) | |
tree | 08ab00c8881968bcb86dfae04682ddbbf6cab8ac /gr-audio/lib/windows/windows_source.cc | |
parent | f1c8ab4aff39340da87b82758263c11b4c9a6754 (diff) |
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.
Diffstat (limited to 'gr-audio/lib/windows/windows_source.cc')
-rw-r--r-- | gr-audio/lib/windows/windows_source.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-audio/lib/windows/windows_source.cc b/gr-audio/lib/windows/windows_source.cc index bc1597f0df..02c9311517 100644 --- a/gr-audio/lib/windows/windows_source.cc +++ b/gr-audio/lib/windows/windows_source.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004-2011,2013 Free Software Foundation, Inc. + * Copyright 2004-2011,2013-2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -40,9 +40,10 @@ namespace gr { namespace audio { - AUDIO_REGISTER_SOURCE(REG_PRIO_HIGH, windows)(int sampling_rate, - const std::string &device_name, - bool) + source::sptr + windows_source_fcn(int sampling_rate, + const std::string &device_name, + bool) { return source::sptr (new windows_source(sampling_rate, device_name)); |