Mercurial > octave-nkf
changeset 19517:abde714a4f88
let audiodevinfo be built even when PortAudio is not present
* audiodevinfo.cc: added conditional compilation constructs that prevent
parts of it from being compiled when PortAudio is not present
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Mon, 16 Sep 2013 16:46:44 +0300 |
parents | 11a1e8e41835 |
children | d24bf3fb4c09 |
files | libinterp/dldfcn/audiodevinfo.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/audiodevinfo.cc Mon Sep 16 16:38:51 2013 +0300 +++ b/libinterp/dldfcn/audiodevinfo.cc Mon Sep 16 16:46:44 2013 +0300 @@ -68,8 +68,9 @@ @end deftypefn" ) { + octave_value retval; +#ifdef HAVE_PORTAUDIO int nargin = args.length(); - octave_value retval; PaError err; octave_scalar_map devinfo; octave_value_list input; @@ -361,6 +362,9 @@ error ("audiodevinfo: wrong number of arguments"); return retval; } +#else + error ("portaudio not found on your system and thus audio functionality is not present"); +#endif return retval; }