Release 2.1 tarball 2.1
authorGary Scavone <gary@music.mcgill.ca>
Thu, 10 Oct 2013 21:57:51 +0000 (23:57 +0200)
committerStephen Sinclair <sinclair@music.mcgill.ca>
Thu, 10 Oct 2013 21:57:51 +0000 (23:57 +0200)
26 files changed:
configure [new file with mode: 0755]
doc/doxygen/latex/Makefile [deleted file]
doc/doxygen/latex/RtAudio_8h.tex [deleted file]
doc/doxygen/latex/annotated.tex [deleted file]
doc/doxygen/latex/classRtAudio.tex [deleted file]
doc/doxygen/latex/classRtError.tex [deleted file]
doc/doxygen/latex/doxygen.sty [deleted file]
doc/doxygen/latex/files.tex [deleted file]
doc/doxygen/latex/index.tex [deleted file]
doc/doxygen/latex/refman.tex [deleted file]
doc/doxygen/latex/structRtAudio_1_1RTAUDIO__DEVICE.tex [deleted file]
doc/doxygen/latex/tutorial_8txt.tex [deleted file]
doc/html/RtAudio_8h-source.html
doc/html/RtAudio_8h.html [deleted file]
doc/html/annotated.html
doc/html/classRtAudio-members.html
doc/html/classRtAudio.html
doc/html/classRtError-members.html
doc/html/classRtError.html
doc/html/files.html
doc/html/functions.html
doc/html/globals.html [deleted file]
doc/html/index.html
doc/html/structRtAudio_1_1RTAUDIO__DEVICE-members.html
doc/html/structRtAudio_1_1RTAUDIO__DEVICE.html
doc/html/tutorial_8txt.html [deleted file]

diff --git a/configure b/configure
new file mode 100755 (executable)
index 0000000..f6cdcf4
--- /dev/null
+++ b/configure
@@ -0,0 +1,3632 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by Autoconf 2.52 for RtAudio 2.1.
+#
+# Report bugs to <gary@ccrma.stanford.edu>.
+#
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Name of the executable.
+as_me=`echo "$0" |sed 's,.*[\\/],,'`
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+as_executable_p="test -f"
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+# NLS nuisances.
+$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
+$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
+$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
+$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
+$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
+$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
+$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
+$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS="  $as_nl"
+
+# CDPATH.
+$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+exec 6>&1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+cross_compiling=no
+subdirs=
+MFLAGS= MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+ac_unique_file="RtAudio.cpp"
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
+
+# Identity of this package.
+PACKAGE_NAME='RtAudio'
+PACKAGE_TARNAME='rtaudio'
+PACKAGE_VERSION='2.1'
+PACKAGE_STRING='RtAudio 2.1'
+PACKAGE_BUGREPORT='gary@ccrma.stanford.edu'
+
+ac_prev=
+for ac_option
+do
+  # If the previous option needs an argument, assign it.
+  if test -n "$ac_prev"; then
+    eval "$ac_prev=\$ac_option"
+    ac_prev=
+    continue
+  fi
+
+  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_option in
+
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
+    ac_prev=bindir ;;
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+    bindir=$ac_optarg ;;
+
+  -build | --build | --buil | --bui | --bu)
+    ac_prev=build_alias ;;
+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+    build_alias=$ac_optarg ;;
+
+  -cache-file | --cache-file | --cache-fil | --cache-fi \
+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+    ac_prev=cache_file ;;
+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+    cache_file=$ac_optarg ;;
+
+  --config-cache | -C)
+    cache_file=config.cache ;;
+
+  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+  | --da=*)
+    datadir=$ac_optarg ;;
+
+  -disable-* | --disable-*)
+    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    eval "enable_$ac_feature=no" ;;
+
+  -enable-* | --enable-*)
+    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    eval "enable_$ac_feature='$ac_optarg'" ;;
+
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+  | --exec | --exe | --ex)
+    ac_prev=exec_prefix ;;
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+  | --exec=* | --exe=* | --ex=*)
+    exec_prefix=$ac_optarg ;;
+
+  -gas | --gas | --ga | --g)
+    # Obsolete; use --with-gas.
+    with_gas=yes ;;
+
+  -help | --help | --hel | --he | -h)
+    ac_init_help=long ;;
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+    ac_init_help=recursive ;;
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+    ac_init_help=short ;;
+
+  -host | --host | --hos | --ho)
+    ac_prev=host_alias ;;
+  -host=* | --host=* | --hos=* | --ho=*)
+    host_alias=$ac_optarg ;;
+
+  -includedir | --includedir | --includedi | --included | --include \
+  | --includ | --inclu | --incl | --inc)
+    ac_prev=includedir ;;
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
+    includedir=$ac_optarg ;;
+
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
+    ac_prev=infodir ;;
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+    infodir=$ac_optarg ;;
+
+  -libdir | --libdir | --libdi | --libd)
+    ac_prev=libdir ;;
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
+    libdir=$ac_optarg ;;
+
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+  | --libexe | --libex | --libe)
+    ac_prev=libexecdir ;;
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+  | --libexe=* | --libex=* | --libe=*)
+    libexecdir=$ac_optarg ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst \
+  | --locals | --local | --loca | --loc | --lo)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+    localstatedir=$ac_optarg ;;
+
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+    ac_prev=mandir ;;
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+    mandir=$ac_optarg ;;
+
+  -nfp | --nfp | --nf)
+    # Obsolete; use --without-fp.
+    with_fp=no ;;
+
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c)
+    no_create=yes ;;
+
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+    no_recursion=yes ;;
+
+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+  | --oldin | --oldi | --old | --ol | --o)
+    ac_prev=oldincludedir ;;
+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+    oldincludedir=$ac_optarg ;;
+
+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+    ac_prev=prefix ;;
+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+    prefix=$ac_optarg ;;
+
+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
+  | --program-pre | --program-pr | --program-p)
+    ac_prev=program_prefix ;;
+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+    program_prefix=$ac_optarg ;;
+
+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
+  | --program-suf | --program-su | --program-s)
+    ac_prev=program_suffix ;;
+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+    program_suffix=$ac_optarg ;;
+
+  -program-transform-name | --program-transform-name \
+  | --program-transform-nam | --program-transform-na \
+  | --program-transform-n | --program-transform- \
+  | --program-transform | --program-transfor \
+  | --program-transfo | --program-transf \
+  | --program-trans | --program-tran \
+  | --progr-tra | --program-tr | --program-t)
+    ac_prev=program_transform_name ;;
+  -program-transform-name=* | --program-transform-name=* \
+  | --program-transform-nam=* | --program-transform-na=* \
+  | --program-transform-n=* | --program-transform-=* \
+  | --program-transform=* | --program-transfor=* \
+  | --program-transfo=* | --program-transf=* \
+  | --program-trans=* | --program-tran=* \
+  | --progr-tra=* | --program-tr=* | --program-t=*)
+    program_transform_name=$ac_optarg ;;
+
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil)
+    silent=yes ;;
+
+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+    ac_prev=sbindir ;;
+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+  | --sbi=* | --sb=*)
+    sbindir=$ac_optarg ;;
+
+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+  | --sharedst | --shareds | --shared | --share | --shar \
+  | --sha | --sh)
+    ac_prev=sharedstatedir ;;
+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+  | --sha=* | --sh=*)
+    sharedstatedir=$ac_optarg ;;
+
+  -site | --site | --sit)
+    ac_prev=site ;;
+  -site=* | --site=* | --sit=*)
+    site=$ac_optarg ;;
+
+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+    ac_prev=srcdir ;;
+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+    srcdir=$ac_optarg ;;
+
+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+  | --syscon | --sysco | --sysc | --sys | --sy)
+    ac_prev=sysconfdir ;;
+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+    sysconfdir=$ac_optarg ;;
+
+  -target | --target | --targe | --targ | --tar | --ta | --t)
+    ac_prev=target_alias ;;
+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+    target_alias=$ac_optarg ;;
+
+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
+    verbose=yes ;;
+
+  -version | --version | --versio | --versi | --vers | -V)
+    ac_init_version=: ;;
+
+  -with-* | --with-*)
+    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package| sed 's/-/_/g'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    eval "with_$ac_package='$ac_optarg'" ;;
+
+  -without-* | --without-*)
+    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package | sed 's/-/_/g'`
+    eval "with_$ac_package=no" ;;
+
+  --x)
+    # Obsolete; use --with-x.
+    with_x=yes ;;
+
+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+  | --x-incl | --x-inc | --x-in | --x-i)
+    ac_prev=x_includes ;;
+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+    x_includes=$ac_optarg ;;
+
+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+    ac_prev=x_libraries ;;
+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+    x_libraries=$ac_optarg ;;
+
+  -*) { echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; }
+    ;;
+
+  *=*)
+    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+   { (exit 1); exit 1; }; }
+    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+    eval "$ac_envvar='$ac_optarg'"
+    export $ac_envvar ;;
+
+  *)
+    # FIXME: should be removed in autoconf 3.0.
+    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+    ;;
+
+  esac
+done
+
+if test -n "$ac_prev"; then
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+  { echo "$as_me: error: missing argument to $ac_option" >&2
+   { (exit 1); exit 1; }; }
+fi
+
+# Be sure to have absolute paths.
+for ac_var in exec_prefix prefix
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+              localstatedir libdir includedir oldincludedir infodir mandir
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* ) ;;
+    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: should be removed in autoconf 3.0.
+if test "x$host_alias" != x; then
+  if test "x$build_alias" = x; then
+    cross_compiling=maybe
+    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+    If a cross compiler is detected then cross compile mode will be used." >&2
+  elif test "x$build_alias" != "x$host_alias"; then
+    cross_compiling=yes
+  fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+  ac_srcdir_defaulted=yes
+  # Try the directory containing this script, then its parent.
+  ac_prog=$0
+  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
+  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+  srcdir=$ac_confdir
+  if test ! -r $srcdir/$ac_unique_file; then
+    srcdir=..
+  fi
+else
+  ac_srcdir_defaulted=no
+fi
+if test ! -r $srcdir/$ac_unique_file; then
+  if test "$ac_srcdir_defaulted" = yes; then
+    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
+   { (exit 1); exit 1; }; }
+  else
+    { echo "$as_me: error: cannot find sources in $srcdir" >&2
+   { (exit 1); exit 1; }; }
+  fi
+fi
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CXX_set=${CXX+set}
+ac_env_CXX_value=$CXX
+ac_cv_env_CXX_set=${CXX+set}
+ac_cv_env_CXX_value=$CXX
+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_env_CXXFLAGS_value=$CXXFLAGS
+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+  # Omit some internal or obsolete options to make the list less imposing.
+  # This message is too long to be a string in the A/UX 3.1 sh.
+  cat <<EOF
+\`configure' configures RtAudio 2.1 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE.  See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+  -h, --help              display this help and exit
+      --help=short        display options specific to this package
+      --help=recursive    display the short help of all the included packages
+  -V, --version           display version information and exit
+  -q, --quiet, --silent   do not print \`checking...' messages
+      --cache-file=FILE   cache test results in FILE [disabled]
+  -C, --config-cache      alias for \`--cache-file=config.cache'
+  -n, --no-create         do not create output files
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+
+EOF
+
+  cat <<EOF
+Installation directories:
+  --prefix=PREFIX         install architecture-independent files in PREFIX
+                          [$ac_default_prefix]
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+                          [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+  --bindir=DIR           user executables [EPREFIX/bin]
+  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR       program executables [EPREFIX/libexec]
+  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+  --libdir=DIR           object code libraries [EPREFIX/lib]
+  --includedir=DIR       C header files [PREFIX/include]
+  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+  --infodir=DIR          info documentation [PREFIX/info]
+  --mandir=DIR           man documentation [PREFIX/man]
+EOF
+
+  cat <<\EOF
+
+System types:
+  --build=BUILD     configure for building on BUILD [guessed]
+  --host=HOST       build programs to run on HOST [BUILD]
+EOF
+fi
+
+if test -n "$ac_init_help"; then
+  case $ac_init_help in
+     short | recursive ) echo "Configuration of RtAudio 2.1:";;
+   esac
+  cat <<\EOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-debug = enable various debug output
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-alsa = choose native ALSA API support (linux only)
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+              headers in a nonstandard directory <include dir>
+  CXX         C++ compiler command
+  CXXFLAGS    C++ compiler flags
+  CPP         C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <gary@ccrma.stanford.edu>.
+EOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  ac_popdir=`pwd`
+  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
+    cd $ac_subdir
+    # A "../" for each directory in /$ac_subdir.
+    ac_dots=`echo $ac_subdir |
+             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
+
+    case $srcdir in
+    .) # No --srcdir option.  We are building in place.
+      ac_sub_srcdir=$srcdir ;;
+    [\\/]* | ?:[\\/]* ) # Absolute path.
+      ac_sub_srcdir=$srcdir/$ac_subdir ;;
+    *) # Relative path.
+      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
+    esac
+
+    # Check for guested configure; otherwise get Cygnus style configure.
+    if test -f $ac_sub_srcdir/configure.gnu; then
+      echo
+      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
+    elif test -f $ac_sub_srcdir/configure; then
+      echo
+      $SHELL $ac_sub_srcdir/configure  --help=recursive
+    elif test -f $ac_sub_srcdir/configure.ac ||
+           test -f $ac_sub_srcdir/configure.in; then
+      echo
+      $ac_configure --help
+    else
+      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
+    fi
+    cd $ac_popdir
+  done
+fi
+
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+  cat <<\EOF
+RtAudio configure 2.1
+generated by GNU Autoconf 2.52
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+EOF
+  exit 0
+fi
+exec 5>config.log
+cat >&5 <<EOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by RtAudio $as_me 2.1, which was
+generated by GNU Autoconf 2.52.  Invocation command line was
+
+  $ $0 $@
+
+EOF
+{
+cat <<_ASUNAME
+## ---------- ##
+## Platform.  ##
+## ---------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
+
+/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
+/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
+/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
+
+PATH = $PATH
+
+_ASUNAME
+} >&5
+
+cat >&5 <<EOF
+## ------------ ##
+## Core tests.  ##
+## ------------ ##
+
+EOF
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Also quote any args containing shell meta-characters.
+ac_configure_args=
+ac_sep=
+for ac_arg
+do
+  case $ac_arg in
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c) ;;
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
+    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+    ac_sep=" " ;;
+  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
+     ac_sep=" " ;;
+  esac
+  # Get rid of the leading space.
+done
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log.  We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+trap 'exit_status=$?
+  # Save into config.log some information that might help in debugging.
+  echo >&5
+  echo "## ----------------- ##" >&5
+  echo "## Cache variables.  ##" >&5
+  echo "## ----------------- ##" >&5
+  echo >&5
+  # The following way of writing the cache mishandles newlines in values,
+{
+  (set) 2>&1 |
+    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      sed -n \
+        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+      ;;
+    *)
+      sed -n \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} >&5
+  sed "/^$/d" confdefs.h >conftest.log
+  if test -s conftest.log; then
+    echo >&5
+    echo "## ------------ ##" >&5
+    echo "## confdefs.h.  ##" >&5
+    echo "## ------------ ##" >&5
+    echo >&5
+    cat conftest.log >&5
+  fi
+  (echo; echo) >&5
+  test "$ac_signal" != 0 &&
+    echo "$as_me: caught signal $ac_signal" >&5
+  echo "$as_me: exit $exit_status" >&5
+  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
+    exit $exit_status
+     ' 0
+for ac_signal in 1 2 13 15; do
+  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >confdefs.h
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer explicitly selected file to automatically selected ones.
+if test -z "$CONFIG_SITE"; then
+  if test "x$prefix" != xNONE; then
+    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+  else
+    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+  fi
+fi
+for ac_site_file in $CONFIG_SITE; do
+  if test -r "$ac_site_file"; then
+    { echo "$as_me:850: loading site script $ac_site_file" >&5
+echo "$as_me: loading site script $ac_site_file" >&6;}
+    cat "$ac_site_file" >&5
+    . "$ac_site_file"
+  fi
+done
+
+if test -r "$cache_file"; then
+  # Some versions of bash will fail to source /dev/null (special
+  # files actually), so we avoid doing that.
+  if test -f "$cache_file"; then
+    { echo "$as_me:861: loading cache $cache_file" >&5
+echo "$as_me: loading cache $cache_file" >&6;}
+    case $cache_file in
+      [\\/]* | ?:[\\/]* ) . $cache_file;;
+      *)                      . ./$cache_file;;
+    esac
+  fi
+else
+  { echo "$as_me:869: creating cache $cache_file" >&5
+echo "$as_me: creating cache $cache_file" >&6;}
+  >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in `(set) 2>&1 |
+               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+  eval ac_new_val="\$ac_env_${ac_var}_value"
+  case $ac_old_set,$ac_new_set in
+    set,)
+      { echo "$as_me:885: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,set)
+      { echo "$as_me:889: error: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,);;
+    *)
+      if test "x$ac_old_val" != "x$ac_new_val"; then
+        { echo "$as_me:895: error: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+        { echo "$as_me:897:   former value:  $ac_old_val" >&5
+echo "$as_me:   former value:  $ac_old_val" >&2;}
+        { echo "$as_me:899:   current value: $ac_new_val" >&5
+echo "$as_me:   current value: $ac_new_val" >&2;}
+        ac_cache_corrupted=:
+      fi;;
+  esac
+  # Pass precious variables to config.status.  It doesn't matter if
+  # we pass some twice (in addition to the command line arguments).
+  if test "$ac_new_set" = set; then
+    case $ac_new_val in
+    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
+      ac_configure_args="$ac_configure_args '$ac_arg'"
+      ;;
+    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
+       ;;
+    esac
+  fi
+done
+if $ac_cache_corrupted; then
+  { echo "$as_me:918: error: changes in the environment can compromise the build" >&5
+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+  { { echo "$as_me:920: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='     ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+echo "#! $SHELL" >conftest.sh
+echo  "exit 0"   >>conftest.sh
+chmod +x conftest.sh
+if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
+  (PATH=".;."; conftest.sh) 2>&5
+  ac_status=$?
+  echo "$as_me:943: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  ac_path_separator=';'
+else
+  ac_path_separator=:
+fi
+PATH_SEPARATOR="$ac_path_separator"
+rm -f conftest.sh
+
+ac_config_files="$ac_config_files tests/Makefile"
+
+# Checks for programs.
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:963: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_CC="${ac_tool_prefix}gcc"
+echo "$as_me:978: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  echo "$as_me:986: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+  echo "$as_me:989: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:998: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_ac_ct_CC="gcc"
+echo "$as_me:1013: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:1021: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:1024: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:1037: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_CC="${ac_tool_prefix}cc"
+echo "$as_me:1052: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  echo "$as_me:1060: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+  echo "$as_me:1063: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:1072: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_ac_ct_CC="cc"
+echo "$as_me:1087: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:1095: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:1098: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:1111: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+  ac_prog_rejected=yes
+  continue
+fi
+ac_cv_prog_CC="cc"
+echo "$as_me:1131: found $ac_dir/$ac_word" >&5
+break
+done
+
+if test $ac_prog_rejected = yes; then
+  # We found a bogon in the path, so make sure we never use it.
+  set dummy $ac_cv_prog_CC
+  shift
+  if test $# != 0; then
+    # We chose a different compiler from the bogus one.
+    # However, it has the same basename, so the bogon will be chosen
+    # first if we set CC to just the basename; use the full file name.
+    shift
+    set dummy "$ac_dir/$ac_word" ${1+"$@"}
+    shift
+    ac_cv_prog_CC="$@"
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  echo "$as_me:1153: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+  echo "$as_me:1156: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:1167: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+echo "$as_me:1182: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  echo "$as_me:1190: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+  echo "$as_me:1193: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:1206: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_ac_ct_CC="$ac_prog"
+echo "$as_me:1221: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:1229: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:1232: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  test -n "$ac_ct_CC" && break
+done
+
+  CC=$ac_ct_CC
+fi
+
+fi
+
+test -z "$CC" && { { echo "$as_me:1244: error: no acceptable cc found in \$PATH" >&5
+echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
+   { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:1249:" \
+     "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:1252: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1255: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:1257: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1260: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:1262: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1265: \$? = $ac_status" >&5
+  (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+#line 1269 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.exe"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+echo "$as_me:1285: checking for C compiler default output" >&5
+echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo "$as_me:1288: \"$ac_link_default\"") >&5
+  (eval $ac_link_default) 2>&5
+  ac_status=$?
+  echo "$as_me:1291: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Find the output, starting from the most likely.  This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+for ac_file in `ls a.exe conftest.exe 2>/dev/null;
+                ls a.out conftest 2>/dev/null;
+                ls a.* conftest.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    a.out ) # We found the default executable, but exeext='' is most
+            # certainly right.
+            break;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
+          export ac_cv_exeext
+          break;;
+    * ) break;;
+  esac
+done
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+{ { echo "$as_me:1314: error: C compiler cannot create executables" >&5
+echo "$as_me: error: C compiler cannot create executables" >&2;}
+   { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+echo "$as_me:1320: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:1325: checking whether the C compiler works" >&5
+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+  if { ac_try='./$ac_file'
+  { (eval echo "$as_me:1331: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1334: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+    cross_compiling=no
+  else
+    if test "$cross_compiling" = maybe; then
+       cross_compiling=yes
+    else
+       { { echo "$as_me:1341: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'." >&5
+echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'." >&2;}
+   { (exit 1); exit 1; }; }
+    fi
+  fi
+fi
+echo "$as_me:1349: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+
+rm -f a.out a.exe conftest$ac_cv_exeext
+ac_clean_files=$ac_clean_files_save
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:1356: checking whether we are cross compiling" >&5
+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+echo "$as_me:1358: result: $cross_compiling" >&5
+echo "${ECHO_T}$cross_compiling" >&6
+
+echo "$as_me:1361: checking for executable suffix" >&5
+echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
+if { (eval echo "$as_me:1363: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:1366: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+          export ac_cv_exeext
+          break;;
+    * ) break;;
+  esac
+done
+else
+  { { echo "$as_me:1382: error: cannot compute EXEEXT: cannot compile and link" >&5
+echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+echo "$as_me:1388: result: $ac_cv_exeext" >&5
+echo "${ECHO_T}$ac_cv_exeext" >&6
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+echo "$as_me:1394: checking for object suffix" >&5
+echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
+if test "${ac_cv_objext+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1400 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (eval echo "$as_me:1412: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1415: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+       break;;
+  esac
+done
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+{ { echo "$as_me:1427: error: cannot compute OBJEXT: cannot compile" >&5
+echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+echo "$as_me:1434: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+echo "$as_me:1438: checking whether we are using the GNU C compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1444 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1459: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1462: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1465: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1468: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_compiler_gnu=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:1480: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:1486: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1492 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1504: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1507: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1510: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1513: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:1523: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+  CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+  if test "$GCC" = yes; then
+    CFLAGS="-g -O2"
+  else
+    CFLAGS="-g"
+  fi
+else
+  if test "$GCC" = yes; then
+    CFLAGS="-O2"
+  else
+    CFLAGS=
+  fi
+fi
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1553: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1556: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1559: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1571 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1584: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1587: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1590: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1593: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1603 "configure"
+#include "confdefs.h"
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1618: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1621: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1624: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  for ac_prog in $CCC CC g++ c++ cxx
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:1661: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CXX+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CXX"; then
+  ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+echo "$as_me:1676: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+  echo "$as_me:1684: result: $CXX" >&5
+echo "${ECHO_T}$CXX" >&6
+else
+  echo "$as_me:1687: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+    test -n "$CXX" && break
+  done
+fi
+if test -z "$CXX"; then
+  ac_ct_CXX=$CXX
+  for ac_prog in $CCC CC g++ c++ cxx
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:1700: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CXX"; then
+  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+  ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+  IFS=$ac_save_IFS
+  test -z "$ac_dir" && ac_dir=.
+  $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_ac_ct_CXX="$ac_prog"
+echo "$as_me:1715: found $ac_dir/$ac_word" >&5
+break
+done
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+  echo "$as_me:1723: result: $ac_ct_CXX" >&5
+echo "${ECHO_T}$ac_ct_CXX" >&6
+else
+  echo "$as_me:1726: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  test -n "$ac_ct_CXX" && break
+done
+test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
+
+  CXX=$ac_ct_CXX
+fi
+
+# Provide some information about the compiler.
+echo "$as_me:1738:" \
+     "checking for C++ compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:1741: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1744: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:1746: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1749: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:1751: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:1754: \$? = $ac_status" >&5
+  (exit $ac_status); }
+
+echo "$as_me:1757: checking whether we are using the GNU C++ compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1763 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1781: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1784: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1787: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_compiler_gnu=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:1799: result: $ac_cv_cxx_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
+GXX=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="-g"
+echo "$as_me:1805: checking whether $CXX accepts -g" >&5
+echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cxx_g+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1811 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1823: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1826: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1829: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1832: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cxx_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:1842: result: $ac_cv_prog_cxx_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
+if test "$ac_test_CXXFLAGS" = set; then
+  CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+  if test "$GXX" = yes; then
+    CXXFLAGS="-g -O2"
+  else
+    CXXFLAGS="-g"
+  fi
+else
+  if test "$GXX" = yes; then
+    CXXFLAGS="-O2"
+  else
+    CXXFLAGS=
+  fi
+fi
+for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1869 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1885: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1888: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1891: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line 1901 "configure"
+#include "confdefs.h"
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:1916: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:1919: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1922: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+# Checks for libraries.
+
+echo "$as_me:1946: checking for pthread_create in -lpthread" >&5
+echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
+if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpthread  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line 1954 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char pthread_create ();
+int
+main ()
+{
+pthread_create ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:1973: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:1976: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:1979: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:1982: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_pthread_pthread_create=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_lib_pthread_pthread_create=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:1993: result: $ac_cv_lib_pthread_pthread_create" >&5
+echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+if test $ac_cv_lib_pthread_pthread_create = yes; then
+  cat >>confdefs.h <<EOF
+#define HAVE_LIBPTHREAD 1
+EOF
+
+  LIBS="-lpthread $LIBS"
+
+else
+  { { echo "$as_me:2003: error: RtAudio requires the pthread library!" >&5
+echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+# Checks for header files.
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo "$as_me:2014: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+  CPP=
+fi
+if test -z "$CPP"; then
+  if test "${ac_cv_prog_CPP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2035 "configure"
+#include "confdefs.h"
+#include <assert.h>
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:2040: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2046: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2069 "configure"
+#include "confdefs.h"
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:2073: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2079: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  # Broken: success on invalid input.
+continue
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+echo "$as_me:2116: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2126 "configure"
+#include "confdefs.h"
+#include <assert.h>
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2137: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2160 "configure"
+#include "confdefs.h"
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2170: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  # Broken: success on invalid input.
+continue
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo "$as_me:2198: error: C preprocessor \"$CPP\" fails sanity check" >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+echo "$as_me:2209: checking for ANSI C header files" >&5
+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+if test "${ac_cv_header_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2215 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+_ACEOF
+if { (eval echo "$as_me:2223: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2229: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  ac_cv_header_stdc=yes
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  ac_cv_header_stdc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2251 "configure"
+#include "confdefs.h"
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  egrep "memchr" >/dev/null 2>&1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2269 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  egrep "free" >/dev/null 2>&1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+  if test "$cross_compiling" = yes; then
+  :
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2290 "configure"
+#include "confdefs.h"
+#include <ctype.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
+                     || ('j' <= (c) && (c) <= 'r') \
+                     || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+  int i;
+  for (i = 0; i < 256; i++)
+    if (XOR (islower (i), ISLOWER (i))
+        || toupper (i) != TOUPPER (i))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:2316: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:2319: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (eval echo "$as_me:2321: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2324: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_header_stdc=no
+fi
+rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+fi
+echo "$as_me:2337: result: $ac_cv_header_stdc" >&5
+echo "${ECHO_T}$ac_cv_header_stdc" >&6
+if test $ac_cv_header_stdc = yes; then
+
+cat >>confdefs.h <<\EOF
+#define STDC_HEADERS 1
+EOF
+
+fi
+
+for ac_header in sys/ioctl.h unistd.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+echo "$as_me:2350: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2356 "configure"
+#include "confdefs.h"
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2366: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  eval "$as_ac_Header=yes"
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  eval "$as_ac_Header=no"
+fi
+rm -f conftest.err conftest.$ac_ext
+fi
+echo "$as_me:2385: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<EOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+EOF
+
+fi
+done
+
+# Checks for typedefs, structures, and compiler characteristics.
+echo "$as_me:2396: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+#line 2404 "configure"
+#include "confdefs.h"
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX                  -qlanglvl=ansi
+# Ultrix and OSF/1     -std1
+# HP-UX 10.20 and later        -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4                 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (eval echo "$as_me:2453: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:2456: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:2459: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2462: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+  x|xno)
+    echo "$as_me:2479: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+  *)
+    echo "$as_me:2482: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+    CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+echo "$as_me:2487: checking for an ANSI C-conforming const" >&5
+echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
+if test "${ac_cv_c_const+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2493 "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+  /* Ultrix mips cc rejects this.  */
+  typedef int charset[2];
+  const charset x;
+  /* SunOS 4.1.1 cc rejects this.  */
+  char const *const *ccp;
+  char **p;
+  /* NEC SVR4.0.2 mips cc rejects this.  */
+  struct point {int x, y;};
+  static struct point const zero = {0,0};
+  /* AIX XL C 1.02.0.0 rejects this.
+     It does not let you subtract one const X* pointer from another in
+     an arm of an if-expression whose if-part is not a constant
+     expression */
+  const char *g = "string";
+  ccp = &g + (g ? g-g : 0);
+  /* HPUX 7.0 cc rejects these. */
+  ++ccp;
+  p = (char**) ccp;
+  ccp = (char const *const *) p;
+  { /* SCO 3.2v4 cc rejects this.  */
+    char *t;
+    char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+    *t++ = 0;
+  }
+  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
+    int x[] = {25, 17};
+    const int *foo = &x[0];
+    ++foo;
+  }
+  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+    typedef const int *iptr;
+    iptr p = 0;
+    ++p;
+  }
+  { /* AIX XL C 1.02.0.0 rejects this saying
+       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+    struct s { int j; const int *ap[3]; };
+    struct s *b; b->j = 5;
+  }
+  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+    const int foo = 10;
+  }
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:2554: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:2557: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2560: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_c_const=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_c_const=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:2570: result: $ac_cv_c_const" >&5
+echo "${ECHO_T}$ac_cv_c_const" >&6
+if test $ac_cv_c_const = no; then
+
+cat >>confdefs.h <<\EOF
+#define const
+EOF
+
+fi
+
+# Check for debug
+echo "$as_me:2581: checking whether to compile debug version" >&5
+echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
+# Check whether --enable-debug or --disable-debug was given.
+if test "${enable_debug+set}" = set; then
+  enableval="$enable_debug"
+  debug=-D__RTAUDIO_DEBUG__
+ cflags=-g
+ object_path=Debug
+ echo "$as_me:2589: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+  debug=
+ cflags=-O2
+ object_path=Release
+ echo "$as_me:2595: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi;
+
+# Check compiler and use -Wall if gnu.
+if test $GXX = "yes" ; then
+  warn=-Wall
+
+fi
+
+# Checks for package options and external software
+ac_aux_dir=
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+  if test -f $ac_dir/install-sh; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install-sh -c"
+    break
+  elif test -f $ac_dir/install.sh; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install.sh -c"
+    break
+  elif test -f $ac_dir/shtool; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/shtool install -c"
+    break
+  fi
+done
+if test -z "$ac_aux_dir"; then
+  { { echo "$as_me:2623: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+
+# Make sure we can run config.sub.
+$ac_config_sub sun4 >/dev/null 2>&1 ||
+  { { echo "$as_me:2633: error: cannot run $ac_config_sub" >&5
+echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+   { (exit 1); exit 1; }; }
+
+echo "$as_me:2637: checking build system type" >&5
+echo $ECHO_N "checking build system type... $ECHO_C" >&6
+if test "${ac_cv_build+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_build_alias=$build_alias
+test -z "$ac_cv_build_alias" &&
+  ac_cv_build_alias=`$ac_config_guess`
+test -z "$ac_cv_build_alias" &&
+  { { echo "$as_me:2646: error: cannot guess build type; you must specify one" >&5
+echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+   { (exit 1); exit 1; }; }
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+  { { echo "$as_me:2650: error: $ac_config_sub $ac_cv_build_alias failed." >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:2655: result: $ac_cv_build" >&5
+echo "${ECHO_T}$ac_cv_build" >&6
+build=$ac_cv_build
+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+echo "$as_me:2662: checking host system type" >&5
+echo $ECHO_N "checking host system type... $ECHO_C" >&6
+if test "${ac_cv_host+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_host_alias=$host_alias
+test -z "$ac_cv_host_alias" &&
+  ac_cv_host_alias=$ac_cv_build_alias
+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
+  { { echo "$as_me:2671: error: $ac_config_sub $ac_cv_host_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:2676: result: $ac_cv_host" >&5
+echo "${ECHO_T}$ac_cv_host" >&6
+host=$ac_cv_host
+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+echo "$as_me:2683: checking for audio API" >&5
+echo $ECHO_N "checking for audio API... $ECHO_C" >&6
+case $host in
+  *-*-linux*)
+
+# Check whether --with-alsa or --without-alsa was given.
+if test "${with_alsa+set}" = set; then
+  withval="$with_alsa"
+  sound_api=-D__LINUX_ALSA__
+ echo "$as_me:2692: result: using ALSA" >&5
+echo "${ECHO_T}using ALSA" >&6
+else
+  sound_api=-D__LINUX_OSS__
+ echo "$as_me:2696: result: using OSS" >&5
+echo "${ECHO_T}using OSS" >&6
+fi;
+
+  if test $sound_api = -D__LINUX_ALSA__; then
+
+echo "$as_me:2702: checking for snd_pcm_open in -lasound" >&5
+echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
+if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lasound  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line 2710 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char snd_pcm_open ();
+int
+main ()
+{
+snd_pcm_open ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:2729: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:2732: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:2735: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2738: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_asound_snd_pcm_open=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_lib_asound_snd_pcm_open=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:2749: result: $ac_cv_lib_asound_snd_pcm_open" >&5
+echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
+if test $ac_cv_lib_asound_snd_pcm_open = yes; then
+  cat >>confdefs.h <<EOF
+#define HAVE_LIBASOUND 1
+EOF
+
+  LIBS="-lasound $LIBS"
+
+else
+  { { echo "$as_me:2759: error: ALSA support requires the asound library!" >&5
+echo "$as_me: error: ALSA support requires the asound library!" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+  fi
+  ;;
+
+  *-sgi*)
+  sound_api=-D__IRIX_AL__
+
+  echo "$as_me:2770: result: using IRIX AL" >&5
+echo "${ECHO_T}using IRIX AL" >&6
+
+echo "$as_me:2773: checking for alOpenPort in -laudio" >&5
+echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
+if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-laudio  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line 2781 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char alOpenPort ();
+int
+main ()
+{
+alOpenPort ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:2800: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:2803: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:2806: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2809: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_audio_alOpenPort=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_lib_audio_alOpenPort=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:2820: result: $ac_cv_lib_audio_alOpenPort" >&5
+echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
+if test $ac_cv_lib_audio_alOpenPort = yes; then
+  cat >>confdefs.h <<EOF
+#define HAVE_LIBAUDIO 1
+EOF
+
+  LIBS="-laudio $LIBS"
+
+else
+  { { echo "$as_me:2830: error: IRIX audio support requires the audio library!" >&5
+echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+  ;;
+
+  *-apple*)
+  # Check for CoreAudio framework
+  echo "$as_me:2839: checking for CoreAudio/CoreAudio.h" >&5
+echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
+if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2845 "configure"
+#include "confdefs.h"
+#include <CoreAudio/CoreAudio.h>
+_ACEOF
+if { (eval echo "$as_me:2849: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  egrep -v '^ *\+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:2855: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  ac_cv_header_CoreAudio_CoreAudio_h=yes
+else
+  echo "$as_me: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  ac_cv_header_CoreAudio_CoreAudio_h=no
+fi
+rm -f conftest.err conftest.$ac_ext
+fi
+echo "$as_me:2874: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
+echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
+if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
+  sound_api=-D__MACOSX_CORE__
+
+else
+  { { echo "$as_me:2880: error: CoreAudio header files not found!" >&5
+echo "$as_me: error: CoreAudio header files not found!" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+  frameworks="-framework CoreAudio"
+
+echo "$as_me:2887: checking for printf in -lstdc++" >&5
+echo $ECHO_N "checking for printf in -lstdc++... $ECHO_C" >&6
+if test "${ac_cv_lib_stdcpp_printf+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lstdc++  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line 2895 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char printf ();
+int
+main ()
+{
+printf ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:2914: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:2917: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:2920: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:2923: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_stdcpp_printf=yes
+else
+  echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_lib_stdcpp_printf=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:2934: result: $ac_cv_lib_stdcpp_printf" >&5
+echo "${ECHO_T}$ac_cv_lib_stdcpp_printf" >&6
+if test $ac_cv_lib_stdcpp_printf = yes; then
+  cat >>confdefs.h <<EOF
+#define HAVE_LIBSTDC__ 1
+EOF
+
+  LIBS="-lstdc++ $LIBS"
+
+else
+  { { echo "$as_me:2944: error: RtAudio requires the C++ library!" >&5
+echo "$as_me: error: RtAudio requires the C++ library!" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+  ;;
+
+  *)
+  # Default case for unknown realtime systems.
+  { { echo "$as_me:2953: error: Unknown system type for realtime support!" >&5
+echo "$as_me: error: Unknown system type for realtime support!" >&2;}
+   { (exit 1); exit 1; }; }
+  ;;
+esac
+
+# Checks for library functions.
+if test $ac_cv_c_compiler_gnu = yes; then
+    echo "$as_me:2961: checking whether $CC needs -traditional" >&5
+echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
+if test "${ac_cv_prog_gcc_traditional+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+    ac_pattern="Autoconf.*'x'"
+  cat >conftest.$ac_ext <<_ACEOF
+#line 2968 "configure"
+#include "confdefs.h"
+#include <sgtty.h>
+Autoconf TIOCGETP
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  egrep "$ac_pattern" >/dev/null 2>&1; then
+  ac_cv_prog_gcc_traditional=yes
+else
+  ac_cv_prog_gcc_traditional=no
+fi
+rm -f conftest*
+
+  if test $ac_cv_prog_gcc_traditional = no; then
+    cat >conftest.$ac_ext <<_ACEOF
+#line 2983 "configure"
+#include "confdefs.h"
+#include <termio.h>
+Autoconf TCGETA
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  egrep "$ac_pattern" >/dev/null 2>&1; then
+  ac_cv_prog_gcc_traditional=yes
+fi
+rm -f conftest*
+
+  fi
+fi
+echo "$as_me:2996: result: $ac_cv_prog_gcc_traditional" >&5
+echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
+  if test $ac_cv_prog_gcc_traditional = yes; then
+    CC="$CC -traditional"
+  fi
+fi
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overriden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+  (set) 2>&1 |
+    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+        "s/'/'\\\\''/g;
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+      ;;
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     : end' >>confcache
+if cmp -s $cache_file confcache; then :; else
+  if test -w $cache_file; then
+    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+    cat confcache >$cache_file
+  else
+    echo "not updating unwritable cache $cache_file"
+  fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+  ac_vpsub='/^[        ]*VPATH[        ]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[   ]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[     ]*$//;
+}'
+fi
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then we branch to the quote section.  Otherwise,
+# look for a macro that doesn't take arguments.
+cat >confdef2opt.sed <<\EOF
+t clear
+: clear
+s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
+t quote
+s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
+t quote
+d
+: quote
+s,[    `~#$^&*(){}\\|;'"<>?],\\&,g
+s,\[,\\&,g
+s,\],\\&,g
+s,\$,$$,g
+p
+EOF
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT=`echo; echo .`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+rm -f confdef2opt.sed
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:3112: creating $CONFIG_STATUS" >&5
+echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
+# Generated automatically by configure.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+ac_cs_invocation="\$0 \$@"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Name of the executable.
+as_me=`echo "$0" |sed 's,.*[\\/],,'`
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+as_executable_p="test -f"
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+# NLS nuisances.
+$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
+$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
+$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
+$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
+$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
+$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
+$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
+$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS="  $as_nl"
+
+# CDPATH.
+$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
+
+exec 6>&1
+
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+fi
+
+cat >>$CONFIG_STATUS <<\EOF
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number, then exit
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+                   instantiate the configuration file FILE
+
+Configuration files:
+$config_files
+
+Report bugs to <bug-autoconf@gnu.org>."
+EOF
+
+cat >>$CONFIG_STATUS <<EOF
+ac_cs_version="\\
+RtAudio config.status 2.1
+configured by $0, generated by GNU Autoconf 2.52,
+  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=$srcdir
+EOF
+
+cat >>$CONFIG_STATUS <<\EOF
+# If no file are specified by the user, then we need to provide default
+# value.  By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=*)
+    ac_option=`expr "x$1" : 'x\([^=]*\)='`
+    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+    shift
+    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
+    shift
+    ;;
+  -*);;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_need_defaults=false;;
+  esac
+
+  case $1 in
+  # Handling of the options.
+EOF
+cat >>$CONFIG_STATUS <<EOF
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
+    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
+EOF
+cat >>$CONFIG_STATUS <<\EOF
+  --version | --vers* | -V )
+    echo "$ac_cs_version"; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo "$as_me:3279: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; };;
+  --help | --hel | -h )
+    echo "$ac_cs_usage"; exit 0 ;;
+  --debug | --d* | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    shift
+    CONFIG_FILES="$CONFIG_FILES $1"
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    shift
+    CONFIG_HEADERS="$CONFIG_HEADERS $1"
+    ac_need_defaults=false;;
+
+  # This is an error.
+  -*) { { echo "$as_me:3298: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets="$ac_config_targets $1" ;;
+
+  esac
+  shift
+done
+
+exec 5>>config.log
+cat >&5 << _ACEOF
+
+## ----------------------- ##
+## Running config.status.  ##
+## ----------------------- ##
+
+This file was extended by $as_me (RtAudio 2.1) 2.52, executed with
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  > $ac_cs_invocation
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+
+_ACEOF
+EOF
+
+cat >>$CONFIG_STATUS <<\EOF
+for ac_config_target in $ac_config_targets
+do
+  case "$ac_config_target" in
+  # Handling of arguments.
+  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
+  *) { { echo "$as_me:3334: error: invalid argument: $ac_config_target" >&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+fi
+
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+: ${TMPDIR=/tmp}
+{
+  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=$TMPDIR/cs$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
+   { (exit 1); exit 1; }
+}
+
+EOF
+
+cat >>$CONFIG_STATUS <<EOF
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "\$CONFIG_FILES"; then
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s,@SHELL@,$SHELL,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@DEFS@,$DEFS,;t t
+s,@LIBS@,$LIBS,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@CXX@,$CXX,;t t
+s,@CXXFLAGS@,$CXXFLAGS,;t t
+s,@ac_ct_CXX@,$ac_ct_CXX,;t t
+s,@CPP@,$CPP,;t t
+s,@debug@,$debug,;t t
+s,@cflags@,$cflags,;t t
+s,@object_path@,$object_path,;t t
+s,@warn@,$warn,;t t
+s,@build@,$build,;t t
+s,@build_cpu@,$build_cpu,;t t
+s,@build_vendor@,$build_vendor,;t t
+s,@build_os@,$build_os,;t t
+s,@host@,$host,;t t
+s,@host_cpu@,$host_cpu,;t t
+s,@host_vendor@,$host_vendor,;t t
+s,@host_os@,$host_os,;t t
+s,@sound_api@,$sound_api,;t t
+s,@frameworks@,$frameworks,;t t
+CEOF
+
+EOF
+
+  cat >>$CONFIG_STATUS <<\EOF
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    else
+      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
+    else
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+      if test -z "$ac_sed_cmds"; then
+       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+      else
+       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
+    fi
+  done
+  if test -z "$ac_sed_cmds"; then
+    ac_sed_cmds=cat
+  fi
+fi # test -n "$CONFIG_FILES"
+
+EOF
+cat >>$CONFIG_STATUS <<\EOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$ac_file" : 'X\(//\)[^/]' \| \
+         X"$ac_file" : 'X\(//\)$' \| \
+         X"$ac_file" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+         /^X\(\/\/\)$/{ s//\1/; q; }
+         /^X\(\/\).*/{ s//\1/; q; }
+         s/.*/./; q'`
+  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+    { case "$ac_dir" in
+  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+  *)                      as_incr_dir=.;;
+esac
+as_dummy="$ac_dir"
+for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
+  case $as_mkdir_dir in
+    # Skip DOS drivespec
+    ?:) as_incr_dir=$as_mkdir_dir ;;
+    *)
+      as_incr_dir=$as_incr_dir/$as_mkdir_dir
+      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
+    ;;
+  esac
+done; }
+
+    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
+    # A "../" for each directory in $ac_dir_suffix.
+    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
+  else
+    ac_dir_suffix= ac_dots=
+  fi
+
+  case $srcdir in
+  .)  ac_srcdir=.
+      if test -z "$ac_dots"; then
+         ac_top_srcdir=.
+      else
+         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
+      fi ;;
+  [\\/]* | ?:[\\/]* )
+      ac_srcdir=$srcdir$ac_dir_suffix;
+      ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_dots$srcdir ;;
+  esac
+
+  if test x"$ac_file" != x-; then
+    { echo "$as_me:3548: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    rm -f "$ac_file"
+  fi
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated automatically by config.status.  */
+  configure_input="Generated automatically from `echo $ac_file_in |
+                                                 sed 's,.*/,,'` by configure."
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f "$f" || { { echo "$as_me:3566: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$srcdir/$f"; then
+           # Source tree
+           echo $srcdir/$f
+         else
+           # /dev/null tree
+           { { echo "$as_me:3579: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+EOF
+cat >>$CONFIG_STATUS <<EOF
+  sed "$ac_vpsub
+$extrasub
+EOF
+cat >>$CONFIG_STATUS <<\EOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+EOF
+
+cat >>$CONFIG_STATUS <<\EOF
+
+{ (exit 0); exit 0; }
+EOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded.  So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status.  When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+  ac_cs_success=:
+  exec 5>/dev/null
+  $SHELL $CONFIG_STATUS || ac_cs_success=false
+  exec 5>>config.log
+  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+  # would make configure fail if this is the last instruction.
+  $ac_cs_success || { (exit 1); exit 1; }
+fi
+
diff --git a/doc/doxygen/latex/Makefile b/doc/doxygen/latex/Makefile
deleted file mode 100644 (file)
index f001bff..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-all: refman.dvi
-
-ps: refman.ps
-
-pdf: refman.pdf
-
-ps_2on1: refman_2on1.ps
-
-pdf_2on1: refman_2on1.pdf
-
-refman.ps: refman.dvi
-       dvips -o refman.ps refman.dvi
-
-refman.pdf: refman.ps
-       pdflatex refman.tex
-       makeindex refman.idx
-       pdflatex refman.tex
-
-refman_2on1.ps: refman.ps
-       psnup -2 refman.ps >refman_2on1.ps
-
-refman_2on1.pdf: refman_2on1.ps
-       ps2pdf refman_2on1.ps refman_2on1.pdf
-
-refman.dvi: refman.tex doxygen.sty
-       echo "Running latex..."
-       latex refman.tex
-       echo "Running makeindex..."
-       makeindex refman.idx
-       echo "Rerunning latex...."
-       latex refman.tex
-clean:
-       rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out
diff --git a/doc/doxygen/latex/RtAudio_8h.tex b/doc/doxygen/latex/RtAudio_8h.tex
deleted file mode 100644 (file)
index 447173f..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-\section{Rt\-Audio.h File Reference}
-\label{RtAudio_8h}\index{RtAudio.h@{Rt\-Audio.h}}
-{\tt \#include $<$map$>$}\par
-\subsection*{Compounds}
-\begin{CompactItemize}
-\item 
-class {\bf Rt\-Error}
-\item 
-class {\bf Rt\-Audio}
-\item 
-struct {\bf Rt\-Audio::RTAUDIO\_\-DEVICE}
-\item 
-struct {\bf Rt\-Audio::RTAUDIO\_\-STREAM}
-\end{CompactItemize}
-\subsection*{Defines}
-\begin{CompactItemize}
-\item 
-\#define {\bf \_\-\_\-RTAUDIO\_\-H}
-\end{CompactItemize}
-
-
-\subsection{Define Documentation}
-\index{RtAudio.h@{Rt\-Audio.h}!__RTAUDIO_H@{\_\-\_\-RTAUDIO\_\-H}}
-\index{__RTAUDIO_H@{\_\-\_\-RTAUDIO\_\-H}!RtAudio.h@{Rt\-Audio.h}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-\_\-RTAUDIO\_\-H}\label{RtAudio_8h_a0}
-
-
-{\bf Value:}\footnotesize\begin{verbatim}
-\end{verbatim}\normalsize 
diff --git a/doc/doxygen/latex/annotated.tex b/doc/doxygen/latex/annotated.tex
deleted file mode 100644 (file)
index bee3359..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-\section{Rt\-Audio Compound List}
-Here are the classes, structs, unions and interfaces with brief descriptions:\begin{CompactList}
-\item\contentsline{section}{{\bf Rt\-Audio} }{\pageref{classRtAudio}}{}
-\item\contentsline{section}{{\bf Rt\-Audio::RTAUDIO\_\-DEVICE} }{\pageref{structRtAudio_1_1RTAUDIO__DEVICE}}{}
-\item\contentsline{section}{{\bf Rt\-Error} }{\pageref{classRtError}}{}
-\end{CompactList}
diff --git a/doc/doxygen/latex/classRtAudio.tex b/doc/doxygen/latex/classRtAudio.tex
deleted file mode 100644 (file)
index ec5582e..0000000
+++ /dev/null
@@ -1,254 +0,0 @@
-\section{Rt\-Audio  Class Reference}
-\label{classRtAudio}\index{RtAudio@{Rt\-Audio}}
-{\tt \#include $<$Rt\-Audio.h$>$}
-
-\subsection*{Public Types}
-\begin{CompactItemize}
-\item 
-typedef unsigned long {\bf RTAUDIO\_\-FORMAT}
-\item 
-typedef int ($\ast$ {\bf RTAUDIO\_\-CALLBACK} )(char $\ast$buffer, int buffer\-Size, void $\ast$user\-Data)
-\item 
-enum \{ {\bf MAX\_\-SAMPLE\_\-RATES} =  14 
- \}
-\end{CompactItemize}
-\subsection*{Public Methods}
-\begin{CompactItemize}
-\item 
-{\bf Rt\-Audio} ()
-\begin{CompactList}\small\item\em The default constructor.\item\end{CompactList}\item 
-{\bf Rt\-Audio} (int $\ast$stream\-Id, int output\-Device, int output\-Channels, int input\-Device, int input\-Channels, {\bf RTAUDIO\_\-FORMAT} format, int sample\-Rate, int $\ast$buffer\-Size, int number\-Of\-Buffers)
-\begin{CompactList}\small\item\em A constructor which can be used to open a stream during instantiation.\item\end{CompactList}\item 
-{\bf $\sim$Rt\-Audio} ()
-\begin{CompactList}\small\item\em The destructor.\item\end{CompactList}\item 
-int {\bf open\-Stream} (int output\-Device, int output\-Channels, int input\-Device, int input\-Channels, {\bf RTAUDIO\_\-FORMAT} format, int sample\-Rate, int $\ast$buffer\-Size, int number\-Of\-Buffers)
-\begin{CompactList}\small\item\em A public method for opening a stream with the specified parameters.\item\end{CompactList}\item 
-void {\bf set\-Stream\-Callback} (int stream\-Id, {\bf RTAUDIO\_\-CALLBACK} callback, void $\ast$user\-Data)
-\begin{CompactList}\small\item\em A public method which sets a user-defined callback function for a given stream.\item\end{CompactList}\item 
-void {\bf cancel\-Stream\-Callback} (int stream\-Id)
-\begin{CompactList}\small\item\em A public method which cancels a callback process and function for a given stream.\item\end{CompactList}\item 
-int {\bf get\-Device\-Count} (void)
-\begin{CompactList}\small\item\em A public method which returns the number of audio devices found.\item\end{CompactList}\item 
-void {\bf get\-Device\-Info} (int device, {\bf RTAUDIO\_\-DEVICE} $\ast$info)
-\begin{CompactList}\small\item\em Fill a user-supplied {\bf RTAUDIO\_\-DEVICE} {\rm (p.\,\pageref{structRtAudio_1_1RTAUDIO__DEVICE})} structure for a specified device.\item\end{CompactList}\item 
-char$\ast$ const {\bf get\-Stream\-Buffer} (int stream\-Id)
-\begin{CompactList}\small\item\em A public method which returns a pointer to the buffer for an open stream.\item\end{CompactList}\item 
-void {\bf tick\-Stream} (int stream\-Id)
-\begin{CompactList}\small\item\em Public method used to trigger processing of input/output data for a stream.\item\end{CompactList}\item 
-void {\bf close\-Stream} (int stream\-Id)
-\begin{CompactList}\small\item\em Public method which closes a stream and frees any associated buffers.\item\end{CompactList}\item 
-void {\bf start\-Stream} (int stream\-Id)
-\begin{CompactList}\small\item\em Public method which starts a stream.\item\end{CompactList}\item 
-void {\bf stop\-Stream} (int stream\-Id)
-\begin{CompactList}\small\item\em Stop a stream, allowing any samples remaining in the queue to be played out and/or read in.\item\end{CompactList}\item 
-void {\bf abort\-Stream} (int stream\-Id)
-\begin{CompactList}\small\item\em Stop a stream, discarding any samples remaining in the input/output queue.\item\end{CompactList}\item 
-int {\bf stream\-Will\-Block} (int stream\-Id)
-\begin{CompactList}\small\item\em Queries a stream to determine whether a call to the {\bf tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})} method will block.\item\end{CompactList}\end{CompactItemize}
-\subsection*{Static Public Attributes}
-\begin{CompactItemize}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-SINT8}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-SINT16}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-SINT24}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-SINT32}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-FLOAT32}
-\item 
-const {\bf RTAUDIO\_\-FORMAT} {\bf RTAUDIO\_\-FLOAT64}
-\end{CompactItemize}
-
-
-\subsection{Member Typedef Documentation}
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_FORMAT@{RTAUDIO\_\-FORMAT}}
-\index{RTAUDIO_FORMAT@{RTAUDIO\_\-FORMAT}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned long Rt\-Audio::RTAUDIO\_\-FORMAT}\label{classRtAudio_s0}
-
-
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_CALLBACK@{RTAUDIO\_\-CALLBACK}}
-\index{RTAUDIO_CALLBACK@{RTAUDIO\_\-CALLBACK}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef int($\ast$ Rt\-Audio::RTAUDIO\_\-CALLBACK)(char $\ast$buffer, int buffer\-Size, void $\ast$user\-Data)}\label{classRtAudio_s1}
-
-
-
-
-\subsection{Member Enumeration Documentation}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{classRtAudio_s3}
-
-
-\begin{Desc}
-\item[{\bf Enumeration values:}]\par
-\begin{description}
-\index{MAX_SAMPLE_RATES@{MAX\_\-SAMPLE\_\-RATES}!RtAudio@{Rt\-Audio}}\index{RtAudio@{RtAudio}!MAX_SAMPLE_RATES@{MAX\_\-SAMPLE\_\-RATES}}\item[
-{\em MAX\_\-SAMPLE\_\-RATES}\label{classRtAudio_s3s2}
-]\end{description}
-\end{Desc}
-
-
-
-\subsection{Constructor \& Destructor Documentation}
-\index{RtAudio@{Rt\-Audio}!RtAudio@{RtAudio}}
-\index{RtAudio@{RtAudio}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Rt\-Audio::Rt\-Audio ()}\label{classRtAudio_a0}
-
-
-The default constructor.
-
-Probes the system to make sure at least one audio input/output device is available and determines the api-specific identifier for each device found. An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} error can be thrown if no devices are found or if a memory allocation error occurs. \index{RtAudio@{Rt\-Audio}!RtAudio@{RtAudio}}
-\index{RtAudio@{RtAudio}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Rt\-Audio::Rt\-Audio (int $\ast$ {\em stream\-Id}, int {\em output\-Device}, int {\em output\-Channels}, int {\em input\-Device}, int {\em input\-Channels}, {\bf RTAUDIO\_\-FORMAT} {\em format}, int {\em sample\-Rate}, int $\ast$ {\em buffer\-Size}, int {\em number\-Of\-Buffers})}\label{classRtAudio_a1}
-
-
-A constructor which can be used to open a stream during instantiation.
-
-The specified output and/or input device identifiers correspond to those enumerated via the {\bf get\-Device\-Info}() {\rm (p.\,\pageref{classRtAudio_a7})} method. If device = 0, the default or first available devices meeting the given parameters is selected. If an output or input channel value is zero, the corresponding device value is ignored. When a stream is successfully opened, its identifier is returned via the \char`\"{}stream\-Id\char`\"{} pointer. An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} can be thrown if no devices are found for the given parameters, if a memory allocation error occurs, or if a driver error occurs. \begin{Desc}
-\item[{\bf See also: }]\par
-{\bf open\-Stream}() {\rm (p.\,\pageref{classRtAudio_a3})} \end{Desc}
-\index{RtAudio@{Rt\-Audio}!~RtAudio@{$\sim$RtAudio}}
-\index{~RtAudio@{$\sim$RtAudio}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Rt\-Audio::$\sim$Rt\-Audio ()}\label{classRtAudio_a2}
-
-
-The destructor.
-
-Stops and closes any open streams and devices and deallocates buffer and structure memory. 
-
-\subsection{Member Function Documentation}
-\index{RtAudio@{Rt\-Audio}!openStream@{openStream}}
-\index{openStream@{openStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::open\-Stream (int {\em output\-Device}, int {\em output\-Channels}, int {\em input\-Device}, int {\em input\-Channels}, {\bf RTAUDIO\_\-FORMAT} {\em format}, int {\em sample\-Rate}, int $\ast$ {\em buffer\-Size}, int {\em number\-Of\-Buffers})}\label{classRtAudio_a3}
-
-
-A public method for opening a stream with the specified parameters.
-
-If successful, the opened stream ID is returned. Otherwise, an {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} is thrown.\begin{Desc}
-\item[{\bf Parameters: }]\par
-\begin{description}
-\item[
-{\em output\-Device:}]If equal to 0, the default or first device found meeting the given parameters is opened. Otherwise, the device number should correspond to one of those enumerated via the {\bf get\-Device\-Info}() {\rm (p.\,\pageref{classRtAudio_a7})} method. \item[
-{\em output\-Channels:}]The desired number of output channels. If equal to zero, the output\-Device identifier is ignored. \item[
-{\em input\-Device:}]If equal to 0, the default or first device found meeting the given parameters is opened. Otherwise, the device number should correspond to one of those enumerated via the {\bf get\-Device\-Info}() {\rm (p.\,\pageref{classRtAudio_a7})} method. \item[
-{\em input\-Channels:}]The desired number of input channels. If equal to zero, the input\-Device identifier is ignored. \item[
-{\em format:}]An RTAUDIO\_\-FORMAT specifying the desired sample data format. \item[
-{\em sample\-Rate:}]The desired sample rate (sample frames per second). \item[
-{\em buffer\-Size:}]A pointer value indicating the desired internal buffer size in sample frames. The actual value used by the device is returned via the same pointer. A value of zero can be specified, in which case the lowest allowable value is determined. \item[
-{\em number\-Of\-Buffers:}]A value which can be used to help control device latency. More buffers typically result in more robust performance, though at a cost of greater latency. A value of zero can be specified, in which case the lowest allowable value is used. \end{description}
-\end{Desc}
-\index{RtAudio@{Rt\-Audio}!setStreamCallback@{setStreamCallback}}
-\index{setStreamCallback@{setStreamCallback}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::set\-Stream\-Callback (int {\em stream\-Id}, {\bf RTAUDIO\_\-CALLBACK} {\em callback}, void $\ast$ {\em user\-Data})}\label{classRtAudio_a4}
-
-
-A public method which sets a user-defined callback function for a given stream.
-
-This method assigns a callback function to a specific, previously opened stream for non-blocking stream functionality. A separate process is initiated, though the user function is called only when the stream is \char`\"{}running\char`\"{} (between calls to the {\bf start\-Stream}() {\rm (p.\,\pageref{classRtAudio_a11})} and {\bf stop\-Stream}() {\rm (p.\,\pageref{classRtAudio_a12})} methods, respectively). The callback process remains active for the duration of the stream and is automatically shutdown when the stream is closed (via the {\bf close\-Stream}() {\rm (p.\,\pageref{classRtAudio_a10})} method or by object destruction). The callback process can also be shutdown and the user function de-referenced through an explicit call to the {\bf cancel\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a5})} method. Note that a single stream can use only blocking or callback functionality at the same time, though it is possible to alternate modes on the same stream through the use of the {\bf set\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a4})} and {\bf cancel\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a5})} methods (the blocking {\bf tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})} method can be used before a callback is set and/or after a callback is cancelled). An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid device argument. \index{RtAudio@{Rt\-Audio}!cancelStreamCallback@{cancelStreamCallback}}
-\index{cancelStreamCallback@{cancelStreamCallback}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::cancel\-Stream\-Callback (int {\em stream\-Id})}\label{classRtAudio_a5}
-
-
-A public method which cancels a callback process and function for a given stream.
-
-This method shuts down a callback process and de-references the user function for a specific stream. Callback functionality can subsequently be restarted on the stream via the {\bf set\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a4})} method. An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid device argument. \index{RtAudio@{Rt\-Audio}!getDeviceCount@{getDeviceCount}}
-\index{getDeviceCount@{getDeviceCount}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::get\-Device\-Count (void)}\label{classRtAudio_a6}
-
-
-A public method which returns the number of audio devices found.
-
-\index{RtAudio@{Rt\-Audio}!getDeviceInfo@{getDeviceInfo}}
-\index{getDeviceInfo@{getDeviceInfo}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::get\-Device\-Info (int {\em device}, {\bf RTAUDIO\_\-DEVICE} $\ast$ {\em info})}\label{classRtAudio_a7}
-
-
-Fill a user-supplied {\bf RTAUDIO\_\-DEVICE} {\rm (p.\,\pageref{structRtAudio_1_1RTAUDIO__DEVICE})} structure for a specified device.
-
-Any device between 0 and {\bf get\-Device\-Count}() {\rm (p.\,\pageref{classRtAudio_a6})}-1 is valid. If a device is busy or otherwise unavailable, the structure member \char`\"{}probed\char`\"{} has a value of \char`\"{}false\char`\"{}. The system default input and output devices are referenced by device identifier = 0. On systems which allow dynamic default device settings, the default devices are not identified by name (specific device enumerations are assigned device identifiers $>$ 0). An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid device argument. \index{RtAudio@{Rt\-Audio}!getStreamBuffer@{getStreamBuffer}}
-\index{getStreamBuffer@{getStreamBuffer}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char $\ast$const Rt\-Audio::get\-Stream\-Buffer (int {\em stream\-Id})}\label{classRtAudio_a8}
-
-
-A public method which returns a pointer to the buffer for an open stream.
-
-The user should fill and/or read the buffer data in interleaved format and then call the {\bf tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})} method. An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid stream identifier. \index{RtAudio@{Rt\-Audio}!tickStream@{tickStream}}
-\index{tickStream@{tickStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::tick\-Stream (int {\em stream\-Id})}\label{classRtAudio_a9}
-
-
-Public method used to trigger processing of input/output data for a stream.
-
-This method blocks until all buffer data is read/written. An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid stream identifier or if a driver error occurs. \index{RtAudio@{Rt\-Audio}!closeStream@{closeStream}}
-\index{closeStream@{closeStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::close\-Stream (int {\em stream\-Id})}\label{classRtAudio_a10}
-
-
-Public method which closes a stream and frees any associated buffers.
-
-If an invalid stream identifier is specified, this method issues a warning and returns (an {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} is not thrown). \index{RtAudio@{Rt\-Audio}!startStream@{startStream}}
-\index{startStream@{startStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::start\-Stream (int {\em stream\-Id})}\label{classRtAudio_a11}
-
-
-Public method which starts a stream.
-
-An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid stream identifier or if a driver error occurs. \index{RtAudio@{Rt\-Audio}!stopStream@{stopStream}}
-\index{stopStream@{stopStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::stop\-Stream (int {\em stream\-Id})}\label{classRtAudio_a12}
-
-
-Stop a stream, allowing any samples remaining in the queue to be played out and/or read in.
-
-An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid stream identifier or if a driver error occurs. \index{RtAudio@{Rt\-Audio}!abortStream@{abortStream}}
-\index{abortStream@{abortStream}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Audio::abort\-Stream (int {\em stream\-Id})}\label{classRtAudio_a13}
-
-
-Stop a stream, discarding any samples remaining in the input/output queue.
-
-An {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} will be thrown for an invalid stream identifier or if a driver error occurs. \index{RtAudio@{Rt\-Audio}!streamWillBlock@{streamWillBlock}}
-\index{streamWillBlock@{streamWillBlock}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::stream\-Will\-Block (int {\em stream\-Id})}\label{classRtAudio_a14}
-
-
-Queries a stream to determine whether a call to the {\bf tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})} method will block.
-
-A return value of 0 indicates that the stream will NOT block. A positive return value indicates the number of sample frames that cannot yet be processed without blocking. 
-
-\subsection{Member Data Documentation}
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_SINT8@{RTAUDIO\_\-SINT8}}
-\index{RTAUDIO_SINT8@{RTAUDIO\_\-SINT8}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-SINT8\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p0}
-
-
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_SINT16@{RTAUDIO\_\-SINT16}}
-\index{RTAUDIO_SINT16@{RTAUDIO\_\-SINT16}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-SINT16\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p1}
-
-
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_SINT24@{RTAUDIO\_\-SINT24}}
-\index{RTAUDIO_SINT24@{RTAUDIO\_\-SINT24}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-SINT24\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p2}
-
-
-Upper 3 bytes of 32-bit integer. \index{RtAudio@{Rt\-Audio}!RTAUDIO_SINT32@{RTAUDIO\_\-SINT32}}
-\index{RTAUDIO_SINT32@{RTAUDIO\_\-SINT32}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-SINT32\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p3}
-
-
-\index{RtAudio@{Rt\-Audio}!RTAUDIO_FLOAT32@{RTAUDIO\_\-FLOAT32}}
-\index{RTAUDIO_FLOAT32@{RTAUDIO\_\-FLOAT32}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-FLOAT32\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p4}
-
-
-Normalized between plus/minus 1.0. \index{RtAudio@{Rt\-Audio}!RTAUDIO_FLOAT64@{RTAUDIO\_\-FLOAT64}}
-\index{RTAUDIO_FLOAT64@{RTAUDIO\_\-FLOAT64}!RtAudio@{Rt\-Audio}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-FLOAT64\hspace{0.3cm}{\tt  [static]}}\label{classRtAudio_p5}
-
-
-Normalized between plus/minus 1.0. 
-
-The documentation for this class was generated from the following file:\begin{CompactItemize}
-\item 
-{\bf Rt\-Audio.h}\end{CompactItemize}
diff --git a/doc/doxygen/latex/classRtError.tex b/doc/doxygen/latex/classRtError.tex
deleted file mode 100644 (file)
index 59e73c5..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-\section{Rt\-Error  Class Reference}
-\label{classRtError}\index{RtError@{Rt\-Error}}
-{\tt \#include $<$Rt\-Audio.h$>$}
-
-\subsection*{Public Types}
-\begin{CompactItemize}
-\item 
-enum {\bf TYPE} \{ {\bf WARNING}, 
-{\bf DEBUG\_\-WARNING}, 
-{\bf UNSPECIFIED}, 
-{\bf NO\_\-DEVICES\_\-FOUND}, 
-{\bf INVALID\_\-DEVICE}, 
-{\bf INVALID\_\-STREAM}, 
-{\bf MEMORY\_\-ERROR}, 
-{\bf INVALID\_\-PARAMETER}, 
-{\bf DRIVER\_\-ERROR}, 
-{\bf SYSTEM\_\-ERROR}, 
-{\bf THREAD\_\-ERROR}
- \}
-\end{CompactItemize}
-\subsection*{Public Methods}
-\begin{CompactItemize}
-\item 
-{\bf Rt\-Error} (const char $\ast$p, {\bf TYPE} tipe=Rt\-Error::UNSPECIFIED)
-\begin{CompactList}\small\item\em The constructor.\item\end{CompactList}\item 
-virtual {\bf $\sim$Rt\-Error} (void)
-\begin{CompactList}\small\item\em The destructor.\item\end{CompactList}\item 
-virtual void {\bf print\-Message} (void)
-\begin{CompactList}\small\item\em Prints \char`\"{}thrown\char`\"{} error message to stdout.\item\end{CompactList}\item 
-virtual const {\bf TYPE}\& {\bf get\-Type} (void)
-\begin{CompactList}\small\item\em Returns the \char`\"{}thrown\char`\"{} error message TYPE.\item\end{CompactList}\item 
-virtual const char$\ast$ {\bf get\-Message} (void)
-\begin{CompactList}\small\item\em Returns the \char`\"{}thrown\char`\"{} error message string.\item\end{CompactList}\end{CompactItemize}
-\subsection*{Protected Attributes}
-\begin{CompactItemize}
-\item 
-char {\bf error\_\-message} [256]
-\item 
-{\bf TYPE} {\bf type}
-\end{CompactItemize}
-
-
-\subsection{Member Enumeration Documentation}
-\index{RtError@{Rt\-Error}!TYPE@{TYPE}}
-\index{TYPE@{TYPE}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum Rt\-Error::TYPE}\label{classRtError_s11}
-
-
-\begin{Desc}
-\item[{\bf Enumeration values:}]\par
-\begin{description}
-\index{WARNING@{WARNING}!RtError@{Rt\-Error}}\index{RtError@{RtError}!WARNING@{WARNING}}\item[
-{\em WARNING}\label{classRtError_s11s0}
-]\index{DEBUG_WARNING@{DEBUG\_\-WARNING}!RtError@{Rt\-Error}}\index{RtError@{RtError}!DEBUG_WARNING@{DEBUG\_\-WARNING}}\item[
-{\em DEBUG\_\-WARNING}\label{classRtError_s11s1}
-]\index{UNSPECIFIED@{UNSPECIFIED}!RtError@{Rt\-Error}}\index{RtError@{RtError}!UNSPECIFIED@{UNSPECIFIED}}\item[
-{\em UNSPECIFIED}\label{classRtError_s11s2}
-]\index{NO_DEVICES_FOUND@{NO\_\-DEVICES\_\-FOUND}!RtError@{Rt\-Error}}\index{RtError@{RtError}!NO_DEVICES_FOUND@{NO\_\-DEVICES\_\-FOUND}}\item[
-{\em NO\_\-DEVICES\_\-FOUND}\label{classRtError_s11s3}
-]\index{INVALID_DEVICE@{INVALID\_\-DEVICE}!RtError@{Rt\-Error}}\index{RtError@{RtError}!INVALID_DEVICE@{INVALID\_\-DEVICE}}\item[
-{\em INVALID\_\-DEVICE}\label{classRtError_s11s4}
-]\index{INVALID_STREAM@{INVALID\_\-STREAM}!RtError@{Rt\-Error}}\index{RtError@{RtError}!INVALID_STREAM@{INVALID\_\-STREAM}}\item[
-{\em INVALID\_\-STREAM}\label{classRtError_s11s5}
-]\index{MEMORY_ERROR@{MEMORY\_\-ERROR}!RtError@{Rt\-Error}}\index{RtError@{RtError}!MEMORY_ERROR@{MEMORY\_\-ERROR}}\item[
-{\em MEMORY\_\-ERROR}\label{classRtError_s11s6}
-]\index{INVALID_PARAMETER@{INVALID\_\-PARAMETER}!RtError@{Rt\-Error}}\index{RtError@{RtError}!INVALID_PARAMETER@{INVALID\_\-PARAMETER}}\item[
-{\em INVALID\_\-PARAMETER}\label{classRtError_s11s7}
-]\index{DRIVER_ERROR@{DRIVER\_\-ERROR}!RtError@{Rt\-Error}}\index{RtError@{RtError}!DRIVER_ERROR@{DRIVER\_\-ERROR}}\item[
-{\em DRIVER\_\-ERROR}\label{classRtError_s11s8}
-]\index{SYSTEM_ERROR@{SYSTEM\_\-ERROR}!RtError@{Rt\-Error}}\index{RtError@{RtError}!SYSTEM_ERROR@{SYSTEM\_\-ERROR}}\item[
-{\em SYSTEM\_\-ERROR}\label{classRtError_s11s9}
-]\index{THREAD_ERROR@{THREAD\_\-ERROR}!RtError@{Rt\-Error}}\index{RtError@{RtError}!THREAD_ERROR@{THREAD\_\-ERROR}}\item[
-{\em THREAD\_\-ERROR}\label{classRtError_s11s10}
-]\end{description}
-\end{Desc}
-
-
-
-\subsection{Constructor \& Destructor Documentation}
-\index{RtError@{Rt\-Error}!RtError@{RtError}}
-\index{RtError@{RtError}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Rt\-Error::Rt\-Error (const char $\ast$ {\em p}, {\bf TYPE} {\em tipe} = Rt\-Error::UNSPECIFIED)}\label{classRtError_a0}
-
-
-The constructor.
-
-\index{RtError@{Rt\-Error}!~RtError@{$\sim$RtError}}
-\index{~RtError@{$\sim$RtError}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Rt\-Error::$\sim$Rt\-Error (void)\hspace{0.3cm}{\tt  [virtual]}}\label{classRtError_a1}
-
-
-The destructor.
-
-
-
-\subsection{Member Function Documentation}
-\index{RtError@{Rt\-Error}!printMessage@{printMessage}}
-\index{printMessage@{printMessage}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Rt\-Error::print\-Message (void)\hspace{0.3cm}{\tt  [virtual]}}\label{classRtError_a2}
-
-
-Prints \char`\"{}thrown\char`\"{} error message to stdout.
-
-\index{RtError@{Rt\-Error}!getType@{getType}}
-\index{getType@{getType}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf TYPE} \& Rt\-Error::get\-Type (void)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classRtError_a3}
-
-
-Returns the \char`\"{}thrown\char`\"{} error message TYPE.
-
-\index{RtError@{Rt\-Error}!getMessage@{getMessage}}
-\index{getMessage@{getMessage}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Rt\-Error::get\-Message (void)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classRtError_a4}
-
-
-Returns the \char`\"{}thrown\char`\"{} error message string.
-
-
-
-\subsection{Member Data Documentation}
-\index{RtError@{Rt\-Error}!error_message@{error\_\-message}}
-\index{error_message@{error\_\-message}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char Rt\-Error::error\_\-message\hspace{0.3cm}{\tt  [protected]}}\label{classRtError_n0}
-
-
-\index{RtError@{Rt\-Error}!type@{type}}
-\index{type@{type}!RtError@{Rt\-Error}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf TYPE} Rt\-Error::type\hspace{0.3cm}{\tt  [protected]}}\label{classRtError_n1}
-
-
-
-
-The documentation for this class was generated from the following file:\begin{CompactItemize}
-\item 
-{\bf Rt\-Audio.h}\end{CompactItemize}
diff --git a/doc/doxygen/latex/doxygen.sty b/doc/doxygen/latex/doxygen.sty
deleted file mode 100644 (file)
index 62e133b..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{doxygen}
-\RequirePackage{calc}
-\RequirePackage{array}
-\pagestyle{fancyplain}
-\addtolength{\headwidth}{\marginparsep}
-\addtolength{\headwidth}{\marginparwidth}
-\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
-\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
-\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
-\lhead[\fancyplain{}{\bfseries\thepage}]
-        {\fancyplain{}{\bfseries\rightmark}}
-\rhead[\fancyplain{}{\bfseries\leftmark}]
-        {\fancyplain{}{\bfseries\thepage}}
-\rfoot[\fancyplain{}{\bfseries\scriptsize Rt\-Audio by Gary P. Scavone, \copyright~2001-2002}]{}
-\lfoot[]{\fancyplain{}{\bfseries\scriptsize Rt\-Audio by Gary P. Scavone, \copyright~2001-2002}}
-\cfoot{}
-\newenvironment{CompactList}
-{\begin{list}{}{
-  \setlength{\leftmargin}{0.5cm}
-  \setlength{\itemsep}{0pt}
-  \setlength{\parsep}{0pt}
-  \setlength{\topsep}{0pt}
-  \renewcommand{\makelabel}{}}}
-{\end{list}}
-\newenvironment{CompactItemize}
-{
-  \begin{itemize}
-  \setlength{\itemsep}{-3pt}
-  \setlength{\parsep}{0pt}
-  \setlength{\topsep}{0pt}
-  \setlength{\partopsep}{0pt}
-}
-{\end{itemize}}
-\newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp}
-\newlength{\tmplength}
-\newenvironment{TabularC}[1]
-{
-\setlength{\tmplength}
-     {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)}
-      \par\begin{tabular*}{\linewidth}
-             {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|}
-}
-{\end{tabular*}\par}
-\newcommand{\entrylabel}[1]{
-   {\parbox[b]{\labelwidth-4pt}{\makebox[0pt][l]{\textbf{#1}}\\}}}
-\newenvironment{Desc}
-{\begin{list}{}
-  {
-    \settowidth{\labelwidth}{40pt}
-    \setlength{\leftmargin}{\labelwidth}
-    \setlength{\parsep}{0pt}
-    \setlength{\itemsep}{-4pt}
-    \renewcommand{\makelabel}{\entrylabel}
-  }
-}
-{\end{list}}
-\newenvironment{Indent}
-  {\begin{list}{}{\setlength{\leftmargin}{0.5cm}}
-      \item[]\ignorespaces}
-  {\unskip\end{list}}
-\setlength{\parindent}{0cm}
-\setlength{\parskip}{0.2cm}
-\addtocounter{secnumdepth}{1}
-\sloppy
diff --git a/doc/doxygen/latex/files.tex b/doc/doxygen/latex/files.tex
deleted file mode 100644 (file)
index 1176050..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-\section{Rt\-Audio File List}
-Here is a list of all files with brief descriptions:\begin{CompactList}
-\item\contentsline{section}{{\bf Rt\-Audio.h} }{\pageref{RtAudio_8h}}{}
-\end{CompactList}
diff --git a/doc/doxygen/latex/index.tex b/doc/doxygen/latex/index.tex
deleted file mode 100644 (file)
index 9e6e487..0000000
+++ /dev/null
@@ -1,597 +0,0 @@
-
-\begin{CompactItemize}
-\item 
-{\bf Introduction} {\rm (p.\,\pageref{intro})}\item 
-{\bf Getting Started} {\rm (p.\,\pageref{start})}\item 
-{\bf Error Handling} {\rm (p.\,\pageref{error})}\item 
-{\bf Probing Device Capabilities} {\rm (p.\,\pageref{probing})}\item 
-{\bf Device Settings} {\rm (p.\,\pageref{settings})}\item 
-{\bf Playback (blocking functionality)} {\rm (p.\,\pageref{playbackb})}\item 
-{\bf Playback (callback functionality)} {\rm (p.\,\pageref{playbackc})}\item 
-{\bf Recording} {\rm (p.\,\pageref{recording})}\item 
-{\bf Duplex Mode} {\rm (p.\,\pageref{duplex})}\item 
-{\bf Summary of Methods} {\rm (p.\,\pageref{methods})}\item 
-{\bf Compiling} {\rm (p.\,\pageref{compiling})}\item 
-{\bf OS Notes} {\rm (p.\,\pageref{osnotes})}\item 
-{\bf Acknowledgements} {\rm (p.\,\pageref{acknowledge})}\end{CompactItemize}
-\section{Introduction}\label{intro}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} is a C++ class which provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA and OSS), SGI, and Windows operating systems. {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} significantly simplifies the process of interacting with computer audio hardware. It was designed with the following goals:
-
-\begin{CompactItemize}
- \item 
-object oriented C++ design \item 
-simple, common API across all supported platforms \item 
-single independent header and source file for easy inclusion in programming projects (no libraries!) \item 
-blocking functionality \item 
-callback functionality \item 
-extensive audio device parameter control \item 
-audio device capability probing \item 
-automatic internal conversion for data format, channel number compensation, de-interleaving, and byte-swapping \item 
-control over multiple audio streams and devices with a single instance \end{CompactItemize}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} incorporates the concept of audio streams, which represent audio output (playback) and/or input (recording). Available audio devices and their capabilities can be enumerated and then specified when opening a stream. Multiple streams can run at the same time and, when allowed by the underlying audio API, a single device can serve multiple streams.
-
-The {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} API provides both blocking (synchronous) and callback (asyncronous) functionality. Callbacks are typically used in conjunction with graphical user interfaces (GUI). Blocking functionality is often necessary for explicit control of multiple input/output stream synchronization or when audio must be synchronized with other system events.
-
-\section{Getting Started}\label{start}
-
-
-The first thing that must be done when using {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} is to create an instance of the class. The default constructor {\bf Rt\-Audio::Rt\-Audio}() {\rm (p.\,\pageref{classRtAudio_a0})} scans the underlying audio system to verify that at least one device is available. {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} often uses C++ exceptions to report errors, necessitating try/catch blocks around most member functions. The following code example demonstrates default object construction and destruction:
-
-\footnotesize\begin{verbatim}#include "RtAudio.h"
-
-int main()\r
-{
-  RtAudio *audio;
-
-  // Default RtAudio constructor
-  try {
-    audio = new RtAudio();
-  }
-  catch (RtError &error) {
-    // Handle the exception here
-  }
-
-  // Clean up
-  delete audio;
-}\end{verbatim}\normalsize 
-
-
-Obviously, this example doesn't demonstrate any of the real functionality of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}. However, all uses of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} must begin with a constructor (either default or overloaded varieties) and must end with class destruction. Further, it is necessary that all class methods which can throw a C++ exception be called within a try/catch block.
-
-\section{Error Handling}\label{error}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} uses a C++ exception handler called {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})}, which is declared and defined within the {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} class files. The {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} class is quite simple but it does allow errors to be \char`\"{}caught\char`\"{} by {\bf Rt\-Error::TYPE} {\rm (p.\,\pageref{classRtError_s11})}. Almost all {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} methods can \char`\"{}throw\char`\"{} an {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})}, most typically if an invalid stream identifier is supplied to a method or a driver error occurs. There are a number of cases within {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} where warning messages may be displayed but an exception is not thrown. There is a private {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} method, error(), which can be modified to globally control how these messages are handled and reported.
-
-\section{Probing Device Capabilities}\label{probing}
-
-
-A programmer may wish to query the available audio device capabilities before deciding which to use. The following example outlines how this can be done.
-
-\footnotesize\begin{verbatim}// probe.cpp
-
-#include <iostream>
-#include "RtAudio.h"
-
-int main()\r
-{
-  RtAudio *audio;
-
-  // Default RtAudio constructor
-  try {
-    audio = new RtAudio();
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  // Determine the number of devices available
-  int devices = audio->getDeviceCount();
-
-  // Scan through devices for various capabilities
-  RtAudio::RTAUDIO_DEVICE info;
-  for (int i=0; i<devices; i++) {
-
-    try {
-      audio->getDeviceInfo(i, &info);
-    }
-    catch (RtError &error) {
-      error.printMessage();
-      break;
-    }
-
-    // Print, for example, the maximum number of output channels for each device
-    cout << "device = " << i;
-    cout << ": maximum output channels = " << info.maxOutputChannels << "\n";
-  }
-
-  // Clean up
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-The RTAUDIO\_\-DEVICE structure is defined in {\bf Rt\-Audio.h} and provides a variety of information useful in assessing the capabilities of a device:
-
-\footnotesize\begin{verbatim}  typedef struct {
-    char name[128];
-    DEVICE_ID id[2];                      // No value reported by getDeviceInfo().
-    bool probed;                          // true if the device probe was successful.
-    int maxOutputChannels;
-    int maxInputChannels;
-    int maxDuplexChannels;
-    int minOutputChannels;
-    int minInputChannels;
-    int minDuplexChannels;
-    bool hasDuplexSupport;                // true if duplex supported
-    int nSampleRates;                     // Number of discrete rates, or -1 if range supported.
-    double sampleRates[MAX_SAMPLE_RATES]; // Supported sample rates, or {min, max} if range.
-    RTAUDIO_FORMAT nativeFormats;
-  } RTAUDIO_DEVICE;\end{verbatim}\normalsize 
-
-
-The following data formats are defined and fully supported by {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}:
-
-\footnotesize\begin{verbatim}  typedef unsigned long RTAUDIO_FORMAT;
-  static const RTAUDIO_FORMAT  RTAUDIO_SINT8;   // Signed 8-bit integer
-  static const RTAUDIO_FORMAT  RTAUDIO_SINT16;  // Signed 16-bit integer
-  static const RTAUDIO_FORMAT  RTAUDIO_SINT24;  // Signed 24-bit integer
-  static const RTAUDIO_FORMAT  RTAUDIO_SINT32;  // Signed 32-bit integer
-  static const RTAUDIO_FORMAT  RTAUDIO_FLOAT32; // 32-bit float
-  static const RTAUDIO_FORMAT  RTAUDIO_FLOAT64; // 64-bit double\end{verbatim}\normalsize 
-
-
-The {\em native\-Formats} member of the {\bf Rt\-Audio::RTAUDIO\_\-DEVICE} {\rm (p.\,\pageref{structRtAudio_1_1RTAUDIO__DEVICE})} structure is a bit mask of the above formats which are natively supported by the device. However, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} will automatically provide format conversion if a particular format is not natively supported. When the {\em probed} member of the RTAUDIO\_\-DEVICE structure is false, the remaining structure members are likely unknown and the device is probably unuseable.
-
-In general, the user need not be concerned with the minimum channel values reported in the RTAUDIO\_\-DEVICE structure. While some audio devices may require a minimum channel value $>$ 1, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} will provide automatic channel number compensation when the number of channels set by the user is less than that required by the device. Channel compensation is {\em NOT} possible when the number of channels set by the user is greater than that supported by the device.
-
-It should be noted that the capabilities reported by a device driver or underlying audio API are not always accurate and/or may be dependent on a combination of device settings.
-
-\section{Device Settings}\label{settings}
-
-
-The next step in using {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} is to open a stream with a particular set of device settings.
-
-\footnotesize\begin{verbatim}#include "RtAudio.h"
-
-int main()\r
-{
-  int channels = 2;
-  int sample_rate = 44100;
-  int buffer_size = 256;  // 256 sample frames
-  int n_buffers = 4;      // number of internal buffers used by device
-  int device = 0;         // 0 indicates the default or first available device
-  int stream;             // our stream identifier
-  RtAudio *audio;
-
-  // Instantiate RtAudio and open a stream within a try/catch block
-  try {
-    audio = new RtAudio();
-    stream = audio->openStream(device, channels, 0, 0, RtAudio::RTAUDIO_FLOAT32,
-                               sample_rate, &buffer_size, n_buffers);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  // Clean up
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-The {\bf Rt\-Audio::open\-Stream}() {\rm (p.\,\pageref{classRtAudio_a3})} method attempts to open a stream with a specified set of parameter values. When successful, a stream identifier is returned. In this case, we attempt to open a playback stream on device 0 with two channels, 32-bit floating point data, a sample rate of 44100 Hz, a frame rate of 256 sample frames per read/write, and 4 internal device buffers. When device = 0, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} first attempts to open the default audio device with the given parameters. If that attempt fails, an attempt is made to find a device or set of devices which will meet the given parameters. If all attempts are unsuccessful, an {\bf Rt\-Error} {\rm (p.\,\pageref{classRtError})} is thrown. When a non-zero device value is specified, an attempt is made to open that device only.
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} provides four signed integer and two floating point data formats which can be specified using the {\bf Rt\-Audio::RTAUDIO\_\-FORMAT} {\rm (p.\,\pageref{classRtAudio_s0})} parameter values mentioned earlier. If the opened device does not natively support the given format, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} will automatically perform the necessary data format conversion.
-
-The {\em buffer\-Size} parameter specifies the desired number of sample frames which will be written to and/or read from a device per write/read operation. The {\em n\-Buffers} parameter is used in setting the underlying device buffer parameters. Both the {\em buffer\-Size} and {\em n\-Buffers} parameters can be used to control stream latency though there is no guarantee that the passed values will be those used by a device. In general, lower values for both parameters will produce less latency but perhaps less robust performance. Both parameters can be specified with values of zero, in which case the smallest allowable values will be used. The {\em buffer\-Size} parameter is passed as a pointer and the actual value used by the stream is set during the device setup procedure. {\em buffer\-Size} values should be a power of two. Optimal and allowable buffer values tend to vary between systems and devices. Check the {\bf OS Notes} {\rm (p.\,\pageref{osnotes})} section for general guidelines.
-
-As noted earlier, the device capabilities reported by a driver or underlying audio API are not always accurate and/or may be dependent on a combination of device settings. Because of this, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} does not attempt to query a device's capabilities or use previously reported values when opening a device. Instead, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} simply attempts to set the given parameters on a specified device and then checks whether the setup is successful or not.
-
-\section{Playback (blocking functionality)}\label{playbackb}
-
-
-Once the device is open for playback, there are only a few final steps necessary for realtime audio output. We'll first provide an example (blocking functionality) and then discuss the details.
-
-\footnotesize\begin{verbatim}// playback.cpp
-
-#include "RtAudio.h"
-
-int main()\r
-{
-  int count;
-  int channels = 2;
-  int sample_rate = 44100;
-  int buffer_size = 256;  // 256 sample frames
-  int n_buffers = 4;      // number of internal buffers used by device
-  float *buffer;
-  int device = 0;         // 0 indicates the default or first available device
-  int stream;             // our stream identifier
-  RtAudio *audio;
-
-  // Open a stream during RtAudio instantiation
-  try {
-    audio = new RtAudio(&stream, device, channels, 0, 0, RtAudio::RTAUDIO_FLOAT32,
-                        sample_rate, &buffer_size, n_buffers);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  try {
-    // Get a pointer to the stream buffer
-    buffer = (float *) audio->getStreamBuffer(stream);
-
-    // Start the stream
-    audio->startStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    goto cleanup;
-  }
-
-  // An example loop which runs for about 40000 sample frames
-  count = 0;
-  while (count < 40000) {
-    // Generate your samples and fill the buffer with buffer_size sample frames of data
-    ...
-
-    // Trigger the output of the data buffer
-    try {
-      audio->tickStream(stream);
-    }
-    catch (RtError &error) {
-      error.printMessage();
-      goto cleanup;
-    }
-
-    count += buffer_size;
-  }
-
-  try {
-    // Stop and close the stream
-    audio->stopStream(stream);
-    audio->closeStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-  }
-
- cleanup:
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-The first thing to notice in this example is that we attempt to open a stream during class instantiation with an overloaded constructor. This constructor simply combines the functionality of the default constructor, used earlier, and the {\bf Rt\-Audio::open\-Stream}() {\rm (p.\,\pageref{classRtAudio_a3})} method. Again, we have specified a device value of 0, indicating that the default or first available device meeting the given parameters should be used. The integer identifier of the opened stream is returned via the {\em stream} pointer value. An attempt is made to open the stream with the specified {\em buffer\-Size} value. However, it is possible that the device will not accept this value, in which case the closest allowable size is used and returned via the pointer value. The constructor can fail if no available devices are found, or a memory allocation or device driver error occurs. Note that you should not call the {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} destructor if an exception is thrown during instantiation.
-
-Because {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} can be used to simultaneously control more than a single stream, it is necessary that the stream identifier be provided to nearly all public methods. Assuming the constructor is successful, it is necessary to get a pointer to the buffer, provided by {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}, for use in feeding data to/from the opened stream. Note that the user should {\em NOT} attempt to deallocate the stream buffer memory ... memory management for the stream buffer will be automatically controlled by {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}. After starting the stream with {\bf Rt\-Audio::start\-Stream}() {\rm (p.\,\pageref{classRtAudio_a11})}, one simply fills that buffer, which is of length equal to the returned {\em buffer\-Size} value, with interleaved audio data (in the specified format) for playback. Finally, a call to the {\bf Rt\-Audio::tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})} routine triggers a blocking write call for the stream.
-
-In general, one should call the {\bf Rt\-Audio::stop\-Stream}() {\rm (p.\,\pageref{classRtAudio_a12})} and {\bf Rt\-Audio::close\-Stream}() {\rm (p.\,\pageref{classRtAudio_a10})} methods after finishing with a stream. However, both methods will implicitly be called during object destruction if necessary.
-
-\section{Playback (callback functionality)}\label{playbackc}
-
-
-The primary difference in using {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} with callback functionality involves the creation of a user-defined callback function. Here is an example which produces a sawtooth waveform for playback.
-
-\footnotesize\begin{verbatim}#include <iostream>
-#include "RtAudio.h"
-
-// Two-channel sawtooth wave generator.
-int sawtooth(char *buffer, int buffer_size, void *data)\r
-{
-  int i, j;
-  double *my_buffer = (double *) buffer;
-  double *my_data = (double *) data;
-
-  // Write interleaved audio data.
-  for (i=0; i<buffer_size; i++) {
-    for (j=0; j<2; j++) {
-      *my_buffer++ = my_data[j];
-
-      my_data[j] += 0.005 * (j+1+(j*0.1));
-      if (my_data[j] >= 1.0) my_data[j] -= 2.0;
-    }
-  }
-
-  return 0;
-}
-
-int main()\r
-{
-  int channels = 2;
-  int sample_rate = 44100;
-  int buffer_size = 256;  // 256 sample frames
-  int n_buffers = 4;      // number of internal buffers used by device
-  int device = 0;         // 0 indicates the default or first available device
-  int stream;             // our stream identifier
-  double data[2];
-  char input;
-  RtAudio *audio;
-
-  // Open a stream during RtAudio instantiation
-  try {
-    audio = new RtAudio(&stream, device, channels, 0, 0, RtAudio::RTAUDIO_FLOAT64,
-                        sample_rate, &buffer_size, n_buffers);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  try {
-    // Set the stream callback function
-    audio->setStreamCallback(stream, &sawtooth, (void *)data);
-
-    // Start the stream
-    audio->startStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    goto cleanup;
-  }
-
-  cout << "\nPlaying ... press <enter> to quit.\n";
-  cin.get(input);
-
-  try {
-    // Stop and close the stream
-    audio->stopStream(stream);
-    audio->closeStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-  }
-
- cleanup:
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-After opening the device in exactly the same way as the previous example (except with a data format change), we must set our callback function for the stream using {\bf Rt\-Audio::set\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a4})}. This method will spawn a new process (or thread) which automatically calls the callback function when more data is needed. Note that the callback function is called only when the stream is \char`\"{}running\char`\"{} (between calls to the {\bf Rt\-Audio::start\-Stream}() {\rm (p.\,\pageref{classRtAudio_a11})} and {\bf Rt\-Audio::stop\-Stream}() {\rm (p.\,\pageref{classRtAudio_a12})} methods). The last argument to {\bf Rt\-Audio::set\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a4})} is a pointer to arbitrary data that you wish to access from within your callback function.
-
-In this example, we stop the stream with an explicit call to {\bf Rt\-Audio::stop\-Stream}() {\rm (p.\,\pageref{classRtAudio_a12})}. When using callback functionality, it is also possible to stop a stream by returning a non-zero value from the callback function.
-
-Once set with {\bf Rt\-Audio::set\-Stream\-Callback} {\rm (p.\,\pageref{classRtAudio_a4})}, the callback process will continue to run for the life of the stream (until the stream is closed with {\bf Rt\-Audio::close\-Stream}() {\rm (p.\,\pageref{classRtAudio_a10})} or the {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} instance is deleted). It is possible to disassociate a callback function and cancel its process for an open stream using the {\bf Rt\-Audio::cancel\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a5})} method. The stream can then be used with blocking functionality or a new callback can be associated with it.
-
-\section{Recording}\label{recording}
-
-
-Using {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} for audio input is almost identical to the way it is used for playback. Here's the blocking playback example rewritten for recording:
-
-\footnotesize\begin{verbatim}// record.cpp
-
-#include "RtAudio.h"
-
-int main()\r
-{
-  int count;
-  int channels = 2;
-  int sample_rate = 44100;
-  int buffer_size = 256;  // 256 sample frames
-  int n_buffers = 4;      // number of internal buffers used by device
-  float *buffer;
-  int device = 0;         // 0 indicates the default or first available device
-  int stream;             // our stream identifier
-  RtAudio *audio;
-
-  // Instantiate RtAudio and open a stream.
-  try {
-    audio = new RtAudio(&stream, 0, 0, device, channels,
-                        RtAudio::RTAUDIO_FLOAT32, sample_rate, &buffer_size, n_buffers);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  try {
-    // Get a pointer to the stream buffer
-    buffer = (float *) audio->getStreamBuffer(stream);
-
-    // Start the stream
-    audio->startStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    goto cleanup;
-  }
-
-  // An example loop which runs for about 40000 sample frames
-  count = 0;
-  while (count < 40000) {
-
-    // Read a buffer of data
-    try {
-      audio->tickStream(stream);
-    }
-    catch (RtError &error) {
-      error.printMessage();
-      goto cleanup;
-    }
-
-    // Process the input samples (buffer_size sample frames) that were read
-    ...
-
-    count += buffer_size;
-  }
-
-  try {
-    // Stop the stream
-    audio->stopStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-  }
-
- cleanup:
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-In this example, the stream was opened for recording with a non-zero {\em input\-Channels} value. The only other difference between this example and that for playback involves the order of data processing in the loop, where it is necessary to first read a buffer of input data before manipulating it.
-
-\section{Duplex Mode}\label{duplex}
-
-
-Finally, it is easy to use {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} for simultaneous audio input/output, or duplex operation. In this example, we use a callback function and pass our recorded data directly through for playback.
-
-\footnotesize\begin{verbatim}// duplex.cpp
-
-#include <iostream>
-#include "RtAudio.h"
-
-// Pass-through function.
-int pass(char *buffer, int buffer_size, void *)\r
-{
-  // Surprise!!  We do nothing to pass the data through.
-  return 0;
-}
-
-int main()\r
-{
-  int channels = 2;
-  int sample_rate = 44100;
-  int buffer_size = 256;  // 256 sample frames
-  int n_buffers = 4;      // number of internal buffers used by device
-  int device = 0;         // 0 indicates the default or first available device
-  int stream;             // our stream identifier
-  double data[2];
-  char input;
-  RtAudio *audio;
-
-  // Open a stream during RtAudio instantiation
-  try {
-    audio = new RtAudio(&stream, device, channels, device, channels, RtAudio::RTAUDIO_FLOAT64,
-                        sample_rate, &buffer_size, n_buffers);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    exit(EXIT_FAILURE);
-  }
-
-  try {
-    // Set the stream callback function
-    audio->setStreamCallback(stream, &pass, NULL);
-
-    // Start the stream
-    audio->startStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-    goto cleanup;
-  }
-
-  cout << "\nRunning duplex ... press <enter> to quit.\n";
-  cin.get(input);
-
-  try {
-    // Stop and close the stream
-    audio->stopStream(stream);
-    audio->closeStream(stream);
-  }
-  catch (RtError &error) {
-    error.printMessage();
-  }
-
- cleanup:
-  delete audio;
-
-  return 0;
-}\end{verbatim}\normalsize 
-
-
-When an {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} stream is running in duplex mode (nonzero input {\em AND} output channels), the audio write (playback) operation always occurs before the audio read (record) operation. This sequence allows the use of a single buffer to store both output and input data.
-
-As we see with this example, the write-read sequence of operations does not preclude the use of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} in situations where input data is first processed and then output through a duplex stream. When the stream buffer is first allocated, it is initialized with zeros, which produces no audible result when output to the device. In this example, anything recorded by the audio stream input will be played out during the next round of audio processing.
-
-Note that duplex operation can also be achieved by opening one output stream and one input stream using the same or different devices. However, there may be timing problems when attempting to use two different devices, due to possible device clock variations. This becomes even more difficult to achieve using two separate callback streams because it is not possible to explicitly control the calling order of the callback functions.
-
-\section{Summary of Methods}\label{methods}
-
-
-The following is short summary of public methods (not including constructors and the destructor) provided by {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}:
-
-\begin{CompactItemize}
- \item 
-{\bf Rt\-Audio::open\-Stream}() {\rm (p.\,\pageref{classRtAudio_a3})}: opens a stream with the specified parameters. \item 
-{\bf Rt\-Audio::set\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a4})}: sets a user-defined callback function for a given stream. \item 
-{\bf Rt\-Audio::cancel\-Stream\-Callback}() {\rm (p.\,\pageref{classRtAudio_a5})}: cancels a callback process and function for a given stream. \item 
-{\bf Rt\-Audio::get\-Device\-Count}() {\rm (p.\,\pageref{classRtAudio_a6})}: returns the number of audio devices available. \item 
-{\bf Rt\-Audio::get\-Device\-Info}() {\rm (p.\,\pageref{classRtAudio_a7})}: fills a user-supplied RTAUDIO\_\-DEVICE structure for a specified device. \item 
-{\bf Rt\-Audio::get\-Stream\-Buffer}() {\rm (p.\,\pageref{classRtAudio_a8})}: returns a pointer to the stream buffer. \item 
-{\bf Rt\-Audio::tick\-Stream}() {\rm (p.\,\pageref{classRtAudio_a9})}: triggers processing of input/output data for a stream (blocking). \item 
-{\bf Rt\-Audio::close\-Stream}() {\rm (p.\,\pageref{classRtAudio_a10})}: closes the specified stream (implicitly called during object destruction). Once a stream is closed, the stream identifier is invalid and should not be used in calling any other {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} methods. \item 
-{\bf Rt\-Audio::start\-Stream}() {\rm (p.\,\pageref{classRtAudio_a11})}: (re)starts the specified stream, typically after it has been stopped with either stop\-Stream() or abort\-Stream() or after first opening the stream. \item 
-{\bf Rt\-Audio::stop\-Stream}() {\rm (p.\,\pageref{classRtAudio_a12})}: stops the specified stream, allowing any remaining samples in the queue to be played out and/or read in. This does not implicitly call {\bf Rt\-Audio::close\-Stream}() {\rm (p.\,\pageref{classRtAudio_a10})}. \item 
-{\bf Rt\-Audio::abort\-Stream}() {\rm (p.\,\pageref{classRtAudio_a13})}: stops the specified stream, discarding any remaining samples in the queue. This does not implicitly call close\-Stream(). \item 
-{\bf Rt\-Audio::stream\-Will\-Block}() {\rm (p.\,\pageref{classRtAudio_a14})}: queries a stream to determine whether a call to the {\em tick\-Stream()} method will block. A return value of 0 indicates that the stream will NOT block. A positive return value indicates the number of sample frames that cannot yet be processed without blocking. \end{CompactItemize}
-
-
-\section{Compiling}\label{compiling}
-
-
-In order to compile {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} for a specific OS and audio API, it is necessary to supply the appropriate preprocessor definition and library within the compiler statement: 
-
-
-
-  \begin{TabularC}{5}
-\hline
-{\bf OS:} &{\bf Audio API:} &{\bf Preprocessor Definition:} &{\bf Library:} &{\bf Example Compiler Statement:}   \\\hline
-Linux &ALSA &\_\-\_\-LINUX\_\-ALSA\_\-\_\- &{\tt libasound, libpthread} &{\tt g++ -Wall -D\_\-\_\-LINUX\_\-ALSA\_\-\_\- -o probe probe.cpp Rt\-Audio.cpp -lasound -lpthread}   \\\hline
-Linux &OSS &\_\-\_\-LINUX\_\-OSS\_\-\_\- &{\tt libpthread} &{\tt g++ -Wall -D\_\-\_\-LINUX\_\-OSS\_\-\_\- -o probe probe.cpp Rt\-Audio.cpp -lpthread}   \\\hline
-Irix &AL &\_\-\_\-IRIX\_\-AL\_\-\_\- &{\tt libaudio, libpthread} &{\tt CC -Wall -D\_\-\_\-IRIX\_\-AL\_\-\_\- -o probe probe.cpp Rt\-Audio.cpp -laudio -lpthread}   \\\hline
-Windows &Direct Sound &\_\-\_\-WINDOWS\_\-DS\_\-\_\- &{\tt dsound.lib (ver. 5.0 or higher), multithreaded} &{\em compiler specific}  \\\hline
-\end{TabularC}
-
-
-
-The example compiler statements above could be used to compile the {\tt probe.cpp} example file, assuming that {\tt probe.cpp}, {\tt {\bf Rt\-Audio.h}}, and {\tt Rt\-Audio.cpp} all exist in the same directory.
-
-\section{OS Notes}\label{osnotes}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} is designed to provide a common API across the various supported operating systems and audio libraries. Despite that, however, some issues need to be mentioned with regard to each.
-
-\subsection{Linux:}\label{linux}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} for Linux was developed under Redhat distributions 7.0 - 7.2. Two different audio APIs are supported on Linux platforms: OSS and {\tt ALSA}. The OSS API has existed for at least 6 years and the Linux kernel is distributed with free versions of OSS audio drivers. Therefore, a generic Linux system is most likely to have OSS support. The ALSA API, although relatively new, is now part of the Linux development kernel and offers significantly better functionality than the OSS API. {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} provides support for the 0.9 and higher versions of ALSA. Input/output latency on the order of 15 milliseconds can typically be achieved under both OSS or ALSA by fine-tuning the {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} buffer parameters (without kernel modifications). Latencies on the order of 5 milliseconds or less can be achieved using a low-latency kernel patch and increasing FIFO scheduling priority. The pthread library, which is used for callback functionality, is a standard component of all Linux distributions.
-
-The ALSA library includes OSS emulation support. That means that you can run programs compiled for the OSS API even when using the ALSA drivers and library. It should be noted however that OSS emulation under ALSA is not perfect. Specifically, channel number queries seem to consistently produce invalid results. While OSS emulation is successful for the majority of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} tests, it is recommended that the native ALSA implementation of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} be used on systems which have ALSA drivers installed.
-
-The ALSA implementation of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} makes no use of the ALSA \char`\"{}plug\char`\"{} interface. All necessary data format conversions, channel compensation, deinterleaving, and byte-swapping is handled by internal {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} routines.
-
-\subsection{Irix (SGI):}\label{irix}
-
-
-The Irix version of {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} was written and tested on an SGI Indy running Irix version 6.5.4 and the newer \char`\"{}al\char`\"{} audio library. {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} does not compile under Irix version 6.3, mainly because the C++ compiler is too old. Despite the relatively slow speed of the Indy, {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} was found to behave quite well and input/output latency was very good. No problems were found with respect to using the pthread library.
-
-\subsection{Windows:}\label{windows}
-
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} under Windows is written using the Direct\-Sound API. In order to compile {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} under Windows, you must have the header and source files for Direct\-Sound version 5.0 or higher. As far as I know, there is no Direct\-Sound\-Capture support for Windows NT (in which case, you cannot use {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})}). Audio output latency with Direct\-Sound can be reasonably good (on the order of 20 milliseconds). On the other hand, input audio latency tends to be terrible (100 milliseconds or more). Further, Direct\-Sound drivers tend to crash easily when experimenting with buffer parameters. On my system, I found it necessary to use values around n\-Buffers = 8 and buffer\-Size = 512 to avoid crashing my system. {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} was developed with Visual C++ version 6.0. I was forced in several instances to modify code in order to get it to compile under the non-standard version of C++ that Microsoft so unprofessionally implemented. We can only hope that the developers of Visual C++ 7.0 will have time to read the C++ standard.
-
-\section{Acknowledgements}\label{acknowledge}
-
-
-The {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} API incorporates many of the concepts developed in the {\tt Port\-Audio} project by Phil Burk and Ross Bencina. Early development also incorporated ideas from Bill Schottstaedt's {\tt sndlib}. The CCRMA {\tt Sound\-Wire group} provided valuable feedback during the API proposal stages.
-
-{\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} was slowly developed over the course of many months while in residence at the {\tt Institut Universitari de L'Audiovisual (IUA)} in Barcelona, Spain, the {\tt Laboratory of Acoustics and Audio Signal Processing} at the Helsinki University of Technology, Finland, and the {\tt Center for Computer Research in Music and Acoustics (CCRMA)} at {\tt Stanford University}. This work was supported in part by the United States Air Force Office of Scientific Research (grant \#F49620-99-1-0293).
-
diff --git a/doc/doxygen/latex/refman.tex b/doc/doxygen/latex/refman.tex
deleted file mode 100644 (file)
index 6b60c38..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-\documentclass[letterpaper]{book}
-\usepackage{makeidx}
-\usepackage{fancyhdr}
-\usepackage{graphicx}
-\usepackage{float}
-\usepackage{alltt}
-\usepackage{doxygen}
-\makeindex
-\setcounter{tocdepth}{1}
-\setlength{\footrulewidth}{0.4pt}
-\begin{document}
-\begin{titlepage}
-\vspace*{7cm}
-\begin{center}
-{\Large Rt\-Audio Reference Manual}\\
-\vspace*{1cm}
-{\small May 2002}\\
-\end{center}
-\end{titlepage}
-\clearemptydoublepage
-\pagenumbering{roman}
-\tableofcontents
-\clearemptydoublepage
-\pagenumbering{arabic}
-\chapter{The {\bf Rt\-Audio} {\rm (p.\,\pageref{classRtAudio})} Tutorial}
-\label{index}\input{index}
-\chapter{Rt\-Audio Compound Index}
-\input{annotated}
-\chapter{Rt\-Audio File Index}
-\input{files}
-\chapter{Rt\-Audio Class Documentation}
-\input{classRtAudio}
-\include{structRtAudio_1_1RTAUDIO__DEVICE}
-\include{classRtError}
-\chapter{Rt\-Audio File Documentation}
-\input{RtAudio_8h}
-\include{tutorial_8txt}
-\printindex
-\end{document}
diff --git a/doc/doxygen/latex/structRtAudio_1_1RTAUDIO__DEVICE.tex b/doc/doxygen/latex/structRtAudio_1_1RTAUDIO__DEVICE.tex
deleted file mode 100644 (file)
index 3f09092..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-\section{Rt\-Audio::RTAUDIO\_\-DEVICE  Struct Reference}
-\label{structRtAudio_1_1RTAUDIO__DEVICE}\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-{\tt \#include $<$Rt\-Audio.h$>$}
-
-\subsection*{Public Attributes}
-\begin{CompactItemize}
-\item 
-char {\bf name} [128]
-\item 
-DEVICE\_\-ID {\bf id} [2]
-\item 
-bool {\bf probed}
-\item 
-int {\bf max\-Output\-Channels}
-\item 
-int {\bf max\-Input\-Channels}
-\item 
-int {\bf max\-Duplex\-Channels}
-\item 
-int {\bf min\-Output\-Channels}
-\item 
-int {\bf min\-Input\-Channels}
-\item 
-int {\bf min\-Duplex\-Channels}
-\item 
-bool {\bf has\-Duplex\-Support}
-\item 
-int {\bf n\-Sample\-Rates}
-\item 
-int {\bf sample\-Rates} [MAX\_\-SAMPLE\_\-RATES]
-\item 
-{\bf RTAUDIO\_\-FORMAT} {\bf native\-Formats}
-\end{CompactItemize}
-
-
-\subsection{Member Data Documentation}
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!name@{name}}
-\index{name@{name}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char Rt\-Audio::RTAUDIO\_\-DEVICE::name}\label{structRtAudio_1_1RTAUDIO__DEVICE_m0}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!id@{id}}
-\index{id@{id}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DEVICE\_\-ID Rt\-Audio::RTAUDIO\_\-DEVICE::id}\label{structRtAudio_1_1RTAUDIO__DEVICE_m1}
-
-
-No value reported by {\bf get\-Device\-Info}() {\rm (p.\,\pageref{classRtAudio_a7})}. \index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!probed@{probed}}
-\index{probed@{probed}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Rt\-Audio::RTAUDIO\_\-DEVICE::probed}\label{structRtAudio_1_1RTAUDIO__DEVICE_m2}
-
-
-true if the device capabilities were successfully probed. \index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!maxOutputChannels@{maxOutputChannels}}
-\index{maxOutputChannels@{maxOutputChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::max\-Output\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m3}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!maxInputChannels@{maxInputChannels}}
-\index{maxInputChannels@{maxInputChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::max\-Input\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m4}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!maxDuplexChannels@{maxDuplexChannels}}
-\index{maxDuplexChannels@{maxDuplexChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::max\-Duplex\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m5}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!minOutputChannels@{minOutputChannels}}
-\index{minOutputChannels@{minOutputChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::min\-Output\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m6}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!minInputChannels@{minInputChannels}}
-\index{minInputChannels@{minInputChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::min\-Input\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m7}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!minDuplexChannels@{minDuplexChannels}}
-\index{minDuplexChannels@{minDuplexChannels}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::min\-Duplex\-Channels}\label{structRtAudio_1_1RTAUDIO__DEVICE_m8}
-
-
-\index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!hasDuplexSupport@{hasDuplexSupport}}
-\index{hasDuplexSupport@{hasDuplexSupport}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Rt\-Audio::RTAUDIO\_\-DEVICE::has\-Duplex\-Support}\label{structRtAudio_1_1RTAUDIO__DEVICE_m9}
-
-
-true if device supports duplex mode. \index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!nSampleRates@{nSampleRates}}
-\index{nSampleRates@{nSampleRates}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::n\-Sample\-Rates}\label{structRtAudio_1_1RTAUDIO__DEVICE_m10}
-
-
-Number of discrete rates or -1 if range supported. \index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!sampleRates@{sampleRates}}
-\index{sampleRates@{sampleRates}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Rt\-Audio::RTAUDIO\_\-DEVICE::sample\-Rates}\label{structRtAudio_1_1RTAUDIO__DEVICE_m11}
-
-
-Supported rates or (min, max) if range. \index{RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}!nativeFormats@{nativeFormats}}
-\index{nativeFormats@{nativeFormats}!RtAudio::RTAUDIO_DEVICE@{Rt\-Audio::RTAUDIO\_\-DEVICE}}
-\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf RTAUDIO\_\-FORMAT} Rt\-Audio::RTAUDIO\_\-DEVICE::native\-Formats}\label{structRtAudio_1_1RTAUDIO__DEVICE_m12}
-
-
-Bit mask of supported data formats. 
-
-The documentation for this struct was generated from the following file:\begin{CompactItemize}
-\item 
-{\bf Rt\-Audio.h}\end{CompactItemize}
diff --git a/doc/doxygen/latex/tutorial_8txt.tex b/doc/doxygen/latex/tutorial_8txt.tex
deleted file mode 100644 (file)
index 5bedf13..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-\section{tutorial.txt File Reference}
-\label{tutorial_8txt}\index{tutorial.txt@{tutorial.txt}}
index 964e1e5a138c34797d54af426a33c487f745af04..1b99c73d56cceef09d7bfe3626859600ea8f411a 100644 (file)
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio.h</h1><a href="RtAudio_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/******************************************/</font>
-00002 <font class="comment">/*</font>
-00003 <font class="comment">  RtAudio - realtime sound I/O C++ class</font>
-00004 <font class="comment">  by Gary P. Scavone, 2001-2002.</font>
-00005 <font class="comment">*/</font>
-00006 <font class="comment">/******************************************/</font>
-00007 
-00008 <font class="preprocessor">#if !defined(__RTAUDIO_H)</font>
-<a name="l00009"></a><a class="code" href="RtAudio_8h.html#a0">00009</a> <font class="preprocessor"></font><font class="preprocessor">#define __RTAUDIO_H</font>
-00010 <font class="preprocessor"></font>
-00011 <font class="preprocessor">#include &lt;map&gt;</font>
-00012 
-00013 <font class="preprocessor">#if defined(__LINUX_ALSA__)</font>
-00014 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;alsa/asoundlib.h&gt;</font>
-00015 <font class="preprocessor">  #include &lt;pthread.h&gt;</font>
-00016 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
-00017 
-00018 <font class="preprocessor">  #define THREAD_TYPE</font>
-00019 <font class="preprocessor"></font>  <font class="keyword">typedef</font> snd_pcm_t *AUDIO_HANDLE;
-00020   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
-00021   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
-00022   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
-00023 
-00024 <font class="preprocessor">#elif defined(__LINUX_OSS__)</font>
-00025 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;pthread.h&gt;</font>
-00026 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
-00027 
-00028 <font class="preprocessor">  #define THREAD_TYPE</font>
-00029 <font class="preprocessor"></font>  <font class="keyword">typedef</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
-00030   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
-00031   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
-00032   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
-00033 
-00034 <font class="preprocessor">#elif defined(__WINDOWS_DS__)</font>
-00035 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;windows.h&gt;</font>
-00036 <font class="preprocessor">  #include &lt;process.h&gt;</font>
-00037 
-00038   <font class="comment">// The following struct is used to hold the extra variables</font>
-00039   <font class="comment">// specific to the DirectSound implementation.</font>
-00040   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
-00041     <font class="keywordtype">void</font> * object;
-00042     <font class="keywordtype">void</font> * buffer;
-00043     UINT bufferPointer;
-00044   } AUDIO_HANDLE;
-00045 
-00046 <font class="preprocessor">  #define THREAD_TYPE __stdcall</font>
-00047 <font class="preprocessor"></font>  <font class="keyword">typedef</font> LPGUID DEVICE_ID;
-00048   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
-00049   <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
-00050 
-00051 <font class="preprocessor">#elif defined(__IRIX_AL__)</font>
-00052 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;dmedia/audio.h&gt;</font>
-00053 <font class="preprocessor">  #include &lt;pthread.h&gt;</font>
-00054 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
-00055 
-00056 <font class="preprocessor">  #define THREAD_TYPE</font>
-00057 <font class="preprocessor"></font>  <font class="keyword">typedef</font> ALport AUDIO_HANDLE;
-00058   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
-00059   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
-00060   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
-00061 
-00062 <font class="preprocessor">#endif</font>
-00063 <font class="preprocessor"></font>
-00064 
-00065 <font class="comment">// *************************************************** //</font>
-00066 <font class="comment">//</font>
-00067 <font class="comment">// RtError class declaration.</font>
-00068 <font class="comment">//</font>
-00069 <font class="comment">// *************************************************** //</font>
-00070 
-<a name="l00071"></a><a class="code" href="classRtError.html">00071</a> <font class="keyword">class </font><a class="code" href="classRtError.html">RtError</a>
-00072 {
-00073 <font class="keyword">public</font>:
-<a name="l00074"></a><a class="code" href="classRtError.html#s11">00074</a>   <font class="keyword">enum</font> TYPE {
-00075     WARNING,
-00076     DEBUG_WARNING,
-00077     UNSPECIFIED,
-00078     NO_DEVICES_FOUND,
-00079     INVALID_DEVICE,
-00080     INVALID_STREAM,
-00081     MEMORY_ERROR,
-00082     INVALID_PARAMETER,
-00083     DRIVER_ERROR,
-00084     SYSTEM_ERROR,
-00085     THREAD_ERROR
-00086   };
-00087 
-00088 <font class="keyword">protected</font>:
-<a name="l00089"></a><a class="code" href="classRtError.html#n0">00089</a>   <font class="keywordtype">char</font> error_message[256];
-<a name="l00090"></a><a class="code" href="classRtError.html#n1">00090</a>   TYPE type;
-00091 
-00092 <font class="keyword">public</font>:
-00094   <a class="code" href="classRtError.html#a0">RtError</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *p, TYPE tipe = RtError::UNSPECIFIED);
-00095 
-00097   <font class="keyword">virtual</font> <a class="code" href="classRtError.html#a1">~RtError</a>(<font class="keywordtype">void</font>);
+<h1>RtAudio.h</h1><div class="fragment"><pre>00001 <font class="comment">/************************************************************************/</font>
+00038 <font class="comment">/************************************************************************/</font>
+00039 
+00040 <font class="preprocessor">#if !defined(__RTAUDIO_H)</font>
+00041 <font class="preprocessor"></font><font class="preprocessor">#define __RTAUDIO_H</font>
+00042 <font class="preprocessor"></font>
+00043 <font class="preprocessor">#include &lt;map&gt;</font>
+00044 
+00045 <font class="preprocessor">#if defined(__LINUX_ALSA__)</font>
+00046 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;alsa/asoundlib.h&gt;</font>
+00047 <font class="preprocessor">  #include &lt;pthread.h&gt;</font>
+00048 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
+00049 
+00050   <font class="keyword">typedef</font> snd_pcm_t *AUDIO_HANDLE;
+00051   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
+00052   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
+00053   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
+00054 
+00055 <font class="preprocessor">#elif defined(__LINUX_OSS__)</font>
+00056 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;pthread.h&gt;</font>
+00057 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
+00058 
+00059   <font class="keyword">typedef</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
+00060   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
+00061   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
+00062   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
+00063 
+00064 <font class="preprocessor">#elif defined(__WINDOWS_DS__)</font>
+00065 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;windows.h&gt;</font>
+00066 <font class="preprocessor">  #include &lt;process.h&gt;</font>
+00067 
+00068   <font class="comment">// The following struct is used to hold the extra variables</font>
+00069   <font class="comment">// specific to the DirectSound implementation.</font>
+00070   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
+00071     <font class="keywordtype">void</font> * object;
+00072     <font class="keywordtype">void</font> * buffer;
+00073     UINT bufferPointer;
+00074   } AUDIO_HANDLE;
+00075 
+00076   <font class="keyword">typedef</font> LPGUID DEVICE_ID;
+00077   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
+00078   <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
+00079 
+00080 <font class="preprocessor">#elif defined(__WINDOWS_ASIO__)</font>
+00081 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;windows.h&gt;</font>
+00082 <font class="preprocessor">  #include &lt;process.h&gt;</font>
+00083 
+00084   <font class="keyword">typedef</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
+00085   <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
+00086   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
+00087   <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
+00088 
+00089 <font class="preprocessor">#elif defined(__IRIX_AL__)</font>
+00090 <font class="preprocessor"></font><font class="preprocessor">  #include &lt;dmedia/audio.h&gt;</font>
+00091 <font class="preprocessor">  #include &lt;pthread.h&gt;</font>
+00092 <font class="preprocessor">  #include &lt;unistd.h&gt;</font>
+00093 
+00094   <font class="keyword">typedef</font> ALport AUDIO_HANDLE;
+00095   <font class="keyword">typedef</font> <font class="keywordtype">long</font> DEVICE_ID;
+00096   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
+00097   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
 00098 
-00100   <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classRtError.html#a2">printMessage</a>(<font class="keywordtype">void</font>);
-00101 
-<a name="l00103"></a><a class="code" href="classRtError.html#a3">00103</a>   <font class="keyword">virtual</font> <font class="keyword">const</font> TYPE&amp; <a class="code" href="classRtError.html#a3">getType</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> type; }
+00099 <font class="preprocessor">#elif defined(__MACOSX_CORE__)</font>
+00100 <font class="preprocessor"></font>
+00101 <font class="preprocessor">  #include &lt;CoreServices/CoreServices.h&gt;</font>
+00102 <font class="preprocessor">  #include &lt;CoreAudio/AudioHardware.h&gt;</font>
+00103 <font class="preprocessor">  #include &lt;pthread.h&gt;</font>
 00104 
-<a name="l00106"></a><a class="code" href="classRtError.html#a4">00106</a>   <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classRtError.html#a4">getMessage</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> error_message; }
-00107 };
-00108 
+00105   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
+00106   <font class="keyword">typedef</font> AudioDeviceID DEVICE_ID;
+00107   <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
+00108   <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
 00109 
-00110 <font class="comment">// *************************************************** //</font>
-00111 <font class="comment">//</font>
-00112 <font class="comment">// RtAudio class declaration.</font>
-00113 <font class="comment">//</font>
-00114 <font class="comment">// *************************************************** //</font>
-00115 
-<a name="l00116"></a><a class="code" href="classRtAudio.html">00116</a> <font class="keyword">class </font><a class="code" href="classRtAudio.html">RtAudio</a>
-00117 {
-00118 <font class="keyword">public</font>:
-00119 
-00120   <font class="comment">// Support for signed integers and floats.  Audio data fed to/from</font>
-00121   <font class="comment">// the tickStream() routine is assumed to ALWAYS be in host</font>
-00122   <font class="comment">// byte order.  The internal routines will automatically take care of</font>
-00123   <font class="comment">// any necessary byte-swapping between the host format and the</font>
-00124   <font class="comment">// soundcard.  Thus, endian-ness is not a concern in the following</font>
-00125   <font class="comment">// format definitions.</font>
-<a name="l00126"></a><a class="code" href="classRtAudio.html#s0">00126</a>   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> RTAUDIO_FORMAT;
-<a name="l00127"></a><a class="code" href="classRtAudio.html#p0">00127</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT8;
-<a name="l00128"></a><a class="code" href="classRtAudio.html#p1">00128</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT16;
-<a name="l00129"></a><a class="code" href="classRtAudio.html#p2">00129</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT24; 
-<a name="l00130"></a><a class="code" href="classRtAudio.html#p3">00130</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT32;
-<a name="l00131"></a><a class="code" href="classRtAudio.html#p4">00131</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT32; 
-<a name="l00132"></a><a class="code" href="classRtAudio.html#p5">00132</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT64; 
-00133 
-00134   <font class="comment">//static const int MAX_SAMPLE_RATES = 14;</font>
-00135   <font class="keyword">enum</font> { MAX_SAMPLE_RATES = 14 };
-00136 
-00137   <font class="keyword">typedef</font> int (*RTAUDIO_CALLBACK)(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> bufferSize, <font class="keywordtype">void</font> *userData);
-00138 
-<a name="l00139"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html">00139</a>   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
-<a name="l00140"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">00140</a>     <font class="keywordtype">char</font> name[128];
-<a name="l00141"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m1">00141</a>     DEVICE_ID id[2];  
-<a name="l00142"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">00142</a>     <font class="keywordtype">bool</font> probed;       
-<a name="l00143"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">00143</a>     <font class="keywordtype">int</font> maxOutputChannels;
-<a name="l00144"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">00144</a>     <font class="keywordtype">int</font> maxInputChannels;
-<a name="l00145"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m5">00145</a>     <font class="keywordtype">int</font> maxDuplexChannels;
-<a name="l00146"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">00146</a>     <font class="keywordtype">int</font> minOutputChannels;
-<a name="l00147"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">00147</a>     <font class="keywordtype">int</font> minInputChannels;
-<a name="l00148"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m8">00148</a>     <font class="keywordtype">int</font> minDuplexChannels;
-<a name="l00149"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">00149</a>     <font class="keywordtype">bool</font> hasDuplexSupport; 
-<a name="l00150"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">00150</a>     <font class="keywordtype">int</font> nSampleRates;      
-<a name="l00151"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">00151</a>     <font class="keywordtype">int</font> sampleRates[MAX_SAMPLE_RATES]; 
-<a name="l00152"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">00152</a>     RTAUDIO_FORMAT nativeFormats;     
-00153   } RTAUDIO_DEVICE;
-00154 
+00110 <font class="preprocessor">#endif</font>
+00111 <font class="preprocessor"></font>
+00112 
+00113 <font class="comment">/************************************************************************/</font>
+00126 <font class="comment">/************************************************************************/</font>
+00127 
+00128 <font class="keyword">class </font><a class="code" href="classRtError.html">RtError</a>
+00129 {
+00130 <font class="keyword">public</font>:
+<a name="l00132"></a><a class="code" href="classRtError.html#s11">00132</a>   <font class="keyword">enum</font> TYPE {
+00133     WARNING,
+00134     DEBUG_WARNING,
+00135     UNSPECIFIED,
+00136     NO_DEVICES_FOUND,
+00137     INVALID_DEVICE,
+00138     INVALID_STREAM,
+00139     MEMORY_ERROR,
+00140     INVALID_PARAMETER,
+00141     DRIVER_ERROR,
+00142     SYSTEM_ERROR,
+00143     THREAD_ERROR
+00144   };
+00145 
+00146 <font class="keyword">protected</font>:
+00147   <font class="keywordtype">char</font> error_message[256];
+00148   TYPE type;
+00149 
+00150 <font class="keyword">public</font>:
+00152   <a class="code" href="classRtError.html#a0">RtError</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *p, TYPE tipe = RtError::UNSPECIFIED);
+00153 
+00155   <font class="keyword">virtual</font> <a class="code" href="classRtError.html#a1">~RtError</a>(<font class="keywordtype">void</font>);
 00156 
-00163   <a class="code" href="classRtAudio.html#a0">RtAudio</a>();
-00164 
+00158   <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classRtError.html#a2">printMessage</a>(<font class="keywordtype">void</font>);
+00159 
+<a name="l00161"></a><a class="code" href="classRtError.html#a3">00161</a>   <font class="keyword">virtual</font> <font class="keyword">const</font> TYPE&amp; <a class="code" href="classRtError.html#a3">getType</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> type; }
+00162 
+<a name="l00164"></a><a class="code" href="classRtError.html#a4">00164</a>   <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classRtError.html#a4">getMessage</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> error_message; }
+00165 };
 00166 
-00177   <a class="code" href="classRtAudio.html#a0">RtAudio</a>(<font class="keywordtype">int</font> *streamId,
-00178           <font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
-00179           <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
-00180           RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
-00181           <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
-00182 
+00167 
+00168 <font class="comment">// This public structure type is used to pass callback information</font>
+00169 <font class="comment">// between the private RtAudio stream structure and global callback</font>
+00170 <font class="comment">// handling functions.</font>
+00171 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
+00172   <font class="keywordtype">void</font> *object;  <font class="comment">// Used as a "this" pointer.</font>
+00173   <font class="keywordtype">int</font> streamId;
+00174   DEVICE_ID device[2];
+00175   THREAD_HANDLE thread;
+00176   <font class="keywordtype">void</font> *callback;
+00177   <font class="keywordtype">void</font> *buffers;
+00178   <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> waitTime;
+00179   <font class="keywordtype">bool</font> blockTick;
+00180   <font class="keywordtype">bool</font> stopStream;
+00181   <font class="keywordtype">bool</font> usingCallback;
+00182   <font class="keywordtype">void</font> *userData;
+00183 } CALLBACK_INFO;
 00184 
-00188   <a class="code" href="classRtAudio.html#a2">~RtAudio</a>();
-00189 
+00185 
+00186 <font class="comment">// *************************************************** //</font>
+00187 <font class="comment">//</font>
+00188 <font class="comment">// RtAudio class declaration.</font>
+00189 <font class="comment">//</font>
+00190 <font class="comment">// *************************************************** //</font>
 00191 
-00218   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a3">openStream</a>(<font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
-00219                  <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
-00220                  RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
-00221                  <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
-00222 
-00224 
-00243   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a4">setStreamCallback</a>(<font class="keywordtype">int</font> streamId, RTAUDIO_CALLBACK callback, <font class="keywordtype">void</font> *userData);
-00244 
-00246 
-00253   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a5">cancelStreamCallback</a>(<font class="keywordtype">int</font> streamId);
-00254 
-00256   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a6">getDeviceCount</a>(<font class="keywordtype">void</font>);
-00257 
+00192 <font class="keyword">class </font><a class="code" href="classRtAudio.html">RtAudio</a>
+00193 {
+00194 <font class="keyword">public</font>:
+00195 
+00196   <font class="comment">// Support for signed integers and floats.  Audio data fed to/from</font>
+00197   <font class="comment">// the tickStream() routine is assumed to ALWAYS be in host</font>
+00198   <font class="comment">// byte order.  The internal routines will automatically take care of</font>
+00199   <font class="comment">// any necessary byte-swapping between the host format and the</font>
+00200   <font class="comment">// soundcard.  Thus, endian-ness is not a concern in the following</font>
+00201   <font class="comment">// format definitions.</font>
+00202   <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> RTAUDIO_FORMAT;
+<a name="l00203"></a><a class="code" href="classRtAudio.html#p0">00203</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT8; 
+<a name="l00204"></a><a class="code" href="classRtAudio.html#p1">00204</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT16; 
+<a name="l00205"></a><a class="code" href="classRtAudio.html#p2">00205</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT24; 
+<a name="l00206"></a><a class="code" href="classRtAudio.html#p3">00206</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT32; 
+<a name="l00207"></a><a class="code" href="classRtAudio.html#p4">00207</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT32; 
+<a name="l00208"></a><a class="code" href="classRtAudio.html#p5">00208</a>   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT64; 
+00210   <font class="comment">//static const int MAX_SAMPLE_RATES = 14;</font>
+00211   <font class="keyword">enum</font> { MAX_SAMPLE_RATES = 14 };
+00212 
+00213   <font class="keyword">typedef</font> int (*RTAUDIO_CALLBACK)(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> bufferSize, <font class="keywordtype">void</font> *userData);
+00214 
+<a name="l00216"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html">00216</a>   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
+<a name="l00217"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">00217</a>     <font class="keywordtype">char</font> name[128];    
+00218     DEVICE_ID id[2];  <font class="comment">/* No value reported by getDeviceInfo(). */</font>
+<a name="l00219"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">00219</a>     <font class="keywordtype">bool</font> probed;       
+<a name="l00220"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">00220</a>     <font class="keywordtype">int</font> maxOutputChannels; 
+<a name="l00221"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">00221</a>     <font class="keywordtype">int</font> maxInputChannels;  
+<a name="l00222"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m5">00222</a>     <font class="keywordtype">int</font> maxDuplexChannels; 
+<a name="l00223"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">00223</a>     <font class="keywordtype">int</font> minOutputChannels; 
+<a name="l00224"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">00224</a>     <font class="keywordtype">int</font> minInputChannels;  
+<a name="l00225"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m8">00225</a>     <font class="keywordtype">int</font> minDuplexChannels; 
+<a name="l00226"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">00226</a>     <font class="keywordtype">bool</font> hasDuplexSupport; 
+<a name="l00227"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">00227</a>     <font class="keywordtype">bool</font> isDefault;        
+<a name="l00228"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">00228</a>     <font class="keywordtype">int</font> nSampleRates;      
+<a name="l00229"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">00229</a>     <font class="keywordtype">int</font> sampleRates[MAX_SAMPLE_RATES]; 
+<a name="l00230"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m13">00230</a>     RTAUDIO_FORMAT nativeFormats;     
+00231   } RTAUDIO_DEVICE;
+00232 
+00234 
+00240   <a class="code" href="classRtAudio.html#a0">RtAudio</a>();
+00241 
+00243 
+00254   <a class="code" href="classRtAudio.html#a0">RtAudio</a>(<font class="keywordtype">int</font> *streamId,
+00255           <font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
+00256           <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
+00257           RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
+00258           <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
 00259 
-00269   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a7">getDeviceInfo</a>(<font class="keywordtype">int</font> device, RTAUDIO_DEVICE *info);
-00270 
-00272 
-00277   <font class="keywordtype">char</font> * <font class="keyword">const</font> <a class="code" href="classRtAudio.html#a8">getStreamBuffer</a>(<font class="keywordtype">int</font> streamId);
-00278 
-00280 
-00285   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a9">tickStream</a>(<font class="keywordtype">int</font> streamId);
-00286 
-00288 
-00292   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a10">closeStream</a>(<font class="keywordtype">int</font> streamId);
-00293 
-00295 
-00299   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a11">startStream</a>(<font class="keywordtype">int</font> streamId);
-00300 
-00302 
-00306   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a12">stopStream</a>(<font class="keywordtype">int</font> streamId);
-00307 
-00309 
-00313   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a13">abortStream</a>(<font class="keywordtype">int</font> streamId);
-00314 
-00316 
-00321   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a14">streamWillBlock</a>(<font class="keywordtype">int</font> streamId);
-00322 
-00323 <font class="keyword">protected</font>:
-00324 
-00325 <font class="keyword">private</font>:
-00326 
-00327   <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> SAMPLE_RATES[MAX_SAMPLE_RATES];
-00328 
-00329   <font class="keyword">enum</font> { FAILURE, SUCCESS };
-00330 
-00331   <font class="keyword">enum</font> STREAM_MODE {
-00332     PLAYBACK,
-00333     RECORD,
-00334     DUPLEX,
-00335     UNINITIALIZED = -75
-00336   };
-00337 
-00338   <font class="keyword">enum</font> STREAM_STATE {
-00339     STREAM_STOPPED,
-00340     STREAM_RUNNING
-00341   };
-00342 
-00343   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
-00344     <font class="keywordtype">int</font> device[2];          <font class="comment">// Playback and record, respectively.</font>
-00345     STREAM_MODE mode;       <font class="comment">// PLAYBACK, RECORD, or DUPLEX.</font>
-00346     AUDIO_HANDLE handle[2]; <font class="comment">// Playback and record handles, respectively.</font>
-00347     STREAM_STATE state;     <font class="comment">// STOPPED or RUNNING</font>
-00348     <font class="keywordtype">char</font> *userBuffer;
-00349     <font class="keywordtype">char</font> *deviceBuffer;
-00350     <font class="keywordtype">bool</font> doConvertBuffer[2]; <font class="comment">// Playback and record, respectively.</font>
-00351     <font class="keywordtype">bool</font> deInterleave[2];    <font class="comment">// Playback and record, respectively.</font>
-00352     <font class="keywordtype">bool</font> doByteSwap[2];      <font class="comment">// Playback and record, respectively.</font>
-00353     <font class="keywordtype">int</font> sampleRate;
-00354     <font class="keywordtype">int</font> bufferSize;
-00355     <font class="keywordtype">int</font> nBuffers;
-00356     <font class="keywordtype">int</font> nUserChannels[2];    <font class="comment">// Playback and record, respectively.</font>
-00357     <font class="keywordtype">int</font> nDeviceChannels[2];  <font class="comment">// Playback and record channels, respectively.</font>
-00358     RTAUDIO_FORMAT userFormat;
-00359     RTAUDIO_FORMAT deviceFormat[2]; <font class="comment">// Playback and record, respectively.</font>
-00360     <font class="keywordtype">bool</font> usingCallback;
-00361     THREAD_HANDLE thread;
-00362     MUTEX mutex;
-00363     RTAUDIO_CALLBACK callback;
-00364     <font class="keywordtype">void</font> *userData;
-00365   } RTAUDIO_STREAM;
-00366 
-00367   <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">short</font> INT16;
-00368   <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">int</font> INT32;
-00369   <font class="keyword">typedef</font> <font class="keywordtype">float</font> FLOAT32;
-00370   <font class="keyword">typedef</font> <font class="keywordtype">double</font> FLOAT64;
-00371 
-00372   <font class="keywordtype">char</font> message[256];
-00373   <font class="keywordtype">int</font> nDevices;
-00374   RTAUDIO_DEVICE *devices;
+00261 
+00265   <a class="code" href="classRtAudio.html#a2">~RtAudio</a>();
+00266 
+00268 
+00295   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a3">openStream</a>(<font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
+00296                  <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
+00297                  RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
+00298                  <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
+00299 
+00301 
+00320   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a4">setStreamCallback</a>(<font class="keywordtype">int</font> streamId, RTAUDIO_CALLBACK callback, <font class="keywordtype">void</font> *userData);
+00321 
+00323 
+00330   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a5">cancelStreamCallback</a>(<font class="keywordtype">int</font> streamId);
+00331 
+00333   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a6">getDeviceCount</a>(<font class="keywordtype">void</font>);
+00334 
+00336 
+00344   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a7">getDeviceInfo</a>(<font class="keywordtype">int</font> device, RTAUDIO_DEVICE *info);
+00345 
+00347 
+00352   <font class="keywordtype">char</font> * <font class="keyword">const</font> <a class="code" href="classRtAudio.html#a8">getStreamBuffer</a>(<font class="keywordtype">int</font> streamId);
+00353 
+00355 
+00360   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a9">tickStream</a>(<font class="keywordtype">int</font> streamId);
+00361 
+00363 
+00367   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a10">closeStream</a>(<font class="keywordtype">int</font> streamId);
+00368 
+00370 
+00374   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a11">startStream</a>(<font class="keywordtype">int</font> streamId);
 00375 
-00376   std::map&lt;int, void *&gt; streams;
 00377 
-00379   <font class="keywordtype">void</font> error(RtError::TYPE type);
-00380 
-00385   <font class="keywordtype">void</font> initialize(<font class="keywordtype">void</font>);
-00386 
-00388   <font class="keywordtype">void</font> clearDeviceInfo(RTAUDIO_DEVICE *info);
+00381   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a12">stopStream</a>(<font class="keywordtype">int</font> streamId);
+00382 
+00384 
+00388   <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a13">abortStream</a>(<font class="keywordtype">int</font> streamId);
 00389 
-00397   <font class="keywordtype">void</font> probeDeviceInfo(RTAUDIO_DEVICE *info);
-00398 
-00405   <font class="keywordtype">bool</font> probeDeviceOpen(<font class="keywordtype">int</font> device, RTAUDIO_STREAM *stream,
-00406                        STREAM_MODE mode, <font class="keywordtype">int</font> channels, 
-00407                        <font class="keywordtype">int</font> sampleRate, RTAUDIO_FORMAT format,
-00408                        <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
+00391 
+00396   <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a14">streamWillBlock</a>(<font class="keywordtype">int</font> streamId);
+00397 
+00398 <font class="preprocessor">#if (defined(__MACOSX_CORE__) || defined(__WINDOWS_ASIO__))</font>
+00399 <font class="preprocessor"></font>  <font class="comment">// This function is intended for internal use only.  It must be</font>
+00400   <font class="comment">// public because it is called by the internal callback handler,</font>
+00401   <font class="comment">// which is not a member of RtAudio.  External use of this function</font>
+00402   <font class="comment">// will most likely produce highly undesireable results!</font>
+00403   <font class="keywordtype">void</font> callbackEvent(<font class="keywordtype">int</font> streamId, DEVICE_ID deviceId, <font class="keywordtype">void</font> *inData, <font class="keywordtype">void</font> *outData);
+00404 <font class="preprocessor">#endif</font>
+00405 <font class="preprocessor"></font>
+00406 <font class="keyword">protected</font>:
+00407 
+00408 <font class="keyword">private</font>:
 00409 
-00416   <font class="keywordtype">void</font> *verifyStream(<font class="keywordtype">int</font> streamId);
-00417 
-00422   <font class="keywordtype">void</font> convertStreamBuffer(RTAUDIO_STREAM *stream, STREAM_MODE mode);
-00423 
-00425   <font class="keywordtype">void</font> byteSwapBuffer(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> samples, RTAUDIO_FORMAT format);
-00426 
-00428   <font class="keywordtype">int</font> formatBytes(RTAUDIO_FORMAT format);
-00429 };
-00430 
-00431 <font class="comment">// Uncomment the following definition to have extra information spewed to stderr.</font>
-00432 <font class="comment">//#define RTAUDIO_DEBUG</font>
-00433 
-00434 <font class="preprocessor">#endif</font>
-</font></pre></div><HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+00410   <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> SAMPLE_RATES[MAX_SAMPLE_RATES];
+00411 
+00412   <font class="keyword">enum</font> { FAILURE, SUCCESS };
+00413 
+00414   <font class="keyword">enum</font> STREAM_MODE {
+00415     OUTPUT,
+00416     INPUT,
+00417     DUPLEX,
+00418     UNINITIALIZED = -75
+00419   };
+00420 
+00421   <font class="keyword">enum</font> STREAM_STATE {
+00422     STREAM_STOPPED,
+00423     STREAM_RUNNING
+00424   };
+00425 
+00426   <font class="keyword">typedef</font> <font class="keyword">struct </font>{
+00427     <font class="keywordtype">int</font> device[2];          <font class="comment">// Playback and record, respectively.</font>
+00428     STREAM_MODE mode;       <font class="comment">// OUTPUT, INPUT, or DUPLEX.</font>
+00429     AUDIO_HANDLE handle[2]; <font class="comment">// Playback and record handles, respectively.</font>
+00430     STREAM_STATE state;     <font class="comment">// STOPPED or RUNNING</font>
+00431     <font class="keywordtype">char</font> *userBuffer;
+00432     <font class="keywordtype">char</font> *deviceBuffer;
+00433     <font class="keywordtype">bool</font> doConvertBuffer[2]; <font class="comment">// Playback and record, respectively.</font>
+00434     <font class="keywordtype">bool</font> deInterleave[2];    <font class="comment">// Playback and record, respectively.</font>
+00435     <font class="keywordtype">bool</font> doByteSwap[2];      <font class="comment">// Playback and record, respectively.</font>
+00436     <font class="keywordtype">int</font> sampleRate;
+00437     <font class="keywordtype">int</font> bufferSize;
+00438     <font class="keywordtype">int</font> nBuffers;
+00439     <font class="keywordtype">int</font> nUserChannels[2];    <font class="comment">// Playback and record, respectively.</font>
+00440     <font class="keywordtype">int</font> nDeviceChannels[2];  <font class="comment">// Playback and record channels, respectively.</font>
+00441     RTAUDIO_FORMAT userFormat;
+00442     RTAUDIO_FORMAT deviceFormat[2]; <font class="comment">// Playback and record, respectively.</font>
+00443     MUTEX mutex;
+00444     CALLBACK_INFO callbackInfo;
+00445   } RTAUDIO_STREAM;
+00446 
+00447   <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">short</font> INT16;
+00448   <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">int</font> INT32;
+00449   <font class="keyword">typedef</font> <font class="keywordtype">float</font> FLOAT32;
+00450   <font class="keyword">typedef</font> <font class="keywordtype">double</font> FLOAT64;
+00451 
+00452   <font class="keywordtype">char</font> message[256];
+00453   <font class="keywordtype">int</font> nDevices;
+00454   RTAUDIO_DEVICE *devices;
+00455 
+00456   std::map&lt;int, void *&gt; streams;
+00457 
+00459   <font class="keywordtype">void</font> error(RtError::TYPE type);
+00460 
+00465   <font class="keywordtype">void</font> initialize(<font class="keywordtype">void</font>);
+00466 
+00471   <font class="keywordtype">int</font> getDefaultInputDevice(<font class="keywordtype">void</font>);
+00472 
+00477   <font class="keywordtype">int</font> getDefaultOutputDevice(<font class="keywordtype">void</font>);
+00478 
+00480   <font class="keywordtype">void</font> clearDeviceInfo(RTAUDIO_DEVICE *info);
+00481 
+00489   <font class="keywordtype">void</font> probeDeviceInfo(RTAUDIO_DEVICE *info);
+00490 
+00497   <font class="keywordtype">bool</font> probeDeviceOpen(<font class="keywordtype">int</font> device, RTAUDIO_STREAM *stream,
+00498                        STREAM_MODE mode, <font class="keywordtype">int</font> channels, 
+00499                        <font class="keywordtype">int</font> sampleRate, RTAUDIO_FORMAT format,
+00500                        <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
+00501 
+00508   <font class="keywordtype">void</font> *verifyStream(<font class="keywordtype">int</font> streamId);
+00509 
+00514   <font class="keywordtype">void</font> convertStreamBuffer(RTAUDIO_STREAM *stream, STREAM_MODE mode);
+00515 
+00517   <font class="keywordtype">void</font> byteSwapBuffer(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> samples, RTAUDIO_FORMAT format);
+00518 
+00520   <font class="keywordtype">int</font> formatBytes(RTAUDIO_FORMAT format);
+00521 };
+00522 
+00523 <font class="comment">// Define the following flag to have extra information spewed to stderr.</font>
+00524 <font class="comment">//#define __RTAUDIO_DEBUG__</font>
+00525 
+00526 <font class="preprocessor">#endif</font>
+</font></pre></div><HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
diff --git a/doc/html/RtAudio_8h.html b/doc/html/RtAudio_8h.html
deleted file mode 100644 (file)
index ff64d2e..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
-<HR>
-<!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio.h File Reference</h1><code>#include &lt;map&gt;</code><br>
-
-<p>
-<a href="RtAudio_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
-<tr><td colspan=2><br><h2>Compounds</h2></td></tr>
-<tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><a class="el" href="classRtError.html">RtError</a></td></tr>
-<tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html">RtAudio</a></td></tr>
-<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a></td></tr>
-<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><b>RtAudio::RTAUDIO_STREAM</b></td></tr>
-<tr><td colspan=2><br><h2>Defines</h2></td></tr>
-<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="RtAudio_8h.html#a0">__RTAUDIO_H</a></td></tr>
-</table>
-<hr><h2>Define Documentation</h2>
-<a name="a0" doxytag="RtAudio.h::__RTAUDIO_H"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-#define __RTAUDIO_H
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-<b>Value:</b><div class="fragment"><pre>
-</pre></div>    </td>
-  </tr>
-</table>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
-</HTML>
index ba3eeb549e2980507614b8ecf45ded4a4d4aea9f..f298ed259e39de90793da011679f8c980dd556ac 100644 (file)
@@ -1,24 +1,24 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
 <h1>RtAudio Compound List</h1>Here are the classes, structs, unions and interfaces with brief descriptions:<ul>
-<li><a class="el" href="classRtAudio.html">RtAudio</a> 
-<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a> 
-<li><a class="el" href="classRtError.html">RtError</a> 
+<li><a class="el" href="classRtAudio.html">RtAudio</a>  (Realtime audio i/o C++ class)
+<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a>  (The public device information structure for passing queried values)
+<li><a class="el" href="classRtError.html">RtError</a>  (Exception handling class for <a class="el" href="classRtAudio.html">RtAudio</a>)
 </ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index 203bc3862213b964480a3337c80c323df8abb1a5..d4fcffbf1b0ab24b86ea626c461237b1037db848 100644 (file)
@@ -1,11 +1,11 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
 <h1>RtAudio Member List</h1>This is the complete list of members for <a class="el" href="classRtAudio.html">RtAudio</a>, including all inherited members.<ul>
 <li><a class="el" href="classRtAudio.html#a6">getDeviceCount</a>(void)
 <li><a class="el" href="classRtAudio.html#a7">getDeviceInfo</a>(int device, RTAUDIO_DEVICE *info)
 <li><a class="el" href="classRtAudio.html#a8">getStreamBuffer</a>(int streamId)
-<li><a class="el" href="classRtAudio.html#s3s2">MAX_SAMPLE_RATES</a> enum value
 <li><a class="el" href="classRtAudio.html#a3">openStream</a>(int outputDevice, int outputChannels, int inputDevice, int inputChannels, RTAUDIO_FORMAT format, int sampleRate, int *bufferSize, int numberOfBuffers)
 <li><a class="el" href="classRtAudio.html#a0">RtAudio</a>()
 <li><a class="el" href="classRtAudio.html#a1">RtAudio</a>(int *streamId, int outputDevice, int outputChannels, int inputDevice, int inputChannels, RTAUDIO_FORMAT format, int sampleRate, int *bufferSize, int numberOfBuffers)
-<li><a class="el" href="classRtAudio.html#s1">RTAUDIO_CALLBACK</a> typedef
 <li><a class="el" href="classRtAudio.html#p4">RTAUDIO_FLOAT32</a>
 <code> [static]</code><li><a class="el" href="classRtAudio.html#p5">RTAUDIO_FLOAT64</a>
-<code> [static]</code><li><a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> typedef
-<li><a class="el" href="classRtAudio.html#p1">RTAUDIO_SINT16</a>
+<code> [static]</code><li><a class="el" href="classRtAudio.html#p1">RTAUDIO_SINT16</a>
 <code> [static]</code><li><a class="el" href="classRtAudio.html#p2">RTAUDIO_SINT24</a>
 <code> [static]</code><li><a class="el" href="classRtAudio.html#p3">RTAUDIO_SINT32</a>
 <code> [static]</code><li><a class="el" href="classRtAudio.html#p0">RTAUDIO_SINT8</a>
 <li><a class="el" href="classRtAudio.html#a9">tickStream</a>(int streamId)
 <li><a class="el" href="classRtAudio.html#a2">~RtAudio</a>()
 </ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index cb4eff435a23addc9d2cc4305ff29228f130a7ae..157d97a0bee0f748ecb0a43a2f7d165b99c2aa1a 100644 (file)
@@ -1,38 +1,37 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio  Class Reference</h1><code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
+<h1>RtAudio  Class Reference</h1>Realtime audio i/o C++ class. 
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
 <p>
 <a href="classRtAudio-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
-<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
-<tr><td nowrap align=right valign=top>typedef unsigned long&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a></td></tr>
-<tr><td nowrap align=right valign=top>typedef int (*&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#s1">RTAUDIO_CALLBACK</a> )(char *buffer, int bufferSize, void *userData)</td></tr>
-<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom>{ <a class="el" href="classRtAudio.html#s3s2">MAX_SAMPLE_RATES</a> =  14 
- }</td></tr>
 <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
 <tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a0">RtAudio</a> ()</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>The default constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a1">RtAudio</a> (int *streamId, int outputDevice, int outputChannels, int inputDevice, int inputChannels, <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> format, int sampleRate, int *bufferSize, int numberOfBuffers)</td></tr>
+<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a1">RtAudio</a> (int *streamId, int outputDevice, int outputChannels, int inputDevice, int inputChannels, RTAUDIO_FORMAT format, int sampleRate, int *bufferSize, int numberOfBuffers)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>A constructor which can be used to open a stream during instantiation.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
 <tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a2">~RtAudio</a> ()</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>The destructor.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a3">openStream</a> (int outputDevice, int outputChannels, int inputDevice, int inputChannels, <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> format, int sampleRate, int *bufferSize, int numberOfBuffers)</td></tr>
+<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a3">openStream</a> (int outputDevice, int outputChannels, int inputDevice, int inputChannels, RTAUDIO_FORMAT format, int sampleRate, int *bufferSize, int numberOfBuffers)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>A public method for opening a stream with the specified parameters.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a4">setStreamCallback</a> (int streamId, <a class="el" href="classRtAudio.html#s1">RTAUDIO_CALLBACK</a> callback, void *userData)</td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a4">setStreamCallback</a> (int streamId, RTAUDIO_CALLBACK callback, void *userData)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>A public method which sets a user-defined callback function for a given stream.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
 <tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a5">cancelStreamCallback</a> (int streamId)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>A public method which cancels a callback process and function for a given stream.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a6">getDeviceCount</a> (void)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>A public method which returns the number of audio devices found.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a name="a6" doxytag="RtAudio::getDeviceCount"></a>
+int&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a6">getDeviceCount</a> (void)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>A public method which returns the number of audio devices found.</em></font><br><br></td></tr>
 <tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a7">getDeviceInfo</a> (int device, <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RTAUDIO_DEVICE</a> *info)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>Fill a user-supplied <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RTAUDIO_DEVICE</a> structure for a specified device.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Fill a user-supplied <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RTAUDIO_DEVICE</a> structure for a specified device number.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
 <tr><td nowrap align=right valign=top>char* const&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a8">getStreamBuffer</a> (int streamId)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>A public method which returns a pointer to the buffer for an open stream.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
 <tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a9">tickStream</a> (int streamId)</td></tr>
 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#a14">streamWillBlock</a> (int streamId)</td></tr>
 <tr><td>&nbsp;</td><td><font size=-1><em>Queries a stream to determine whether a call to the <a class="el" href="classRtAudio.html#a9">tickStream</a>() method will block.</em> <a href="#a14">More...</a><em></em></font><br><br></td></tr>
 <tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p0">RTAUDIO_SINT8</a></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p1">RTAUDIO_SINT16</a></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p2">RTAUDIO_SINT24</a></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p3">RTAUDIO_SINT32</a></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p4">RTAUDIO_FLOAT32</a></td></tr>
-<tr><td nowrap align=right valign=top>const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p5">RTAUDIO_FLOAT64</a></td></tr>
-</table>
-<hr><h2>Member Typedef Documentation</h2>
-<a name="s0" doxytag="RtAudio::RTAUDIO_FORMAT"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-typedef unsigned long RtAudio::RTAUDIO_FORMAT
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p0">RTAUDIO_SINT8</a></td></tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p1">RTAUDIO_SINT16</a></td></tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p2">RTAUDIO_SINT24</a></td></tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p3">RTAUDIO_SINT32</a></td></tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p4">RTAUDIO_FLOAT32</a></td></tr>
+<tr><td nowrap align=right valign=top>const RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="classRtAudio.html#p5">RTAUDIO_FLOAT64</a></td></tr>
 </table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Realtime audio i/o C++ class.
 <p>
-    </td>
-  </tr>
-</table>
-<a name="s1" doxytag="RtAudio::RTAUDIO_CALLBACK"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-typedef int(* RtAudio::RTAUDIO_CALLBACK)(char *buffer, int bufferSize, void *userData)
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
+RtAudio provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA and OSS), SGI, Macintosh OS X (CoreAudio), and Windows (DirectSound and ASIO) operating systems.
 <p>
-    </td>
-  </tr>
-</table>
-<hr><h2>Member Enumeration Documentation</h2>
-<a name="s3" doxytag="RtAudio::@0"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-anonymous enum
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
+RtAudio WWW site: <a href="http://www-ccrma.stanford.edu/~gary/rtaudio/">http://www-ccrma.stanford.edu/~gary/rtaudio/</a>
+<p>
+RtAudio: a realtime audio i/o C++ class Copyright (c) 2001-2002 Gary P. Scavone
+<p>
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+<p>
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+<p>
+Any person wishing to distribute modifications to the Software is requested to send the modifications to the original developer so that they can be incorporated into the canonical version.
+<p>
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
 <p>
-<dl compact><dt>
-<b>Enumeration values:</b><dd>
-<table border=0 cellspacing=2 cellpadding=0>
-<tr><td valign=top><a name="s3s2" doxytag="MAX_SAMPLE_RATES"></a><em>MAX_SAMPLE_RATES</em>
-&nbsp;</td><td>
-</td></tr>
-</table>
-</dl>
-    </td>
-  </tr>
-</table>
 <hr><h2>Constructor &amp; Destructor Documentation</h2>
 <a name="a0" doxytag="RtAudio::RtAudio"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
@@ -215,7 +143,7 @@ int <em>inputChannels</em>,
         <tr>
           <td></td>
           <td><b>
-<a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> <em>format</em>, 
+RTAUDIO_FORMAT <em>format</em>, 
           </b></td>
         </tr>
         <tr>
@@ -322,7 +250,7 @@ int <em>inputChannels</em>,
         <tr>
           <td></td>
           <td><b>
-<a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> <em>format</em>, 
+RTAUDIO_FORMAT <em>format</em>, 
           </b></td>
         </tr>
         <tr>
@@ -405,7 +333,7 @@ int <em>streamId</em>,
         <tr>
           <td></td>
           <td><b>
-<a class="el" href="classRtAudio.html#s1">RTAUDIO_CALLBACK</a> <em>callback</em>, 
+RTAUDIO_CALLBACK <em>callback</em>, 
           </b></td>
         </tr>
         <tr>
@@ -463,37 +391,6 @@ A public method which cancels a callback process and function for a given stream
 This method shuts down a callback process and de-references the user function for a specific stream. Callback functionality can subsequently be restarted on the stream via the <a class="el" href="classRtAudio.html#a4">setStreamCallback</a>() method. An <a class="el" href="classRtError.html">RtError</a> will be thrown for an invalid device argument.     </td>
   </tr>
 </table>
-<a name="a6" doxytag="RtAudio::getDeviceCount"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-int RtAudio::getDeviceCount (
-          </b></td>
-          <td valign="bottom"><b>
-void&nbsp;)
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-A public method which returns the number of audio devices found.
-<p>
-    </td>
-  </tr>
-</table>
 <a name="a7" doxytag="RtAudio::getDeviceInfo"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
@@ -526,9 +423,9 @@ int <em>device</em>,
     <td>
 
 <p>
-Fill a user-supplied <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RTAUDIO_DEVICE</a> structure for a specified device.
+Fill a user-supplied <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RTAUDIO_DEVICE</a> structure for a specified device number.
 <p>
-Any device between 0 and <a class="el" href="classRtAudio.html#a6">getDeviceCount</a>()-1 is valid. If a device is busy or otherwise unavailable, the structure member "probed" has a value of "false". The system default input and output devices are referenced by device identifier = 0. On systems which allow dynamic default device settings, the default devices are not identified by name (specific device enumerations are assigned device identifiers &gt; 0). An <a class="el" href="classRtError.html">RtError</a> will be thrown for an invalid device argument.     </td>
+Any device integer between 1 and <a class="el" href="classRtAudio.html#a6">getDeviceCount</a>() is valid. If a device is busy or otherwise unavailable, the structure member "probed" will have a value of "false" and all other members are undefined. If the specified device is the current default input or output device, the "isDefault" member will have a value of "true". An <a class="el" href="classRtError.html">RtError</a> will be thrown for an invalid device argument.     </td>
   </tr>
 </table>
 <a name="a8" doxytag="RtAudio::getStreamBuffer"></a><p>
@@ -756,7 +653,7 @@ A return value of 0 indicates that the stream will NOT block. A positive return
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_SINT8<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_SINT8<code> [static]</code>
           </b></td>
         </tr>
 
@@ -772,7 +669,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
     <td>
 
 <p>
-    </td>
+8-bit signed integer.     </td>
   </tr>
 </table>
 <a name="p1" doxytag="RtAudio::RTAUDIO_SINT16"></a><p>
@@ -782,7 +679,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_SINT16<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_SINT16<code> [static]</code>
           </b></td>
         </tr>
 
@@ -798,7 +695,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
     <td>
 
 <p>
-    </td>
+16-bit signed integer.     </td>
   </tr>
 </table>
 <a name="p2" doxytag="RtAudio::RTAUDIO_SINT24"></a><p>
@@ -808,7 +705,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_SINT24<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_SINT24<code> [static]</code>
           </b></td>
         </tr>
 
@@ -824,7 +721,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
     <td>
 
 <p>
-Upper 3 bytes of 32-bit integer.     </td>
+Upper 3 bytes of 32-bit signed integer.     </td>
   </tr>
 </table>
 <a name="p3" doxytag="RtAudio::RTAUDIO_SINT32"></a><p>
@@ -834,7 +731,7 @@ Upper 3 bytes of 32-bit integer.     </td>
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_SINT32<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_SINT32<code> [static]</code>
           </b></td>
         </tr>
 
@@ -850,7 +747,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
     <td>
 
 <p>
-    </td>
+32-bit signed integer.     </td>
   </tr>
 </table>
 <a name="p4" doxytag="RtAudio::RTAUDIO_FLOAT32"></a><p>
@@ -860,7 +757,7 @@ const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAU
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_FLOAT32<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_FLOAT32<code> [static]</code>
           </b></td>
         </tr>
 
@@ -886,7 +783,7 @@ Normalized between plus/minus 1.0.     </td>
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-const <a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_FLOAT64<code> [static]</code>
+const RTAUDIO_FORMAT RtAudio::RTAUDIO_FLOAT64<code> [static]</code>
           </b></td>
         </tr>
 
@@ -907,12 +804,12 @@ Normalized between plus/minus 1.0.     </td>
 </table>
 <hr>The documentation for this class was generated from the following file:<ul>
 <li><a class="el" href="RtAudio_8h-source.html">RtAudio.h</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index 6e789ffd11ceeeb4d3d4a8fe59717a1296be04e2..e44e39efc7425b72b703f966e8744e236ec75f57 100644 (file)
@@ -1,40 +1,27 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
 <h1>RtError Member List</h1>This is the complete list of members for <a class="el" href="classRtError.html">RtError</a>, including all inherited members.<ul>
-<li><a class="el" href="classRtError.html#s11s1">DEBUG_WARNING</a> enum value
-<li><a class="el" href="classRtError.html#s11s8">DRIVER_ERROR</a> enum value
-<li><a class="el" href="classRtError.html#n0">error_message</a>
-<code> [protected]</code><li><a class="el" href="classRtError.html#a4">getMessage</a>(void)
+<li><a class="el" href="classRtError.html#a4">getMessage</a>(void)
 <code> [inline, virtual]</code><li><a class="el" href="classRtError.html#a3">getType</a>(void)
-<code> [inline, virtual]</code><li><a class="el" href="classRtError.html#s11s4">INVALID_DEVICE</a> enum value
-<li><a class="el" href="classRtError.html#s11s7">INVALID_PARAMETER</a> enum value
-<li><a class="el" href="classRtError.html#s11s5">INVALID_STREAM</a> enum value
-<li><a class="el" href="classRtError.html#s11s6">MEMORY_ERROR</a> enum value
-<li><a class="el" href="classRtError.html#s11s3">NO_DEVICES_FOUND</a> enum value
-<li><a class="el" href="classRtError.html#a2">printMessage</a>(void)
+<code> [inline, virtual]</code><li><a class="el" href="classRtError.html#a2">printMessage</a>(void)
 <code> [virtual]</code><li><a class="el" href="classRtError.html#a0">RtError</a>(const char *p, TYPE tipe=RtError::UNSPECIFIED)
-<li><a class="el" href="classRtError.html#s11s9">SYSTEM_ERROR</a> enum value
-<li><a class="el" href="classRtError.html#s11s10">THREAD_ERROR</a> enum value
 <li><a class="el" href="classRtError.html#s11">TYPE</a> enum name
-<li><a class="el" href="classRtError.html#n1">type</a>
-<code> [protected]</code><li><a class="el" href="classRtError.html#s11s2">UNSPECIFIED</a> enum value
-<li><a class="el" href="classRtError.html#s11s0">WARNING</a> enum value
 <li><a class="el" href="classRtError.html#a1">~RtError</a>(void)
 <code> [virtual]</code></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index 1f59ff7aa16e2a4f1fc1664351362cf3ac0fa898..b81582af081b46993f5aad9f54f4c2dab7680785 100644 (file)
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtError  Class Reference</h1><code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
+<h1>RtError  Class Reference</h1>Exception handling class for <a class="el" href="classRtAudio.html">RtAudio</a>. 
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
 <p>
 <a href="classRtError-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
 <tr><td colspan=2><br><h2>Public Types</h2></td></tr>
 <tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#s11">TYPE</a> { <br>
-&nbsp;&nbsp;<a class="el" href="classRtError.html#s11s0">WARNING</a>, 
-<a class="el" href="classRtError.html#s11s1">DEBUG_WARNING</a>, 
-<a class="el" href="classRtError.html#s11s2">UNSPECIFIED</a>, 
-<a class="el" href="classRtError.html#s11s3">NO_DEVICES_FOUND</a>, 
+&nbsp;&nbsp;<b>WARNING</b>, 
+<b>DEBUG_WARNING</b>, 
+<b>UNSPECIFIED</b>, 
+<b>NO_DEVICES_FOUND</b>, 
 <br>
-&nbsp;&nbsp;<a class="el" href="classRtError.html#s11s4">INVALID_DEVICE</a>, 
-<a class="el" href="classRtError.html#s11s5">INVALID_STREAM</a>, 
-<a class="el" href="classRtError.html#s11s6">MEMORY_ERROR</a>, 
-<a class="el" href="classRtError.html#s11s7">INVALID_PARAMETER</a>, 
+&nbsp;&nbsp;<b>INVALID_DEVICE</b>, 
+<b>INVALID_STREAM</b>, 
+<b>MEMORY_ERROR</b>, 
+<b>INVALID_PARAMETER</b>, 
 <br>
-&nbsp;&nbsp;<a class="el" href="classRtError.html#s11s8">DRIVER_ERROR</a>, 
-<a class="el" href="classRtError.html#s11s9">SYSTEM_ERROR</a>, 
-<a class="el" href="classRtError.html#s11s10">THREAD_ERROR</a>
+&nbsp;&nbsp;<b>DRIVER_ERROR</b>, 
+<b>SYSTEM_ERROR</b>, 
+<b>THREAD_ERROR</b>
 <br>
  }</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Defined RtError types.</em></font><br><br></td></tr>
 <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
-<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a0">RtError</a> (const char *p, <a class="el" href="classRtError.html#s11">TYPE</a> tipe=RtError::UNSPECIFIED)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>The constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a1">~RtError</a> (void)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>The destructor.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a2">printMessage</a> (void)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>Prints "thrown" error message to stdout.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>virtual const <a class="el" href="classRtError.html#s11">TYPE</a>&amp;&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a3">getType</a> (void)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>Returns the "thrown" error message TYPE.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
-<tr><td nowrap align=right valign=top>virtual const char*&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a4">getMessage</a> (void)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>Returns the "thrown" error message string.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
-<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
-<tr><td nowrap align=right valign=top>char&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#n0">error_message</a> [256]</td></tr>
-<tr><td nowrap align=right valign=top><a class="el" href="classRtError.html#s11">TYPE</a>&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#n1">type</a></td></tr>
-</table>
-<hr><h2>Member Enumeration Documentation</h2>
-<a name="s11" doxytag="RtError::TYPE"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-enum RtError::TYPE
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-<dl compact><dt>
-<b>Enumeration values:</b><dd>
-<table border=0 cellspacing=2 cellpadding=0>
-<tr><td valign=top><a name="s11s0" doxytag="WARNING"></a><em>WARNING</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s1" doxytag="DEBUG_WARNING"></a><em>DEBUG_WARNING</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s2" doxytag="UNSPECIFIED"></a><em>UNSPECIFIED</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s3" doxytag="NO_DEVICES_FOUND"></a><em>NO_DEVICES_FOUND</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s4" doxytag="INVALID_DEVICE"></a><em>INVALID_DEVICE</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s5" doxytag="INVALID_STREAM"></a><em>INVALID_STREAM</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s6" doxytag="MEMORY_ERROR"></a><em>MEMORY_ERROR</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s7" doxytag="INVALID_PARAMETER"></a><em>INVALID_PARAMETER</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s8" doxytag="DRIVER_ERROR"></a><em>DRIVER_ERROR</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s9" doxytag="SYSTEM_ERROR"></a><em>SYSTEM_ERROR</em>
-&nbsp;</td><td>
-</td></tr>
-<tr><td valign=top><a name="s11s10" doxytag="THREAD_ERROR"></a><em>THREAD_ERROR</em>
-&nbsp;</td><td>
-</td></tr>
-</table>
-</dl>
-    </td>
-  </tr>
-</table>
-<hr><h2>Constructor &amp; Destructor Documentation</h2>
-<a name="a0" doxytag="RtError::RtError"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-RtError::RtError (
-          </b></td>
-          <td valign="bottom"><b>
-const char * <em>p</em>, 
-          </b></td>
-        </tr>
-        <tr>
-          <td></td>
-          <td><b>
-<a class="el" href="classRtError.html#s11">TYPE</a> <em>tipe</em> = RtError::UNSPECIFIED&nbsp;)
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-The constructor.
-<p>
-    </td>
-  </tr>
-</table>
-<a name="a1" doxytag="RtError::~RtError"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-RtError::~RtError (
-          </b></td>
-          <td valign="bottom"><b>
-void&nbsp;)<code> [virtual]</code>
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-The destructor.
-<p>
-    </td>
-  </tr>
-</table>
-<hr><h2>Member Function Documentation</h2>
-<a name="a2" doxytag="RtError::printMessage"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-void RtError::printMessage (
-          </b></td>
-          <td valign="bottom"><b>
-void&nbsp;)<code> [virtual]</code>
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-Prints "thrown" error message to stdout.
+<tr><td nowrap align=right valign=top><a name="a0" doxytag="RtError::RtError"></a>
+&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a0">RtError</a> (const char *p, <a class="el" href="classRtError.html#s11">TYPE</a> tipe=RtError::UNSPECIFIED)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>The constructor.</em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a name="a1" doxytag="RtError::~RtError"></a>
+virtual&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a1">~RtError</a> (void)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>The destructor.</em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a name="a2" doxytag="RtError::printMessage"></a>
+virtual void&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a2">printMessage</a> (void)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Prints "thrown" error message to stdout.</em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a name="a3" doxytag="RtError::getType"></a>
+virtual const <a class="el" href="classRtError.html#s11">TYPE</a>&amp;&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a3">getType</a> (void)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Returns the "thrown" error message TYPE.</em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a name="a4" doxytag="RtError::getMessage"></a>
+virtual const char*&nbsp;</td><td valign=bottom><a class="el" href="classRtError.html#a4">getMessage</a> (void)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Returns the "thrown" error message string.</em></font><br><br></td></tr>
+</table>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Exception handling class for <a class="el" href="classRtAudio.html">RtAudio</a>.
 <p>
-    </td>
-  </tr>
-</table>
-<a name="a3" doxytag="RtError::getType"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-const <a class="el" href="classRtError.html#s11">TYPE</a> &amp; RtError::getType (
-          </b></td>
-          <td valign="bottom"><b>
-void&nbsp;)<code> [inline, virtual]</code>
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-Returns the "thrown" error message TYPE.
-<p>
-    </td>
-  </tr>
-</table>
-<a name="a4" doxytag="RtError::getMessage"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-const char * RtError::getMessage (
-          </b></td>
-          <td valign="bottom"><b>
-void&nbsp;)<code> [inline, virtual]</code>
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
-<p>
-Returns the "thrown" error message string.
-<p>
-    </td>
-  </tr>
-</table>
-<hr><h2>Member Data Documentation</h2>
-<a name="n0" doxytag="RtError::error_message"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-char RtError::error_message<code> [protected]</code>
-          </b></td>
-        </tr>
-
-      </table>
-    </td>
-  </tr>
-</table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
-
+The RtError class is quite simple but it does allow errors to be "caught" by <a class="el" href="classRtError.html#s11">RtError::TYPE</a>. Almost all <a class="el" href="classRtAudio.html">RtAudio</a> methods can "throw" an RtError, most typically if an invalid stream identifier is supplied to a method or a driver error occurs. There are a number of cases within <a class="el" href="classRtAudio.html">RtAudio</a> where warning messages may be displayed but an exception is not thrown. There is a private <a class="el" href="classRtAudio.html">RtAudio</a> method, error(), which can be modified to globally control how these messages are handled and reported. 
 <p>
-    </td>
-  </tr>
-</table>
-<a name="n1" doxytag="RtError::type"></a><p>
-<table width="100%" cellpadding="2" cellspacing="0" border="0">
-  <tr>
-    <td class="md">
-      <table cellpadding="0" cellspacing="0" border="0">
-        <tr>
-          <td nowrap valign="top"><b> 
-<a class="el" href="classRtError.html#s11">TYPE</a> RtError::type<code> [protected]</code>
-          </b></td>
-        </tr>
+<hr>The documentation for this class was generated from the following file:<ul>
+<li><a class="el" href="RtAudio_8h-source.html">RtAudio.h</a></ul>
+<HR>
 
-      </table>
-    </td>
-  </tr>
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
 </table>
-<table cellspacing=5 cellpadding=0 border=0>
-  <tr>
-    <td>
-      &nbsp;
-    </td>
-    <td>
 
-<p>
-    </td>
-  </tr>
-</table>
-<hr>The documentation for this class was generated from the following file:<ul>
-<li><a class="el" href="RtAudio_8h-source.html">RtAudio.h</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+</BODY>
 </HTML>
index c07fb12861961b2ebaf66c4d51f9d77108ef1aa4..735f22cc3fc54d7041f2ab8346f141d61c22a3d8 100644 (file)
@@ -1,21 +1,21 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio File List</h1>Here is a list of all files with brief descriptions:<ul>
-<li><a class="el" href="RtAudio_8h.html">RtAudio.h</a> <a href="RtAudio_8h-source.html">[code]</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<h1>RtAudio File List</h1>Here is a list of all documented files with brief descriptions:<ul>
+<li><b>RtAudio.h</b> <a href="RtAudio_8h-source.html">[code]</a></ul>
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index a3342d3b0cd5fc464347269cb0fdd155b11e72db..5da04997c94214aa42a079a8158804d64695f232 100644 (file)
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio Compound Members</h1><center>
-<a href="#index_a">a</a>&nbsp;|&nbsp;<a href="#index_c">c</a>&nbsp;|&nbsp;<a href="#index_d">d</a>&nbsp;|&nbsp;<a href="#index_e">e</a>&nbsp;|&nbsp;<a href="#index_g">g</a>&nbsp;|&nbsp;<a href="#index_h">h</a>&nbsp;|&nbsp;<a href="#index_i">i</a>&nbsp;|&nbsp;<a href="#index_m">m</a>&nbsp;|&nbsp;<a href="#index_n">n</a>&nbsp;|&nbsp;<a href="#index_o">o</a>&nbsp;|&nbsp;<a href="#index_p">p</a>&nbsp;|&nbsp;<a href="#index_r">r</a>&nbsp;|&nbsp;<a href="#index_s">s</a>&nbsp;|&nbsp;<a href="#index_t">t</a>&nbsp;|&nbsp;<a href="#index_u">u</a>&nbsp;|&nbsp;<a href="#index_w">w</a>&nbsp;|&nbsp;<a href="#index_~">~</a></center>
-
-<p>
-Here is a list of all class members with links to the class documentation for each member:<a name="index_a"><h3>- a -</h3></a>
-<ul>
+<h1>RtAudio Compound Members</h1>Here is a list of all documented class members with links to the classes they belong to:<ul>
 <li>abortStream()
-: <a class="el" href="classRtAudio.html#a13">RtAudio</a></ul>
-<a name="index_c"><h3>- c -</h3></a>
-<ul>
-<li>cancelStreamCallback()
+: <a class="el" href="classRtAudio.html#a13">RtAudio</a><li>cancelStreamCallback()
 : <a class="el" href="classRtAudio.html#a5">RtAudio</a><li>closeStream()
-: <a class="el" href="classRtAudio.html#a10">RtAudio</a></ul>
-<a name="index_d"><h3>- d -</h3></a>
-<ul>
-<li>DEBUG_WARNING
-: <a class="el" href="classRtError.html#s11s1">RtError</a><li>DRIVER_ERROR
-: <a class="el" href="classRtError.html#s11s8">RtError</a></ul>
-<a name="index_e"><h3>- e -</h3></a>
-<ul>
-<li>error_message
-: <a class="el" href="classRtError.html#n0">RtError</a></ul>
-<a name="index_g"><h3>- g -</h3></a>
-<ul>
-<li>getDeviceCount()
+: <a class="el" href="classRtAudio.html#a10">RtAudio</a><li>getDeviceCount()
 : <a class="el" href="classRtAudio.html#a6">RtAudio</a><li>getDeviceInfo()
 : <a class="el" href="classRtAudio.html#a7">RtAudio</a><li>getMessage()
 : <a class="el" href="classRtError.html#a4">RtError</a><li>getStreamBuffer()
 : <a class="el" href="classRtAudio.html#a8">RtAudio</a><li>getType()
-: <a class="el" href="classRtError.html#a3">RtError</a></ul>
-<a name="index_h"><h3>- h -</h3></a>
-<ul>
-<li>hasDuplexSupport
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">RtAudio::RTAUDIO_DEVICE</a></ul>
-<a name="index_i"><h3>- i -</h3></a>
-<ul>
-<li>id
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m1">RtAudio::RTAUDIO_DEVICE</a><li>INVALID_DEVICE
-: <a class="el" href="classRtError.html#s11s4">RtError</a><li>INVALID_PARAMETER
-: <a class="el" href="classRtError.html#s11s7">RtError</a><li>INVALID_STREAM
-: <a class="el" href="classRtError.html#s11s5">RtError</a></ul>
-<a name="index_m"><h3>- m -</h3></a>
-<ul>
-<li>MAX_SAMPLE_RATES
-: <a class="el" href="classRtAudio.html#s3s2">RtAudio</a><li>maxDuplexChannels
+: <a class="el" href="classRtError.html#a3">RtError</a><li>hasDuplexSupport
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">RtAudio::RTAUDIO_DEVICE</a><li>isDefault
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">RtAudio::RTAUDIO_DEVICE</a><li>maxDuplexChannels
 : <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m5">RtAudio::RTAUDIO_DEVICE</a><li>maxInputChannels
 : <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">RtAudio::RTAUDIO_DEVICE</a><li>maxOutputChannels
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">RtAudio::RTAUDIO_DEVICE</a><li>MEMORY_ERROR
-: <a class="el" href="classRtError.html#s11s6">RtError</a><li>minDuplexChannels
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">RtAudio::RTAUDIO_DEVICE</a><li>minDuplexChannels
 : <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m8">RtAudio::RTAUDIO_DEVICE</a><li>minInputChannels
 : <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">RtAudio::RTAUDIO_DEVICE</a><li>minOutputChannels
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">RtAudio::RTAUDIO_DEVICE</a></ul>
-<a name="index_n"><h3>- n -</h3></a>
-<ul>
-<li>name
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">RtAudio::RTAUDIO_DEVICE</a><li>name
 : <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">RtAudio::RTAUDIO_DEVICE</a><li>nativeFormats
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">RtAudio::RTAUDIO_DEVICE</a><li>NO_DEVICES_FOUND
-: <a class="el" href="classRtError.html#s11s3">RtError</a><li>nSampleRates
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">RtAudio::RTAUDIO_DEVICE</a></ul>
-<a name="index_o"><h3>- o -</h3></a>
-<ul>
-<li>openStream()
-: <a class="el" href="classRtAudio.html#a3">RtAudio</a></ul>
-<a name="index_p"><h3>- p -</h3></a>
-<ul>
-<li>printMessage()
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m13">RtAudio::RTAUDIO_DEVICE</a><li>nSampleRates
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">RtAudio::RTAUDIO_DEVICE</a><li>openStream()
+: <a class="el" href="classRtAudio.html#a3">RtAudio</a><li>printMessage()
 : <a class="el" href="classRtError.html#a2">RtError</a><li>probed
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">RtAudio::RTAUDIO_DEVICE</a></ul>
-<a name="index_r"><h3>- r -</h3></a>
-<ul>
-<li>RtAudio()
-: <a class="el" href="classRtAudio.html#a1">RtAudio</a><li>RTAUDIO_CALLBACK
-: <a class="el" href="classRtAudio.html#s1">RtAudio</a><li>RTAUDIO_FLOAT32
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">RtAudio::RTAUDIO_DEVICE</a><li>RtAudio()
+: <a class="el" href="classRtAudio.html#a1">RtAudio</a><li>RTAUDIO_FLOAT32
 : <a class="el" href="classRtAudio.html#p4">RtAudio</a><li>RTAUDIO_FLOAT64
-: <a class="el" href="classRtAudio.html#p5">RtAudio</a><li>RTAUDIO_FORMAT
-: <a class="el" href="classRtAudio.html#s0">RtAudio</a><li>RTAUDIO_SINT16
+: <a class="el" href="classRtAudio.html#p5">RtAudio</a><li>RTAUDIO_SINT16
 : <a class="el" href="classRtAudio.html#p1">RtAudio</a><li>RTAUDIO_SINT24
 : <a class="el" href="classRtAudio.html#p2">RtAudio</a><li>RTAUDIO_SINT32
 : <a class="el" href="classRtAudio.html#p3">RtAudio</a><li>RTAUDIO_SINT8
 : <a class="el" href="classRtAudio.html#p0">RtAudio</a><li>RtError()
-: <a class="el" href="classRtError.html#a0">RtError</a></ul>
-<a name="index_s"><h3>- s -</h3></a>
-<ul>
-<li>sampleRates
-: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">RtAudio::RTAUDIO_DEVICE</a><li>setStreamCallback()
+: <a class="el" href="classRtError.html#a0">RtError</a><li>sampleRates
+: <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">RtAudio::RTAUDIO_DEVICE</a><li>setStreamCallback()
 : <a class="el" href="classRtAudio.html#a4">RtAudio</a><li>startStream()
 : <a class="el" href="classRtAudio.html#a11">RtAudio</a><li>stopStream()
 : <a class="el" href="classRtAudio.html#a12">RtAudio</a><li>streamWillBlock()
-: <a class="el" href="classRtAudio.html#a14">RtAudio</a><li>SYSTEM_ERROR
-: <a class="el" href="classRtError.html#s11s9">RtError</a></ul>
-<a name="index_t"><h3>- t -</h3></a>
-<ul>
-<li>THREAD_ERROR
-: <a class="el" href="classRtError.html#s11s10">RtError</a><li>tickStream()
+: <a class="el" href="classRtAudio.html#a14">RtAudio</a><li>tickStream()
 : <a class="el" href="classRtAudio.html#a9">RtAudio</a><li>TYPE
-: <a class="el" href="classRtError.html#s11">RtError</a><li>type
-: <a class="el" href="classRtError.html#n1">RtError</a></ul>
-<a name="index_u"><h3>- u -</h3></a>
-<ul>
-<li>UNSPECIFIED
-: <a class="el" href="classRtError.html#s11s2">RtError</a></ul>
-<a name="index_w"><h3>- w -</h3></a>
-<ul>
-<li>WARNING
-: <a class="el" href="classRtError.html#s11s0">RtError</a></ul>
-<a name="index_~"><h3>- ~ -</h3></a>
-<ul>
-<li>~RtAudio()
+: <a class="el" href="classRtError.html#s11">RtError</a><li>~RtAudio()
 : <a class="el" href="classRtAudio.html#a2">RtAudio</a><li>~RtError()
 : <a class="el" href="classRtError.html#a1">RtError</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
diff --git a/doc/html/globals.html b/doc/html/globals.html
deleted file mode 100644 (file)
index f7ded5a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
-<HR>
-<!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio File Members</h1><center>
-<a href="#index__">_</a></center>
-
-<p>
-Here is a list of all file members with links to the files they belong to:<a name="index__"><h3>- _ -</h3></a>
-<ul>
-<li>__RTAUDIO_H
-: <a class="el" href="RtAudio_8h.html#a0">RtAudio.h</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
-</HTML>
index e14fab0fbf06f545b3ba1c2620004a39bd414df8..dda6132b811f3e51ca77e3af2786a6d38852cbf4 100644 (file)
@@ -1,11 +1,11 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
 <h1>The <a class="el" href="classRtAudio.html">RtAudio</a> Tutorial</h1>
  
 <p>
 <ul>
-<li><a href="index.html#intro">Introduction</a><li><a href="index.html#start">Getting Started</a><li><a href="index.html#error">Error Handling</a><li><a href="index.html#probing">Probing Device Capabilities</a><li><a href="index.html#settings">Device Settings</a><li><a href="index.html#playbackb">Playback (blocking functionality)</a><li><a href="index.html#playbackc">Playback (callback functionality)</a><li><a href="index.html#recording">Recording</a><li><a href="index.html#duplex">Duplex Mode</a><li><a href="index.html#methods">Summary of Methods</a><li><a href="index.html#compiling">Compiling</a><li><a href="index.html#osnotes">OS Notes</a><li><a href="index.html#acknowledge">Acknowledgements</a></ul>
+<li><a href="index.html#intro">Introduction</a><li><a href="index.html#download">Download</a><li><a href="index.html#start">Getting Started</a><li><a href="index.html#error">Error Handling</a><li><a href="index.html#probing">Probing Device Capabilities</a><li><a href="index.html#settings">Device Settings</a><li><a href="index.html#playbackb">Playback (blocking functionality)</a><li><a href="index.html#playbackc">Playback (callback functionality)</a><li><a href="index.html#recording">Recording</a><li><a href="index.html#duplex">Duplex Mode</a><li><a href="index.html#methods">Summary of Methods</a><li><a href="index.html#compiling">Compiling</a><li><a href="index.html#debug">Debugging</a><li><a href="index.html#osnotes">OS Notes</a><li><a href="index.html#acknowledge">Acknowledgements</a><li><a href="index.html#license">License</a></ul>
 <a name="intro"><h2>Introduction</h2></a>
 
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> is a C++ class which provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA and OSS), SGI, and Windows operating systems. <a class="el" href="classRtAudio.html">RtAudio</a> significantly simplifies the process of interacting with computer audio hardware. It was designed with the following goals:
+<a class="el" href="classRtAudio.html">RtAudio</a> is a C++ class which provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA and OSS), Macintosh OS X, SGI, and Windows (DirectSound and ASIO) operating systems. <a class="el" href="classRtAudio.html">RtAudio</a> significantly simplifies the process of interacting with computer audio hardware. It was designed with the following goals:
 <p>
 <ul>
- <li>object oriented C++ design <li>simple, common API across all supported platforms <li>single independent header and source file for easy inclusion in programming projects (no libraries!) <li>blocking functionality <li>callback functionality <li>extensive audio device parameter control <li>audio device capability probing <li>automatic internal conversion for data format, channel number compensation, de-interleaving, and byte-swapping <li>control over multiple audio streams and devices with a single instance </ul>
+ <li>object oriented C++ design <li>simple, common API across all supported platforms <li>single independent header and source file for easy inclusion in programming projects <li>blocking functionality <li>callback functionality <li>extensive audio device parameter control <li>audio device capability probing <li>automatic internal conversion for data format, channel number compensation, de-interleaving, and byte-swapping <li>control over multiple audio streams and devices with a single instance </ul>
 
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> incorporates the concept of audio streams, which represent audio output (playback) and/or input (recording). Available audio devices and their capabilities can be enumerated and then specified when opening a stream. Multiple streams can run at the same time and, when allowed by the underlying audio API, a single device can serve multiple streams.
+<a class="el" href="classRtAudio.html">RtAudio</a> incorporates the concept of audio streams, which represent audio output (playback) and/or input (recording). Available audio devices and their capabilities can be enumerated and then specified when opening a stream. When allowed by the underlying audio API, multiple streams can run at the same time and a single device can serve multiple streams. See the <a href="index.html#osnotes">OS Notes</a> section for information specific to each of the supported audio APIs.
 <p>
 The <a class="el" href="classRtAudio.html">RtAudio</a> API provides both blocking (synchronous) and callback (asyncronous) functionality. Callbacks are typically used in conjunction with graphical user interfaces (GUI). Blocking functionality is often necessary for explicit control of multiple input/output stream synchronization or when audio must be synchronized with other system events.
 <p>
+<a name="download"><h2>Download</h2></a>
+
+<p>
+Latest Release (7 October 2002): <a href="http://www-ccrma.stanford.edu/~gary/rtaudio/release/rtaudio-2.1.tar.gz">Version 2.1 (165 kB tar/gzipped)</a>
+<p>
 <a name="start"><h2>Getting Started</h2></a>
 
 <p>
 The first thing that must be done when using <a class="el" href="classRtAudio.html">RtAudio</a> is to create an instance of the class. The default constructor <a class="el" href="classRtAudio.html#a0">RtAudio::RtAudio</a>() scans the underlying audio system to verify that at least one device is available. <a class="el" href="classRtAudio.html">RtAudio</a> often uses C++ exceptions to report errors, necessitating try/catch blocks around most member functions. The following code example demonstrates default object construction and destruction:
 <p>
-<div class="fragment"><pre><font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<div class="fragment"><pre><font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="keywordtype">int</font> main()<font class="keyword"></font>
 <font class="keyword"></font>{
@@ -65,7 +70,7 @@ A programmer may wish to query the available audio device capabilities before de
 <div class="fragment"><pre><font class="comment">// probe.cpp</font>
 
 <font class="preprocessor">#include &lt;iostream&gt;</font>
-<font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="keywordtype">int</font> main()<font class="keyword"></font>
 <font class="keyword"></font>{
@@ -85,7 +90,7 @@ A programmer may wish to query the available audio device capabilities before de
 
   <font class="comment">// Scan through devices for various capabilities</font>
   <a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a> info;
-  <font class="keywordflow">for</font> (<font class="keywordtype">int</font> i=0; i&lt;devices; i++) {
+  <font class="keywordflow">for</font> (<font class="keywordtype">int</font> i=1; i&lt;=devices; i++) {
 
     <font class="keywordflow">try</font> {
       audio-&gt;<a class="code" href="classRtAudio.html#a7">getDeviceInfo</a>(i, &amp;info);
@@ -106,11 +111,10 @@ A programmer may wish to query the available audio device capabilities before de
   <font class="keywordflow">return</font> 0;
 }</pre></div>
 <p>
-The RTAUDIO_DEVICE structure is defined in <a class="el" href="RtAudio_8h.html">RtAudio.h</a> and provides a variety of information useful in assessing the capabilities of a device:
+The RTAUDIO_DEVICE structure is defined in RtAudio.h and provides a variety of information useful in assessing the capabilities of a device:
 <p>
 <div class="fragment"><pre>  <font class="keyword">typedef</font> <font class="keyword">struct </font>{
     <font class="keywordtype">char</font> name[128];
-    DEVICE_ID id[2];                      <font class="comment">// No value reported by getDeviceInfo().</font>
     <font class="keywordtype">bool</font> probed;                          <font class="comment">// true if the device probe was successful.</font>
     <font class="keywordtype">int</font> maxOutputChannels;
     <font class="keywordtype">int</font> maxInputChannels;
@@ -118,7 +122,8 @@ The RTAUDIO_DEVICE structure is defined in <a class="el" href="RtAudio_8h.html">
     <font class="keywordtype">int</font> minOutputChannels;
     <font class="keywordtype">int</font> minInputChannels;
     <font class="keywordtype">int</font> minDuplexChannels;
-    <font class="keywordtype">bool</font> hasDuplexSupport;                <font class="comment">// true if duplex supported</font>
+    <font class="keywordtype">bool</font> hasDuplexSupport;                <font class="comment">// true if duplex mode is supported.</font>
+    <font class="keywordtype">bool</font> isDefault;                       <font class="comment">// true if this is the default output or input device.</font>
     <font class="keywordtype">int</font> nSampleRates;                     <font class="comment">// Number of discrete rates, or -1 if range supported.</font>
     <font class="keywordtype">double</font> sampleRates[MAX_SAMPLE_RATES]; <font class="comment">// Supported sample rates, or {min, max} if range.</font>
     RTAUDIO_FORMAT nativeFormats;
@@ -129,23 +134,23 @@ The following data formats are defined and fully supported by <a class="el" href
 <div class="fragment"><pre>  <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> RTAUDIO_FORMAT;
   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_SINT8;   <font class="comment">// Signed 8-bit integer</font>
   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_SINT16;  <font class="comment">// Signed 16-bit integer</font>
-  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_SINT24;  <font class="comment">// Signed 24-bit integer</font>
+  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_SINT24;  <font class="comment">// Signed 24-bit integer (upper 3 bytes of 32-bit signed integer.)</font>
   <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_SINT32;  <font class="comment">// Signed 32-bit integer</font>
-  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_FLOAT32; <font class="comment">// 32-bit float</font>
-  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_FLOAT64; <font class="comment">// 64-bit double</font></pre></div>
+  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_FLOAT32; <font class="comment">// 32-bit float normalized between +/- 1.0</font>
+  <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT  RTAUDIO_FLOAT64; <font class="comment">// 64-bit double normalized between +/- 1.0</font></pre></div>
 <p>
-The <em>nativeFormats</em> member of the <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a> structure is a bit mask of the above formats which are natively supported by the device. However, <a class="el" href="classRtAudio.html">RtAudio</a> will automatically provide format conversion if a particular format is not natively supported. When the <em>probed</em> member of the RTAUDIO_DEVICE structure is false, the remaining structure members are likely unknown and the device is probably unuseable.
+The <em>nativeFormats</em> member of the <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a> structure is a bit mask of the above formats which are natively supported by the device. However, <a class="el" href="classRtAudio.html">RtAudio</a> will automatically provide format conversion if a particular format is not natively supported. When the <em>probed</em> member of the RTAUDIO_DEVICE structure is false, the remaining structure members are undefined and the device is probably unuseable.
 <p>
 In general, the user need not be concerned with the minimum channel values reported in the RTAUDIO_DEVICE structure. While some audio devices may require a minimum channel value &gt; 1, <a class="el" href="classRtAudio.html">RtAudio</a> will provide automatic channel number compensation when the number of channels set by the user is less than that required by the device. Channel compensation is <em>NOT</em> possible when the number of channels set by the user is greater than that supported by the device.
 <p>
-It should be noted that the capabilities reported by a device driver or underlying audio API are not always accurate and/or may be dependent on a combination of device settings.
+It should be noted that the capabilities reported by a device driver or underlying audio API are not always accurate and/or may be dependent on a combination of device settings. For this reason, <a class="el" href="classRtAudio.html">RtAudio</a> does not rely on the reported values when attempting to open a stream.
 <p>
 <a name="settings"><h2>Device Settings</h2></a>
 
 <p>
-The next step in using <a class="el" href="classRtAudio.html">RtAudio</a> is to open a stream with a particular set of device settings.
+The next step in using <a class="el" href="classRtAudio.html">RtAudio</a> is to open a stream with particular device and parameter settings.
 <p>
-<div class="fragment"><pre><font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<div class="fragment"><pre><font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="keywordtype">int</font> main()<font class="keyword"></font>
 <font class="keyword"></font>{
@@ -174,11 +179,11 @@ The next step in using <a class="el" href="classRtAudio.html">RtAudio</a> is to
   <font class="keywordflow">return</font> 0;
 }</pre></div>
 <p>
-The <a class="el" href="classRtAudio.html#a3">RtAudio::openStream</a>() method attempts to open a stream with a specified set of parameter values. When successful, a stream identifier is returned. In this case, we attempt to open a playback stream on device 0 with two channels, 32-bit floating point data, a sample rate of 44100 Hz, a frame rate of 256 sample frames per read/write, and 4 internal device buffers. When device = 0, <a class="el" href="classRtAudio.html">RtAudio</a> first attempts to open the default audio device with the given parameters. If that attempt fails, an attempt is made to find a device or set of devices which will meet the given parameters. If all attempts are unsuccessful, an <a class="el" href="classRtError.html">RtError</a> is thrown. When a non-zero device value is specified, an attempt is made to open that device only.
+The <a class="el" href="classRtAudio.html#a3">RtAudio::openStream</a>() method attempts to open a stream with a specified set of parameter values. When successful, a stream identifier is returned. In this case, we attempt to open a two channel playback stream with the default output device, 32-bit floating point data, a sample rate of 44100 Hz, a frame rate of 256 sample frames per read/write, and 4 internal device buffers. When device = 0, <a class="el" href="classRtAudio.html">RtAudio</a> first attempts to open the default audio device with the given parameters. If that attempt fails, <a class="el" href="classRtAudio.html">RtAudio</a> searches through the remaining available devices in an effort to find a device which will meet the given parameters. If all attempts are unsuccessful, an <a class="el" href="classRtError.html">RtError</a> is thrown. When a non-zero device value is specified, an attempt is made to open that device only (device = 1 specifies the first identified device, as reported by <a class="el" href="classRtAudio.html#a7">RtAudio::getDeviceInfo</a>()).
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> provides four signed integer and two floating point data formats which can be specified using the <a class="el" href="classRtAudio.html#s0">RtAudio::RTAUDIO_FORMAT</a> parameter values mentioned earlier. If the opened device does not natively support the given format, <a class="el" href="classRtAudio.html">RtAudio</a> will automatically perform the necessary data format conversion.
+<a class="el" href="classRtAudio.html">RtAudio</a> provides four signed integer and two floating point data formats which can be specified using the RtAudio::RTAUDIO_FORMAT parameter values mentioned earlier. If the opened device does not natively support the given format, <a class="el" href="classRtAudio.html">RtAudio</a> will automatically perform the necessary data format conversion.
 <p>
-The <em>bufferSize</em> parameter specifies the desired number of sample frames which will be written to and/or read from a device per write/read operation. The <em>nBuffers</em> parameter is used in setting the underlying device buffer parameters. Both the <em>bufferSize</em> and <em>nBuffers</em> parameters can be used to control stream latency though there is no guarantee that the passed values will be those used by a device. In general, lower values for both parameters will produce less latency but perhaps less robust performance. Both parameters can be specified with values of zero, in which case the smallest allowable values will be used. The <em>bufferSize</em> parameter is passed as a pointer and the actual value used by the stream is set during the device setup procedure. <em>bufferSize</em> values should be a power of two. Optimal and allowable buffer values tend to vary between systems and devices. Check the <a href="index.html#osnotes">OS Notes</a> section for general guidelines.
+The <em>bufferSize</em> parameter specifies the desired number of sample frames which will be written to and/or read from a device per write/read operation. The <em>nBuffers</em> parameter is used in setting the underlying device buffer parameters. Both the <em>bufferSize</em> and <em>nBuffers</em> parameters can be used to control stream latency though there is no guarantee that the passed values will be those used by a device (the <em>nBuffers</em> parameter is ignored when using the OS X CoreAudio and the Windows ASIO APIs). In general, lower values for both parameters will produce less latency but perhaps less robust performance. Both parameters can be specified with values of zero, in which case the smallest allowable values will be used. The <em>bufferSize</em> parameter is passed as a pointer and the actual value used by the stream is set during the device setup procedure. <em>bufferSize</em> values should be a power of two. Optimal and allowable buffer values tend to vary between systems and devices. Check the <a href="index.html#osnotes">OS Notes</a> section for general guidelines.
 <p>
 As noted earlier, the device capabilities reported by a driver or underlying audio API are not always accurate and/or may be dependent on a combination of device settings. Because of this, <a class="el" href="classRtAudio.html">RtAudio</a> does not attempt to query a device's capabilities or use previously reported values when opening a device. Instead, <a class="el" href="classRtAudio.html">RtAudio</a> simply attempts to set the given parameters on a specified device and then checks whether the setup is successful or not.
 <p>
@@ -189,7 +194,7 @@ Once the device is open for playback, there are only a few final steps necessary
 <p>
 <div class="fragment"><pre><font class="comment">// playback.cpp</font>
 
-<font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="keywordtype">int</font> main()<font class="keyword"></font>
 <font class="keyword"></font>{
@@ -260,7 +265,7 @@ Once the device is open for playback, there are only a few final steps necessary
 <p>
 The first thing to notice in this example is that we attempt to open a stream during class instantiation with an overloaded constructor. This constructor simply combines the functionality of the default constructor, used earlier, and the <a class="el" href="classRtAudio.html#a3">RtAudio::openStream</a>() method. Again, we have specified a device value of 0, indicating that the default or first available device meeting the given parameters should be used. The integer identifier of the opened stream is returned via the <em>stream</em> pointer value. An attempt is made to open the stream with the specified <em>bufferSize</em> value. However, it is possible that the device will not accept this value, in which case the closest allowable size is used and returned via the pointer value. The constructor can fail if no available devices are found, or a memory allocation or device driver error occurs. Note that you should not call the <a class="el" href="classRtAudio.html">RtAudio</a> destructor if an exception is thrown during instantiation.
 <p>
-Because <a class="el" href="classRtAudio.html">RtAudio</a> can be used to simultaneously control more than a single stream, it is necessary that the stream identifier be provided to nearly all public methods. Assuming the constructor is successful, it is necessary to get a pointer to the buffer, provided by <a class="el" href="classRtAudio.html">RtAudio</a>, for use in feeding data to/from the opened stream. Note that the user should <em>NOT</em> attempt to deallocate the stream buffer memory ... memory management for the stream buffer will be automatically controlled by <a class="el" href="classRtAudio.html">RtAudio</a>. After starting the stream with <a class="el" href="classRtAudio.html#a11">RtAudio::startStream</a>(), one simply fills that buffer, which is of length equal to the returned <em>bufferSize</em> value, with interleaved audio data (in the specified format) for playback. Finally, a call to the <a class="el" href="classRtAudio.html#a9">RtAudio::tickStream</a>() routine triggers a blocking write call for the stream.
+Because <a class="el" href="classRtAudio.html">RtAudio</a> can typically be used to simultaneously control more than a single stream, it is necessary that the stream identifier be provided to nearly all public methods. Assuming the constructor is successful, it is necessary to get a pointer to the buffer, provided by <a class="el" href="classRtAudio.html">RtAudio</a>, for use in feeding data to/from the opened stream. Note that the user should <em>NOT</em> attempt to deallocate the stream buffer memory ... memory management for the stream buffer will be automatically controlled by <a class="el" href="classRtAudio.html">RtAudio</a>. After starting the stream with <a class="el" href="classRtAudio.html#a11">RtAudio::startStream</a>(), one simply fills that buffer, which is of length equal to the returned <em>bufferSize</em> value, with interleaved audio data (in the specified format) for playback. Finally, a call to the <a class="el" href="classRtAudio.html#a9">RtAudio::tickStream</a>() routine triggers a blocking write call for the stream.
 <p>
 In general, one should call the <a class="el" href="classRtAudio.html#a12">RtAudio::stopStream</a>() and <a class="el" href="classRtAudio.html#a10">RtAudio::closeStream</a>() methods after finishing with a stream. However, both methods will implicitly be called during object destruction if necessary.
 <p>
@@ -270,7 +275,7 @@ In general, one should call the <a class="el" href="classRtAudio.html#a12">RtAud
 The primary difference in using <a class="el" href="classRtAudio.html">RtAudio</a> with callback functionality involves the creation of a user-defined callback function. Here is an example which produces a sawtooth waveform for playback.
 <p>
 <div class="fragment"><pre><font class="preprocessor">#include &lt;iostream&gt;</font>
-<font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="comment">// Two-channel sawtooth wave generator.</font>
 <font class="keywordtype">int</font> sawtooth(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> buffer_size, <font class="keywordtype">void</font> *data)<font class="keyword"></font>
@@ -344,11 +349,11 @@ The primary difference in using <a class="el" href="classRtAudio.html">RtAudio</
   <font class="keywordflow">return</font> 0;
 }</pre></div>
 <p>
-After opening the device in exactly the same way as the previous example (except with a data format change), we must set our callback function for the stream using <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>(). This method will spawn a new process (or thread) which automatically calls the callback function when more data is needed. Note that the callback function is called only when the stream is "running" (between calls to the <a class="el" href="classRtAudio.html#a11">RtAudio::startStream</a>() and <a class="el" href="classRtAudio.html#a12">RtAudio::stopStream</a>() methods). The last argument to <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>() is a pointer to arbitrary data that you wish to access from within your callback function.
+After opening the device in exactly the same way as the previous example (except with a data format change), we must set our callback function for the stream using <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>(). When the underlying audio API uses blocking calls (OSS, ALSA, SGI, and Windows DirectSound), this method will spawn a new process (or thread) which automatically calls the callback function when more data is needed. Callback-based audio APIs (OS X CoreAudio and ASIO) implement their own event notification schemes. Note that the callback function is called only when the stream is "running" (between calls to the <a class="el" href="classRtAudio.html#a11">RtAudio::startStream</a>() and <a class="el" href="classRtAudio.html#a12">RtAudio::stopStream</a>() methods). The last argument to <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>() is a pointer to arbitrary data that you wish to access from within your callback function.
 <p>
 In this example, we stop the stream with an explicit call to <a class="el" href="classRtAudio.html#a12">RtAudio::stopStream</a>(). When using callback functionality, it is also possible to stop a stream by returning a non-zero value from the callback function.
 <p>
-Once set with <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>, the callback process will continue to run for the life of the stream (until the stream is closed with <a class="el" href="classRtAudio.html#a10">RtAudio::closeStream</a>() or the <a class="el" href="classRtAudio.html">RtAudio</a> instance is deleted). It is possible to disassociate a callback function and cancel its process for an open stream using the <a class="el" href="classRtAudio.html#a5">RtAudio::cancelStreamCallback</a>() method. The stream can then be used with blocking functionality or a new callback can be associated with it.
+Once set with <a class="el" href="classRtAudio.html#a4">RtAudio::setStreamCallback</a>, the callback process exists for the life of the stream (until the stream is closed with <a class="el" href="classRtAudio.html#a10">RtAudio::closeStream</a>() or the <a class="el" href="classRtAudio.html">RtAudio</a> instance is deleted). It is possible to disassociate a callback function and cancel its process for an open stream using the <a class="el" href="classRtAudio.html#a5">RtAudio::cancelStreamCallback</a>() method. The stream can then be used with blocking functionality or a new callback can be associated with it.
 <p>
 <a name="recording"><h2>Recording</h2></a>
 
@@ -357,7 +362,7 @@ Using <a class="el" href="classRtAudio.html">RtAudio</a> for audio input is almo
 <p>
 <div class="fragment"><pre><font class="comment">// record.cpp</font>
 
-<font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="keywordtype">int</font> main()<font class="keyword"></font>
 <font class="keyword"></font>{
@@ -436,7 +441,7 @@ Finally, it is easy to use <a class="el" href="classRtAudio.html">RtAudio</a> fo
 <div class="fragment"><pre><font class="comment">// duplex.cpp</font>
 
 <font class="preprocessor">#include &lt;iostream&gt;</font>
-<font class="preprocessor">#include "<a class="code" href="RtAudio_8h.html">RtAudio.h</a>"</font>
+<font class="preprocessor">#include "RtAudio.h"</font>
 
 <font class="comment">// Pass-through function.</font>
 <font class="keywordtype">int</font> pass(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> buffer_size, <font class="keywordtype">void</font> *)<font class="keyword"></font>
@@ -501,7 +506,7 @@ When an <a class="el" href="classRtAudio.html">RtAudio</a> stream is running in
 <p>
 As we see with this example, the write-read sequence of operations does not preclude the use of <a class="el" href="classRtAudio.html">RtAudio</a> in situations where input data is first processed and then output through a duplex stream. When the stream buffer is first allocated, it is initialized with zeros, which produces no audible result when output to the device. In this example, anything recorded by the audio stream input will be played out during the next round of audio processing.
 <p>
-Note that duplex operation can also be achieved by opening one output stream and one input stream using the same or different devices. However, there may be timing problems when attempting to use two different devices, due to possible device clock variations. This becomes even more difficult to achieve using two separate callback streams because it is not possible to explicitly control the calling order of the callback functions.
+Note that duplex operation can also be achieved by opening one output stream and one input stream using the same or different devices. However, there may be timing problems when attempting to use two different devices, due to possible device clock variations, unless a common external "sync" is provided. This becomes even more difficult to achieve using two separate callback streams because it is not possible to <em>explicitly</em> control the calling order of the callback functions.
 <p>
 <a name="methods"><h2>Summary of Methods</h2></a>
 
@@ -519,21 +524,28 @@ In order to compile <a class="el" href="classRtAudio.html">RtAudio</a> for a spe
 <p>
 
 <p>
-  <table border=1 cellspacing=3 cellpadding=3><tr><td><b>OS:</b> </td><td><b>Audio API:</b> </td><td><b>Preprocessor Definition:</b> </td><td><b>Library:</b> </td><td><b>Example Compiler Statement:</b>   </td></tr>
-<tr><td>Linux </td><td>ALSA </td><td>__LINUX_ALSA__ </td><td><code>libasound, libpthread</code> </td><td><code>g++ -Wall -D__LINUX_ALSA__ -o probe probe.cpp RtAudio.cpp -lasound -lpthread</code>   </td></tr>
-<tr><td>Linux </td><td>OSS </td><td>__LINUX_OSS__ </td><td><code>libpthread</code> </td><td><code>g++ -Wall -D__LINUX_OSS__ -o probe probe.cpp RtAudio.cpp -lpthread</code>   </td></tr>
-<tr><td>Irix </td><td>AL </td><td>__IRIX_AL__ </td><td><code>libaudio, libpthread</code> </td><td><code>CC -Wall -D__IRIX_AL__ -o probe probe.cpp RtAudio.cpp -laudio -lpthread</code>   </td></tr>
-<tr><td>Windows </td><td>Direct Sound </td><td>__WINDOWS_DS__ </td><td><code>dsound.lib (ver. 5.0 or higher), multithreaded</code> </td><td><em>compiler specific</em>  </td></table>
+  <table border=1 cellspacing=3 cellpadding=3><tr><td><b>OS:</b> </td><td><b>Audio API:</b> </td><td><b>Preprocessor Definition:</b> </td><td><b>Library or Framework:</b> </td><td><b>Example Compiler Statement:</b>   </td></tr>
+<tr><td>Linux </td><td>ALSA </td><td>__LINUX_ALSA__ </td><td><code>asound, pthread</code> </td><td><code>g++ -Wall -D__LINUX_ALSA__ -o probe probe.cpp RtAudio.cpp -lasound -lpthread</code>   </td></tr>
+<tr><td>Linux </td><td>OSS </td><td>__LINUX_OSS__ </td><td><code>pthread</code> </td><td><code>g++ -Wall -D__LINUX_OSS__ -o probe probe.cpp RtAudio.cpp -lpthread</code>   </td></tr>
+<tr><td>Macintosh OS X </td><td>CoreAudio </td><td>__MACOSX_CORE__ </td><td><code>pthread, stdc++, CoreAudio</code> </td><td><code>cc -Wall -D__MACOSX_CORE__ -o probe probe.cpp RtAudio.cpp -framework CoreAudio -lstdc++ -lpthread</code>   </td></tr>
+<tr><td>Irix </td><td>AL </td><td>__IRIX_AL__ </td><td><code>audio, pthread</code> </td><td><code>CC -Wall -D__IRIX_AL__ -o probe probe.cpp RtAudio.cpp -laudio -lpthread</code>   </td></tr>
+<tr><td>Windows </td><td>Direct Sound </td><td>__WINDOWS_DS__ </td><td><code>dsound.lib (ver. 5.0 or higher), multithreaded</code> </td><td><em>compiler specific</em>   </td></tr>
+<tr><td>Windows </td><td>ASIO </td><td>__WINDOWS_ASIO__ </td><td><em>various ASIO header and source files</em> </td><td><em>compiler specific</em>  </td></table>
  
 <p>
 
 <p>
-The example compiler statements above could be used to compile the <code>probe.cpp</code> example file, assuming that <code>probe.cpp</code>, <code><a class="el" href="RtAudio_8h.html">RtAudio.h</a></code>, and <code>RtAudio.cpp</code> all exist in the same directory.
+The example compiler statements above could be used to compile the <code>probe.cpp</code> example file, assuming that <code>probe.cpp</code>, <code>RtAudio.h</code>, and <code>RtAudio.cpp</code> all exist in the same directory.
+<p>
+<a name="debug"><h2>Debugging</h2></a>
+
+<p>
+If you are having problems getting <a class="el" href="classRtAudio.html">RtAudio</a> to run on your system, try passing the preprocessor definition <code>__RTAUDIO_DEBUG__</code> to the compiler (or uncomment the definition at the bottom of RtAudio.h). A variety of warning messages will be displayed which may help in determining the problem.
 <p>
 <a name="osnotes"><h2>OS Notes</h2></a>
 
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> is designed to provide a common API across the various supported operating systems and audio libraries. Despite that, however, some issues need to be mentioned with regard to each.
+<a class="el" href="classRtAudio.html">RtAudio</a> is designed to provide a common API across the various supported operating systems and audio libraries. Despite that, some issues need to be mentioned with regard to each.
 <p>
 <a name="linux"><h3>Linux:</h3></a>
 
@@ -542,31 +554,57 @@ The example compiler statements above could be used to compile the <code>probe.c
 <p>
 The ALSA library includes OSS emulation support. That means that you can run programs compiled for the OSS API even when using the ALSA drivers and library. It should be noted however that OSS emulation under ALSA is not perfect. Specifically, channel number queries seem to consistently produce invalid results. While OSS emulation is successful for the majority of <a class="el" href="classRtAudio.html">RtAudio</a> tests, it is recommended that the native ALSA implementation of <a class="el" href="classRtAudio.html">RtAudio</a> be used on systems which have ALSA drivers installed.
 <p>
-The ALSA implementation of <a class="el" href="classRtAudio.html">RtAudio</a> makes no use of the ALSA "plug" interface. All necessary data format conversions, channel compensation, deinterleaving, and byte-swapping is handled by internal <a class="el" href="classRtAudio.html">RtAudio</a> routines.
+The ALSA implementation of <a class="el" href="classRtAudio.html">RtAudio</a> makes no use of the ALSA "plug" interface. All necessary data format conversions, channel compensation, de-interleaving, and byte-swapping is handled by internal <a class="el" href="classRtAudio.html">RtAudio</a> routines.
+<p>
+<a name="macosx"><h3>Macintosh OS X (CoreAudio):</h3></a>
+
+<p>
+The Apple CoreAudio API is based on a callback scheme. <a class="el" href="classRtAudio.html">RtAudio</a> provides blocking functionality, in addition to callback functionality, within the context of that behavior. CoreAudio is designed to use a separate callback procedure for each of its audio devices. A single <a class="el" href="classRtAudio.html">RtAudio</a> duplex stream using two different devices is supported, though it cannot be guaranteed to always behave correctly because we cannot synchronize these two callbacks. This same functionality can be achieved with better synchrony by opening two separate streams for the devices and using <a class="el" href="classRtAudio.html">RtAudio</a> blocking calls (i.e. <a class="el" href="classRtAudio.html#a9">RtAudio::tickStream</a>()). The <em>numberOfBuffers</em> parameter to the <a class="el" href="classRtAudio.html#a3">RtAudio::openStream</a>() function has no affect in this implementation. It is not currently possible to have multiple simultaneous <a class="el" href="classRtAudio.html">RtAudio</a> streams accessing the same device.
 <p>
 <a name="irix"><h3>Irix (SGI):</h3></a>
 
 <p>
 The Irix version of <a class="el" href="classRtAudio.html">RtAudio</a> was written and tested on an SGI Indy running Irix version 6.5.4 and the newer "al" audio library. <a class="el" href="classRtAudio.html">RtAudio</a> does not compile under Irix version 6.3, mainly because the C++ compiler is too old. Despite the relatively slow speed of the Indy, <a class="el" href="classRtAudio.html">RtAudio</a> was found to behave quite well and input/output latency was very good. No problems were found with respect to using the pthread library.
 <p>
-<a name="windows"><h3>Windows:</h3></a>
+<a name="windowsds"><h3>Windows (DirectSound):</h3></a>
+
+<p>
+In order to compile <a class="el" href="classRtAudio.html">RtAudio</a> under Windows for the DirectSound API, you must have the header and source files for DirectSound version 5.0 or higher. As far as I know, there is no DirectSoundCapture support for Windows NT. Audio output latency with DirectSound can be reasonably good (on the order of 20 milliseconds). On the other hand, input audio latency tends to be terrible (100 milliseconds or more). Further, DirectSound drivers tend to crash easily when experimenting with buffer parameters. On my system, I found it necessary to use values around nBuffers = 8 and bufferSize = 512 to avoid crashes. <a class="el" href="classRtAudio.html">RtAudio</a> was developed with Visual C++ version 6.0. I was forced in several instances to modify code in order to get it to compile under the non-standard version of C++ that Microsoft so unprofessionally implemented. Unfortunately, it appears they are continuing to undermine the C++ standard with more recent compiler releases.
+<p>
+<a name="windowsasio"><h3>Windows (ASIO):</h3></a>
 
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> under Windows is written using the DirectSound API. In order to compile <a class="el" href="classRtAudio.html">RtAudio</a> under Windows, you must have the header and source files for DirectSound version 5.0 or higher. As far as I know, there is no DirectSoundCapture support for Windows NT (in which case, you cannot use <a class="el" href="classRtAudio.html">RtAudio</a>). Audio output latency with DirectSound can be reasonably good (on the order of 20 milliseconds). On the other hand, input audio latency tends to be terrible (100 milliseconds or more). Further, DirectSound drivers tend to crash easily when experimenting with buffer parameters. On my system, I found it necessary to use values around nBuffers = 8 and bufferSize = 512 to avoid crashing my system. <a class="el" href="classRtAudio.html">RtAudio</a> was developed with Visual C++ version 6.0. I was forced in several instances to modify code in order to get it to compile under the non-standard version of C++ that Microsoft so unprofessionally implemented. We can only hope that the developers of Visual C++ 7.0 will have time to read the C++ standard.
+The Steinberg ASIO audio API is based on a callback scheme. In addition, the API allows only a single device driver to be loaded and accessed at a time. Therefore, it is not possible to have multiple simultaneous <a class="el" href="classRtAudio.html">RtAudio</a> streams running concurrently with this API. ASIO device drivers must be supplied by audio hardware manufacturers, though ASIO emulation is possible on top of systems with DirectSound drivers. The <em>numberOfBuffers</em> parameter to the <a class="el" href="classRtAudio.html#a3">RtAudio::openStream</a>() function has no affect in this implementation.
+<p>
+A number of ASIO source and header files are required for use with <a class="el" href="classRtAudio.html">RtAudio</a>. Specifically, an <a class="el" href="classRtAudio.html">RtAudio</a> project must include the following files: <code>asio.h,cpp; asiodrivers.h,cpp; asiolist.h,cpp; asiodrvr.h; asiosys.h; ginclude.h; iasiodrv.h</code>. See the <code>/tests/asio/</code> directory for example Visual C++ 6.0 projects.
 <p>
 <a name="acknowledge"><h2>Acknowledgements</h2></a>
 
 <p>
 The <a class="el" href="classRtAudio.html">RtAudio</a> API incorporates many of the concepts developed in the <a href="http://www.portaudio.com/">PortAudio</a> project by Phil Burk and Ross Bencina. Early development also incorporated ideas from Bill Schottstaedt's <a href="http://www-ccrma.stanford.edu/software/snd/sndlib/">sndlib</a>. The CCRMA <a href="http://www-ccrma.stanford.edu/groups/soundwire/">SoundWire group</a> provided valuable feedback during the API proposal stages.
 <p>
-<a class="el" href="classRtAudio.html">RtAudio</a> was slowly developed over the course of many months while in residence at the <a href="http://www.iua.upf.es/">Institut Universitari de L'Audiovisual (IUA)</a> in Barcelona, Spain, the <a href="http://www.acoustics.hut.fi/">Laboratory of Acoustics and Audio Signal Processing</a> at the Helsinki University of Technology, Finland, and the <a href="http://www-ccrma.stanford.edu/">Center for Computer Research in Music and Acoustics (CCRMA)</a> at <a href="http://www.stanford.edu/">Stanford University</a>. This work was supported in part by the United States Air Force Office of Scientific Research (grant #F49620-99-1-0293).
+<a class="el" href="classRtAudio.html">RtAudio</a>, version 2.0, was slowly developed over the course of many months while in residence at the <a href="http://www.iua.upf.es/">Institut Universitari de L'Audiovisual (IUA)</a> in Barcelona, Spain, the <a href="http://www.acoustics.hut.fi/">Laboratory of Acoustics and Audio Signal Processing</a> at the Helsinki University of Technology, Finland, and the <a href="http://www-ccrma.stanford.edu/">Center for Computer Research in Music and Acoustics (CCRMA)</a> at <a href="http://www.stanford.edu/">Stanford University</a>. This work was supported in part by the United States Air Force Office of Scientific Research (grant #F49620-99-1-0293).
+<p>
+<a name="license"><h2>License</h2></a>
+
+<p>
+<a class="el" href="classRtAudio.html">RtAudio</a>: a realtime audio i/o C++ class<br>
+ Copyright (c) 2001-2002 Gary P. Scavone
+<p>
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+<p>
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 <p>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+Any person wishing to distribute modifications to the Software is requested to send the modifications to the original developer so that they can be incorporated into the canonical version.
+<p>
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+<p>
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index 5182b054e727866324c6765dc06392f45e8563d0..21141e944c260e9aa3cb7aed1decb8d4cdcbd790 100644 (file)
@@ -1,16 +1,16 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
 <h1>RtAudio::RTAUDIO_DEVICE Member List</h1>This is the complete list of members for <a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html">RtAudio::RTAUDIO_DEVICE</a>, including all inherited members.<ul>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">hasDuplexSupport</a>
-<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m1">id</a>
+<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">isDefault</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m5">maxDuplexChannels</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">maxInputChannels</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">maxOutputChannels</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">minInputChannels</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">minOutputChannels</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">name</a>
-<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">nativeFormats</a>
-<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">nSampleRates</a>
+<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m13">nativeFormats</a>
+<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">nSampleRates</a>
 <li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">probed</a>
-<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">sampleRates</a>
+<li><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">sampleRates</a>
 </ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
index 63a4ef3a1268538704f00b27ab971073513338f5..837c218ff4aaec3dad98e7b284585d14c41f083f 100644 (file)
@@ -1,19 +1,21 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
+<HTML>
+<HEAD>
+<TITLE>The RtAudio Tutorial</TITLE>
+<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<CENTER>
+<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
 <HR>
 <!-- Generated by Doxygen 1.2.8.1 -->
-<h1>RtAudio::RTAUDIO_DEVICE  Struct Reference</h1><code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
+<h1>RtAudio::RTAUDIO_DEVICE  Struct Reference</h1>The public device information structure for passing queried values. 
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="RtAudio_8h-source.html">RtAudio.h</a>&gt;</code>
 <p>
 <a href="structRtAudio_1_1RTAUDIO__DEVICE-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
 <tr><td nowrap align=right valign=top>char&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">name</a> [128]</td></tr>
-<tr><td nowrap align=right valign=top>DEVICE_ID&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m1">id</a> [2]</td></tr>
 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">probed</a></td></tr>
 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">maxOutputChannels</a></td></tr>
 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">maxInputChannels</a></td></tr>
 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">minInputChannels</a></td></tr>
 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m8">minDuplexChannels</a></td></tr>
 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">hasDuplexSupport</a></td></tr>
-<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">nSampleRates</a></td></tr>
-<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">sampleRates</a> [MAX_SAMPLE_RATES]</td></tr>
-<tr><td nowrap align=right valign=top><a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a>&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">nativeFormats</a></td></tr>
+<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">isDefault</a></td></tr>
+<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">nSampleRates</a></td></tr>
+<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">sampleRates</a> [MAX_SAMPLE_RATES]</td></tr>
+<tr><td nowrap align=right valign=top>RTAUDIO_FORMAT&nbsp;</td><td valign=bottom><a class="el" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m13">nativeFormats</a></td></tr>
 </table>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+The public device information structure for passing queried values.
+<p>
 <hr><h2>Member Data Documentation</h2>
 <a name="m0" doxytag="RtAudio::RTAUDIO_DEVICE::name"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
@@ -50,17 +56,17 @@ char RtAudio::RTAUDIO_DEVICE::name
     <td>
 
 <p>
-    </td>
+Character string device identifier.     </td>
   </tr>
 </table>
-<a name="m1" doxytag="RtAudio::RTAUDIO_DEVICE::id"></a><p>
+<a name="m2" doxytag="RtAudio::RTAUDIO_DEVICE::probed"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-DEVICE_ID RtAudio::RTAUDIO_DEVICE::id
+bool RtAudio::RTAUDIO_DEVICE::probed
           </b></td>
         </tr>
 
@@ -76,17 +82,17 @@ DEVICE_ID RtAudio::RTAUDIO_DEVICE::id
     <td>
 
 <p>
-No value reported by <a class="el" href="classRtAudio.html#a7">getDeviceInfo</a>().     </td>
+true if the device capabilities were successfully probed.     </td>
   </tr>
 </table>
-<a name="m2" doxytag="RtAudio::RTAUDIO_DEVICE::probed"></a><p>
+<a name="m3" doxytag="RtAudio::RTAUDIO_DEVICE::maxOutputChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-bool RtAudio::RTAUDIO_DEVICE::probed
+int RtAudio::RTAUDIO_DEVICE::maxOutputChannels
           </b></td>
         </tr>
 
@@ -102,17 +108,17 @@ bool RtAudio::RTAUDIO_DEVICE::probed
     <td>
 
 <p>
-true if the device capabilities were successfully probed.     </td>
+Maximum output channels supported by device.     </td>
   </tr>
 </table>
-<a name="m3" doxytag="RtAudio::RTAUDIO_DEVICE::maxOutputChannels"></a><p>
+<a name="m4" doxytag="RtAudio::RTAUDIO_DEVICE::maxInputChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::maxOutputChannels
+int RtAudio::RTAUDIO_DEVICE::maxInputChannels
           </b></td>
         </tr>
 
@@ -128,17 +134,17 @@ int RtAudio::RTAUDIO_DEVICE::maxOutputChannels
     <td>
 
 <p>
-    </td>
+Maximum input channels supported by device.     </td>
   </tr>
 </table>
-<a name="m4" doxytag="RtAudio::RTAUDIO_DEVICE::maxInputChannels"></a><p>
+<a name="m5" doxytag="RtAudio::RTAUDIO_DEVICE::maxDuplexChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::maxInputChannels
+int RtAudio::RTAUDIO_DEVICE::maxDuplexChannels
           </b></td>
         </tr>
 
@@ -154,17 +160,17 @@ int RtAudio::RTAUDIO_DEVICE::maxInputChannels
     <td>
 
 <p>
-    </td>
+Maximum simultaneous input/output channels supported by device.     </td>
   </tr>
 </table>
-<a name="m5" doxytag="RtAudio::RTAUDIO_DEVICE::maxDuplexChannels"></a><p>
+<a name="m6" doxytag="RtAudio::RTAUDIO_DEVICE::minOutputChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::maxDuplexChannels
+int RtAudio::RTAUDIO_DEVICE::minOutputChannels
           </b></td>
         </tr>
 
@@ -180,17 +186,17 @@ int RtAudio::RTAUDIO_DEVICE::maxDuplexChannels
     <td>
 
 <p>
-    </td>
+Minimum output channels supported by device.     </td>
   </tr>
 </table>
-<a name="m6" doxytag="RtAudio::RTAUDIO_DEVICE::minOutputChannels"></a><p>
+<a name="m7" doxytag="RtAudio::RTAUDIO_DEVICE::minInputChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::minOutputChannels
+int RtAudio::RTAUDIO_DEVICE::minInputChannels
           </b></td>
         </tr>
 
@@ -206,17 +212,17 @@ int RtAudio::RTAUDIO_DEVICE::minOutputChannels
     <td>
 
 <p>
-    </td>
+Minimum input channels supported by device.     </td>
   </tr>
 </table>
-<a name="m7" doxytag="RtAudio::RTAUDIO_DEVICE::minInputChannels"></a><p>
+<a name="m8" doxytag="RtAudio::RTAUDIO_DEVICE::minDuplexChannels"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::minInputChannels
+int RtAudio::RTAUDIO_DEVICE::minDuplexChannels
           </b></td>
         </tr>
 
@@ -232,17 +238,17 @@ int RtAudio::RTAUDIO_DEVICE::minInputChannels
     <td>
 
 <p>
-    </td>
+Minimum simultaneous input/output channels supported by device.     </td>
   </tr>
 </table>
-<a name="m8" doxytag="RtAudio::RTAUDIO_DEVICE::minDuplexChannels"></a><p>
+<a name="m9" doxytag="RtAudio::RTAUDIO_DEVICE::hasDuplexSupport"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-int RtAudio::RTAUDIO_DEVICE::minDuplexChannels
+bool RtAudio::RTAUDIO_DEVICE::hasDuplexSupport
           </b></td>
         </tr>
 
@@ -258,17 +264,17 @@ int RtAudio::RTAUDIO_DEVICE::minDuplexChannels
     <td>
 
 <p>
-    </td>
+true if device supports duplex mode.     </td>
   </tr>
 </table>
-<a name="m9" doxytag="RtAudio::RTAUDIO_DEVICE::hasDuplexSupport"></a><p>
+<a name="m10" doxytag="RtAudio::RTAUDIO_DEVICE::isDefault"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-bool RtAudio::RTAUDIO_DEVICE::hasDuplexSupport
+bool RtAudio::RTAUDIO_DEVICE::isDefault
           </b></td>
         </tr>
 
@@ -284,10 +290,10 @@ bool RtAudio::RTAUDIO_DEVICE::hasDuplexSupport
     <td>
 
 <p>
-true if device supports duplex mode.     </td>
+true if this is the default output or input device.     </td>
   </tr>
 </table>
-<a name="m10" doxytag="RtAudio::RTAUDIO_DEVICE::nSampleRates"></a><p>
+<a name="m11" doxytag="RtAudio::RTAUDIO_DEVICE::nSampleRates"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
@@ -313,7 +319,7 @@ int RtAudio::RTAUDIO_DEVICE::nSampleRates
 Number of discrete rates or -1 if range supported.     </td>
   </tr>
 </table>
-<a name="m11" doxytag="RtAudio::RTAUDIO_DEVICE::sampleRates"></a><p>
+<a name="m12" doxytag="RtAudio::RTAUDIO_DEVICE::sampleRates"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
@@ -339,14 +345,14 @@ int RtAudio::RTAUDIO_DEVICE::sampleRates
 Supported rates or (min, max) if range.     </td>
   </tr>
 </table>
-<a name="m12" doxytag="RtAudio::RTAUDIO_DEVICE::nativeFormats"></a><p>
+<a name="m13" doxytag="RtAudio::RTAUDIO_DEVICE::nativeFormats"></a><p>
 <table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr>
     <td class="md">
       <table cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td nowrap valign="top"><b> 
-<a class="el" href="classRtAudio.html#s0">RTAUDIO_FORMAT</a> RtAudio::RTAUDIO_DEVICE::nativeFormats
+RTAUDIO_FORMAT RtAudio::RTAUDIO_DEVICE::nativeFormats
           </b></td>
         </tr>
 
@@ -367,12 +373,12 @@ Bit mask of supported data formats.     </td>
 </table>
 <hr>The documentation for this struct was generated from the following file:<ul>
 <li><a class="el" href="RtAudio_8h-source.html">RtAudio.h</a></ul>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
+<HR>
+
+<table><tr><td><img src="../images/ccrma.gif">
+  <td>&copy;2001-2002 Gary P. Scavone, CCRMA, Stanford University. All Rights Reserved.<br>
+  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>
+</table>
+
+</BODY>
 </HTML>
diff --git a/doc/html/tutorial_8txt.html b/doc/html/tutorial_8txt.html
deleted file mode 100644 (file)
index 9e896a4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<HTML>\r
-<HEAD>\r
-<TITLE>The RtAudio Tutorial</TITLE>\r
-<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">\r
-</HEAD>\r
-<BODY BGCOLOR="#FFFFFF">\r
-<CENTER>\r
-<a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>\r
-<HR>
-<!-- Generated by Doxygen 1.2.8.1 -->
-<h1>tutorial.txt File Reference</h1><table border=0 cellpadding=0 cellspacing=0>
-</table>
-<HR>\r
-\r
-<table><tr><td><img src="../images/ccrma.gif">\r
-  <td>&copy;2001-2002 CCRMA, Stanford University. All Rights Reserved.<br>\r
-  Maintained by Gary P. Scavone, <a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a><P>\r
-</table>\r
-\r
-</BODY>\r
-</HTML>