mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 04:50:59 +00:00
Use system portaudio library
This removes our in-tree version of portaudio-19 and migrates mod_portaudio and mod_portaudio_stream to use the system version of the library. Our detection of the system library relies on pkg-config.
This commit is contained in:
parent
83ba9d82e1
commit
a0e19e1c7f
2
.gitignore
vendored
2
.gitignore
vendored
@ -199,8 +199,6 @@ ipch/
|
|||||||
/w32/Library/switch_version.inc
|
/w32/Library/switch_version.inc
|
||||||
/w32/Setup/Fragments
|
/w32/Setup/Fragments
|
||||||
|
|
||||||
/libs/portaudio/build/msvc/Win32/Debug DirectSound/portaudio.*.log
|
|
||||||
/libs/portaudio/build/msvc/Win32/Release DirectSound/portaudio.*.log
|
|
||||||
/libs/win32/mpg123/Win32/Debug_Generic/libmpg123.*.log
|
/libs/win32/mpg123/Win32/Debug_Generic/libmpg123.*.log
|
||||||
/libs/win32/mpg123/Win32/Release_Generic/libmpg123.*.log
|
/libs/win32/mpg123/Win32/Release_Generic/libmpg123.*.log
|
||||||
/libs/win32/pthread/Win32/Debug DLL/pthread.*.log
|
/libs/win32/pthread/Win32/Debug DLL/pthread.*.log
|
||||||
|
@ -615,7 +615,6 @@ pristine:
|
|||||||
|
|
||||||
update-clean: clean python-reconf lua-reconf spandsp-reconf srtp-reconf
|
update-clean: clean python-reconf lua-reconf spandsp-reconf srtp-reconf
|
||||||
cd libs/sofia-sip && $(MAKE) clean
|
cd libs/sofia-sip && $(MAKE) clean
|
||||||
cd libs/portaudio && $(MAKE) clean
|
|
||||||
cd libs/esl && $(MAKE) clean
|
cd libs/esl && $(MAKE) clean
|
||||||
cd libs/srtp && $(MAKE) clean
|
cd libs/srtp && $(MAKE) clean
|
||||||
|
|
||||||
@ -637,11 +636,6 @@ python-reconf:
|
|||||||
rm -f src/mod/languages/mod_python/Makefile
|
rm -f src/mod/languages/mod_python/Makefile
|
||||||
./config.status
|
./config.status
|
||||||
|
|
||||||
pa-reconf:
|
|
||||||
cd libs/portaudio && $(MAKE) clean
|
|
||||||
cd libs/portaudio && sh ./configure.gnu
|
|
||||||
$(MAKE) mod_portaudio-clean
|
|
||||||
|
|
||||||
srtp-reconf:
|
srtp-reconf:
|
||||||
cd libs/srtp && $(MAKE) clean
|
cd libs/srtp && $(MAKE) clean
|
||||||
cd libs/srtp && sh ./config.status --recheck
|
cd libs/srtp && sh ./config.status --recheck
|
||||||
|
@ -10,7 +10,7 @@ BASEDIR=`pwd`;
|
|||||||
LIBDIR=${BASEDIR}/libs;
|
LIBDIR=${BASEDIR}/libs;
|
||||||
SUBDIRS="apr \
|
SUBDIRS="apr \
|
||||||
libzrtp ilbc iksemel js js/nsprpub libdingaling libsndfile sofia-sip \
|
libzrtp ilbc iksemel js js/nsprpub libdingaling libsndfile sofia-sip \
|
||||||
speex srtp freetdm spandsp libg722_1 portaudio unimrcp tiff-4.0.2 broadvoice silk libcodec2 \
|
speex srtp freetdm spandsp libg722_1 unimrcp tiff-4.0.2 broadvoice silk libcodec2 \
|
||||||
fs";
|
fs";
|
||||||
|
|
||||||
while getopts 'jhd:v' o; do
|
while getopts 'jhd:v' o; do
|
||||||
|
@ -1150,6 +1150,9 @@ PKG_CHECK_MODULES([SPEEX], [speex >= 1.2rc1 speexdsp >= 1.2rc1])
|
|||||||
PKG_CHECK_MODULES([YAML], [yaml-0.1 >= 0.1.4],[
|
PKG_CHECK_MODULES([YAML], [yaml-0.1 >= 0.1.4],[
|
||||||
AM_CONDITIONAL([HAVE_YAML],[true])],[
|
AM_CONDITIONAL([HAVE_YAML],[true])],[
|
||||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_YAML],[false])])
|
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_YAML],[false])])
|
||||||
|
PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0 >= 19],[
|
||||||
|
AM_CONDITIONAL([HAVE_PORTAUDIO],[true])],[
|
||||||
|
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_PORTAUDIO],[false])])
|
||||||
PKG_CHECK_MODULES([LDNS], [libldns >= 1.6.6],[
|
PKG_CHECK_MODULES([LDNS], [libldns >= 1.6.6],[
|
||||||
AM_CONDITIONAL([HAVE_LDNS],[true])],[
|
AM_CONDITIONAL([HAVE_LDNS],[true])],[
|
||||||
AC_CHECK_LIB([ldns], [ldns_str2rdf_a], [LDNS_LIBS=-lldns])
|
AC_CHECK_LIB([ldns], [ldns_str2rdf_a], [LDNS_LIBS=-lldns])
|
||||||
@ -1660,7 +1663,6 @@ AC_CONFIG_SUBDIRS([libs/js])
|
|||||||
AC_CONFIG_SUBDIRS([libs/libdingaling])
|
AC_CONFIG_SUBDIRS([libs/libdingaling])
|
||||||
AC_CONFIG_SUBDIRS([libs/libsndfile])
|
AC_CONFIG_SUBDIRS([libs/libsndfile])
|
||||||
AC_CONFIG_SUBDIRS([libs/sofia-sip])
|
AC_CONFIG_SUBDIRS([libs/sofia-sip])
|
||||||
AC_CONFIG_SUBDIRS([libs/portaudio])
|
|
||||||
AC_CONFIG_SUBDIRS([libs/freetdm])
|
AC_CONFIG_SUBDIRS([libs/freetdm])
|
||||||
AC_CONFIG_SUBDIRS([libs/unimrcp])
|
AC_CONFIG_SUBDIRS([libs/unimrcp])
|
||||||
AC_CONFIG_SUBDIRS([libs/tiff-4.0.2])
|
AC_CONFIG_SUBDIRS([libs/tiff-4.0.2])
|
||||||
|
3
debian/control-modules
vendored
3
debian/control-modules
vendored
@ -405,7 +405,7 @@ Build-Depends: libopal-dev
|
|||||||
Module: endpoints/mod_portaudio
|
Module: endpoints/mod_portaudio
|
||||||
Description: mod_portaudio
|
Description: mod_portaudio
|
||||||
Adds mod_portaudio.
|
Adds mod_portaudio.
|
||||||
Build-Depends: libasound2-dev
|
Build-Depends: portaudio19-dev
|
||||||
|
|
||||||
Module: endpoints/mod_reference
|
Module: endpoints/mod_reference
|
||||||
Description: mod_reference
|
Description: mod_reference
|
||||||
@ -517,6 +517,7 @@ Description: mod_native_file
|
|||||||
Module: formats/mod_portaudio_stream
|
Module: formats/mod_portaudio_stream
|
||||||
Description: mod_portaudio_stream
|
Description: mod_portaudio_stream
|
||||||
Adds mod_portaudio_stream.
|
Adds mod_portaudio_stream.
|
||||||
|
Build-Depends: portaudio19-dev
|
||||||
|
|
||||||
Module: formats/mod_shell_stream
|
Module: formats/mod_shell_stream
|
||||||
Description: mod_shell_stream
|
Description: mod_shell_stream
|
||||||
|
18
debian/copyright
vendored
18
debian/copyright
vendored
@ -1708,24 +1708,6 @@ Copyright: 2007 <robs@users.sourceforge.net>
|
|||||||
2007-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
2007-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||||
License: LGPL-2+
|
License: LGPL-2+
|
||||||
|
|
||||||
Files: libs/portaudio/*
|
|
||||||
Copyright: 1999-2007 Ross Bencina and Phil Burk
|
|
||||||
1999-2002 Phil Burk, Ross Bencina
|
|
||||||
1999-2007 Andrew Baldwin, Ross Bencina
|
|
||||||
1999-2007 Ross Bencina, Andrew Baldwin
|
|
||||||
1999-2006 Phil Burk, Robert Marsanyi and Ross Bencina
|
|
||||||
1999-2007 Ross Bencina, Phil Burk, Robert Marsanyi
|
|
||||||
1999-2007 Ross Bencina
|
|
||||||
1999-2000 Phil Burk
|
|
||||||
2004-2007 Arve Knudsen <aknuds-1@broadpark.no>
|
|
||||||
2005-2006 Bjorn Roche
|
|
||||||
2006-2007 David Viens
|
|
||||||
2003 Fred Gleason
|
|
||||||
2002 Joshua Haberman <joshua@haberman.com>
|
|
||||||
2005,2006 Ludwig Schwardt
|
|
||||||
2004 Stefan Westerfeld <stefan@space.twc.de
|
|
||||||
License: MIT/X11 (BSD like)
|
|
||||||
|
|
||||||
Files: libs/tiff-4.0.2/*
|
Files: libs/tiff-4.0.2/*
|
||||||
Copyright: 1988-1997 Sam Leffler
|
Copyright: 1988-1997 Sam Leffler
|
||||||
1991-1997 Silicon Graphics, Inc.
|
1991-1997 Silicon Graphics, Inc.
|
||||||
|
9
libs/.gitignore
vendored
9
libs/.gitignore
vendored
@ -331,10 +331,6 @@ opal
|
|||||||
/openssl-*/
|
/openssl-*/
|
||||||
/opus-*/
|
/opus-*/
|
||||||
/pocketsphinx-*/
|
/pocketsphinx-*/
|
||||||
/portaudio/bin/
|
|
||||||
/portaudio/bin-stamp
|
|
||||||
/portaudio/lib-stamp
|
|
||||||
/portaudio/Makefile
|
|
||||||
/pthreads-w32-2-7-0-release/
|
/pthreads-w32-2-7-0-release/
|
||||||
/pthreads-w32-2-9-1/
|
/pthreads-w32-2-9-1/
|
||||||
/silk/compile
|
/silk/compile
|
||||||
@ -814,11 +810,6 @@ opal
|
|||||||
!/libdingaling/missing
|
!/libdingaling/missing
|
||||||
!/libg722_1/config/depcomp
|
!/libg722_1/config/depcomp
|
||||||
!/libg722_1/config/missing
|
!/libg722_1/config/missing
|
||||||
!/portaudio/bindings/cpp/build/gnu/aclocal.m4
|
|
||||||
!/portaudio/bindings/cpp/build/gnu/config.guess
|
|
||||||
!/portaudio/bindings/cpp/build/gnu/config.sub
|
|
||||||
!/portaudio/bindings/cpp/build/gnu/configure
|
|
||||||
!/portaudio/bindings/cpp/build/gnu/install-sh
|
|
||||||
!/tiff-*/config/depcomp
|
!/tiff-*/config/depcomp
|
||||||
!/tiff-*/config/missing
|
!/tiff-*/config/missing
|
||||||
!/xmlrpc-c/install-sh
|
!/xmlrpc-c/install-sh
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Fri Mar 16 17:19:02 EDT 2007
|
|
@ -1 +0,0 @@
|
|||||||
To compile on darwin, you will need to use the darwin makefile, gcc 3.3 or later and the universal SDK. for more info, see http://portaudio.com/trac/wiki/TutorialDir/Compile/MacintoshCoreAudio
|
|
@ -1,239 +0,0 @@
|
|||||||
# Doxyfile 1.4.6
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Project related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
PROJECT_NAME = PortAudio
|
|
||||||
PROJECT_NUMBER = 2.0
|
|
||||||
OUTPUT_DIRECTORY = ./doc/
|
|
||||||
CREATE_SUBDIRS = NO
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
USE_WINDOWS_ENCODING = NO
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ABBREVIATE_BRIEF = "The $name class" \
|
|
||||||
"The $name widget" \
|
|
||||||
"The $name file" \
|
|
||||||
is \
|
|
||||||
provides \
|
|
||||||
specifies \
|
|
||||||
contains \
|
|
||||||
represents \
|
|
||||||
a \
|
|
||||||
an \
|
|
||||||
the
|
|
||||||
ALWAYS_DETAILED_SEC = NO
|
|
||||||
INLINE_INHERITED_MEMB = NO
|
|
||||||
FULL_PATH_NAMES = NO
|
|
||||||
STRIP_FROM_PATH =
|
|
||||||
STRIP_FROM_INC_PATH =
|
|
||||||
SHORT_NAMES = NO
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
DETAILS_AT_TOP = NO
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
SEPARATE_MEMBER_PAGES = NO
|
|
||||||
TAB_SIZE = 8
|
|
||||||
ALIASES =
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
BUILTIN_STL_SUPPORT = NO
|
|
||||||
DISTRIBUTE_GROUP_DOC = NO
|
|
||||||
SUBGROUPING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Build related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
EXTRACT_ALL = YES
|
|
||||||
EXTRACT_PRIVATE = NO
|
|
||||||
EXTRACT_STATIC = NO
|
|
||||||
EXTRACT_LOCAL_CLASSES = YES
|
|
||||||
EXTRACT_LOCAL_METHODS = NO
|
|
||||||
HIDE_UNDOC_MEMBERS = NO
|
|
||||||
HIDE_UNDOC_CLASSES = NO
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = YES
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
|
||||||
INLINE_INFO = YES
|
|
||||||
SORT_MEMBER_DOCS = YES
|
|
||||||
SORT_BRIEF_DOCS = NO
|
|
||||||
SORT_BY_SCOPE_NAME = NO
|
|
||||||
GENERATE_TODOLIST = YES
|
|
||||||
GENERATE_TESTLIST = YES
|
|
||||||
GENERATE_BUGLIST = YES
|
|
||||||
GENERATE_DEPRECATEDLIST= YES
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
SHOW_USED_FILES = YES
|
|
||||||
SHOW_DIRECTORIES = NO
|
|
||||||
FILE_VERSION_FILTER =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_NO_PARAMDOC = NO
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
INPUT = doc/src \
|
|
||||||
src \
|
|
||||||
include \
|
|
||||||
test
|
|
||||||
FILE_PATTERNS = *.h \
|
|
||||||
*.c \
|
|
||||||
*.cpp \
|
|
||||||
*.dox
|
|
||||||
RECURSIVE = YES
|
|
||||||
EXCLUDE =
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS =
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS =
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_PATTERNS =
|
|
||||||
FILTER_SOURCE_FILES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = NO
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = YES
|
|
||||||
REFERENCES_RELATION = YES
|
|
||||||
USE_HTAGS = NO
|
|
||||||
VERBATIM_HEADERS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = NO
|
|
||||||
COLS_IN_ALPHA_INDEX = 5
|
|
||||||
IGNORE_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = YES
|
|
||||||
HTML_OUTPUT = html
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE =
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = NO
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
GENERATE_TREEVIEW = NO
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the LaTeX output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
LATEX_OUTPUT = latex
|
|
||||||
LATEX_CMD_NAME = latex
|
|
||||||
MAKEINDEX_CMD_NAME = makeindex
|
|
||||||
COMPACT_LATEX = NO
|
|
||||||
PAPER_TYPE = a4wide
|
|
||||||
EXTRA_PACKAGES =
|
|
||||||
LATEX_HEADER =
|
|
||||||
PDF_HYPERLINKS = NO
|
|
||||||
USE_PDFLATEX = NO
|
|
||||||
LATEX_BATCHMODE = NO
|
|
||||||
LATEX_HIDE_INDICES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the RTF output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
RTF_OUTPUT = rtf
|
|
||||||
COMPACT_RTF = NO
|
|
||||||
RTF_HYPERLINKS = NO
|
|
||||||
RTF_STYLESHEET_FILE =
|
|
||||||
RTF_EXTENSIONS_FILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the man page output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_MAN = NO
|
|
||||||
MAN_OUTPUT = man
|
|
||||||
MAN_EXTENSION = .3
|
|
||||||
MAN_LINKS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = NO
|
|
||||||
XML_OUTPUT = xml
|
|
||||||
XML_SCHEMA =
|
|
||||||
XML_DTD =
|
|
||||||
XML_PROGRAMLISTING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options for the AutoGen Definitions output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the Perl module output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_PERLMOD = NO
|
|
||||||
PERLMOD_LATEX = NO
|
|
||||||
PERLMOD_PRETTY = YES
|
|
||||||
PERLMOD_MAKEVAR_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = NO
|
|
||||||
EXPAND_ONLY_PREDEF = NO
|
|
||||||
SEARCH_INCLUDES = YES
|
|
||||||
INCLUDE_PATH =
|
|
||||||
INCLUDE_FILE_PATTERNS =
|
|
||||||
PREDEFINED =
|
|
||||||
EXPAND_AS_DEFINED =
|
|
||||||
SKIP_FUNCTION_MACROS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the dot tool
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
CLASS_DIAGRAMS = NO
|
|
||||||
HIDE_UNDOC_RELATIONS = NO
|
|
||||||
HAVE_DOT = NO
|
|
||||||
CLASS_GRAPH = YES
|
|
||||||
COLLABORATION_GRAPH = YES
|
|
||||||
GROUP_GRAPHS = YES
|
|
||||||
UML_LOOK = NO
|
|
||||||
TEMPLATE_RELATIONS = YES
|
|
||||||
INCLUDE_GRAPH = YES
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
|
||||||
CALL_GRAPH = NO
|
|
||||||
GRAPHICAL_HIERARCHY = YES
|
|
||||||
DIRECTORY_GRAPH = YES
|
|
||||||
DOT_IMAGE_FORMAT = png
|
|
||||||
DOT_PATH =
|
|
||||||
DOTFILE_DIRS =
|
|
||||||
MAX_DOT_GRAPH_WIDTH = 1024
|
|
||||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
|
||||||
MAX_DOT_GRAPH_DEPTH = 1000
|
|
||||||
DOT_TRANSPARENT = NO
|
|
||||||
DOT_MULTI_TARGETS = NO
|
|
||||||
GENERATE_LEGEND = YES
|
|
||||||
DOT_CLEANUP = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to the search engine
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SEARCHENGINE = NO
|
|
@ -1,81 +0,0 @@
|
|||||||
Portable header file to contain:
|
|
||||||
>>>>>
|
|
||||||
/*
|
|
||||||
* PortAudio Portable Real-Time Audio Library
|
|
||||||
* PortAudio API Header File
|
|
||||||
* Latest version available at: http://www.portaudio.com
|
|
||||||
*
|
|
||||||
* Copyright (c) 1999-2006 Ross Bencina and Phil Burk
|
|
||||||
*
|
|
||||||
* 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:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be
|
|
||||||
* included in all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The text above constitutes the entire PortAudio license; however,
|
|
||||||
* the PortAudio community also makes the following non-binding requests:
|
|
||||||
*
|
|
||||||
* 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. It is also
|
|
||||||
* requested that these non-binding requests be included along with the
|
|
||||||
* license above.
|
|
||||||
*/
|
|
||||||
<<<<<
|
|
||||||
|
|
||||||
|
|
||||||
Implementation files to contain:
|
|
||||||
>>>>>
|
|
||||||
/*
|
|
||||||
* PortAudio Portable Real-Time Audio Library
|
|
||||||
* Latest version at: http://www.portaudio.com
|
|
||||||
* <platform> Implementation
|
|
||||||
* Copyright (c) 1999-2000 <author(s)>
|
|
||||||
*
|
|
||||||
* 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:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be
|
|
||||||
* included in all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The text above constitutes the entire PortAudio license; however,
|
|
||||||
* the PortAudio community also makes the following non-binding requests:
|
|
||||||
*
|
|
||||||
* 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. It is also
|
|
||||||
* requested that these non-binding requests be included along with the
|
|
||||||
* license above.
|
|
||||||
*/
|
|
||||||
<<<<<
|
|
@ -1,225 +0,0 @@
|
|||||||
#
|
|
||||||
# PortAudio V19 Makefile.darwin
|
|
||||||
#
|
|
||||||
# Bjorn Roche of XO Audio (www.xoaudio.com)
|
|
||||||
# Based on autoconf's makefile, created from Makefile generated by
|
|
||||||
# autoconf. Autoconf files written by by Dominic Mazzoni with modifications
|
|
||||||
# by Mikael Magnusson.
|
|
||||||
#
|
|
||||||
|
|
||||||
top_srcdir = .
|
|
||||||
srcdir = .
|
|
||||||
|
|
||||||
top_builddir = .
|
|
||||||
OPT_LEVEL := -O2
|
|
||||||
PREFIX = /usr/local
|
|
||||||
prefix = $(PREFIX)
|
|
||||||
exec_prefix = ${prefix}
|
|
||||||
bindir = ${exec_prefix}/bin
|
|
||||||
libdir = ${exec_prefix}/lib
|
|
||||||
includedir = ${prefix}/include
|
|
||||||
CC = gcc
|
|
||||||
CFLAGS = -g -std=gnu99 -Werror -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3 $(OPT_LEVEL) -Wall -pedantic -pipe -fPIC -DPA_BIG_ENDIAN -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DPA_USE_COREAUDIO=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -Iinclude -Isrc/common
|
|
||||||
LIBS = -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
|
|
||||||
AR = /usr/bin/ar
|
|
||||||
RANLIB = ranlib
|
|
||||||
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
|
||||||
INSTALL = /usr/bin/install -c
|
|
||||||
INSTALL_DATA = ${INSTALL} -m 644
|
|
||||||
SHARED_FLAGS = -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3
|
|
||||||
DLL_LIBS =
|
|
||||||
CXXFLAGS = -g $(OPT_LEVEL)
|
|
||||||
NASM =
|
|
||||||
NASMOPT =
|
|
||||||
LN_S = ln -s
|
|
||||||
LT_RELEASE=@LT_RELEASE@
|
|
||||||
LT_CURRENT=2
|
|
||||||
LT_REVISION=0
|
|
||||||
LT_AGE=0
|
|
||||||
|
|
||||||
|
|
||||||
OTHER_OBJS = src/os/mac_osx/pa_mac_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o
|
|
||||||
|
|
||||||
PALIB = libportaudio.a
|
|
||||||
PADLL = libportaudio
|
|
||||||
PADLLV_MIN = 19
|
|
||||||
PADLLV = 0.0.19
|
|
||||||
PADLLEXT = .dylib
|
|
||||||
PASHLIBNAME = $(PADLL).$(PADLLV)$(PADLLEXT)
|
|
||||||
PAINC = include/portaudio.h
|
|
||||||
PA_LDFLAGS = $(LDFLAGS) $(SHARED_FLAGS) -rpath $(libdir) -no-undefined -export -symbols-regex "Pa_.*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
|
||||||
|
|
||||||
COMMON_OBJS = \
|
|
||||||
src/common/pa_allocation.o \
|
|
||||||
src/common/pa_converters.o \
|
|
||||||
src/common/pa_cpuload.o \
|
|
||||||
src/common/pa_debugprint.o \
|
|
||||||
src/common/pa_dither.o \
|
|
||||||
src/common/pa_front.o \
|
|
||||||
src/common/pa_process.o \
|
|
||||||
src/common/pa_ringbuffer.o \
|
|
||||||
src/common/pa_skeleton.o \
|
|
||||||
src/common/pa_stream.o \
|
|
||||||
src/common/pa_trace.o
|
|
||||||
|
|
||||||
TESTS = \
|
|
||||||
bin/paqa_devs \
|
|
||||||
bin/paqa_errs \
|
|
||||||
bin/patest1 \
|
|
||||||
bin/patest_buffer \
|
|
||||||
bin/patest_callbackstop \
|
|
||||||
bin/patest_clip \
|
|
||||||
bin/patest_dither \
|
|
||||||
bin/patest_hang \
|
|
||||||
bin/patest_in_overflow \
|
|
||||||
bin/patest_latency \
|
|
||||||
bin/patest_leftright \
|
|
||||||
bin/patest_longsine \
|
|
||||||
bin/patest_many \
|
|
||||||
bin/patest_maxsines \
|
|
||||||
bin/patest_multi_sine \
|
|
||||||
bin/patest_out_underflow \
|
|
||||||
bin/patest_pink \
|
|
||||||
bin/patest_prime \
|
|
||||||
bin/patest_read_record \
|
|
||||||
bin/patest_read_write_wire \
|
|
||||||
bin/patest_record \
|
|
||||||
bin/patest_ringmix \
|
|
||||||
bin/patest_saw \
|
|
||||||
bin/patest_sine8 \
|
|
||||||
bin/patest_sine \
|
|
||||||
bin/patest_sine_channelmaps \
|
|
||||||
bin/patest_sine_formats \
|
|
||||||
bin/patest_sine_time \
|
|
||||||
bin/patest_start_stop \
|
|
||||||
bin/patest_stop \
|
|
||||||
bin/patest_sync \
|
|
||||||
bin/patest_timing \
|
|
||||||
bin/patest_toomanysines \
|
|
||||||
bin/patest_underflow \
|
|
||||||
bin/patest_wire \
|
|
||||||
bin/patest_write_sine \
|
|
||||||
bin/patest_write_stop \
|
|
||||||
bin/pa_devs \
|
|
||||||
bin/pa_fuzz \
|
|
||||||
bin/pa_minlat
|
|
||||||
|
|
||||||
# Most of these don't compile yet. Put them in TESTS, above, if
|
|
||||||
# you want to try to compile them...
|
|
||||||
ALL_TESTS = \
|
|
||||||
$(TESTS) \
|
|
||||||
bin/debug_convert \
|
|
||||||
bin/debug_dither_calc \
|
|
||||||
bin/debug_dual \
|
|
||||||
bin/debug_multi_in \
|
|
||||||
bin/debug_multi_out \
|
|
||||||
bin/debug_record \
|
|
||||||
bin/debug_record_reuse \
|
|
||||||
bin/debug_sine_amp \
|
|
||||||
bin/debug_sine \
|
|
||||||
bin/debug_sine_formats \
|
|
||||||
bin/debug_srate \
|
|
||||||
bin/debug_test1 \
|
|
||||||
bin/pa_devs \
|
|
||||||
bin/pa_fuzz \
|
|
||||||
bin/pa_minlat \
|
|
||||||
bin/paqa_devs \
|
|
||||||
bin/paqa_errs \
|
|
||||||
bin/patest1 \
|
|
||||||
bin/patest_buffer \
|
|
||||||
bin/patest_clip \
|
|
||||||
bin/patest_dither \
|
|
||||||
bin/patest_hang \
|
|
||||||
bin/patest_in_overflow \
|
|
||||||
bin/patest_latency \
|
|
||||||
bin/patest_leftright \
|
|
||||||
bin/patest_longsine \
|
|
||||||
bin/patest_many \
|
|
||||||
bin/patest_maxsines \
|
|
||||||
bin/patest_multi_sine \
|
|
||||||
bin/patest_out_underflow \
|
|
||||||
bin/patest_pink \
|
|
||||||
bin/patest_read_record \
|
|
||||||
bin/patest_record \
|
|
||||||
bin/patest_ringmix \
|
|
||||||
bin/patest_saw \
|
|
||||||
bin/patest_sine8 \
|
|
||||||
bin/patest_sine \
|
|
||||||
bin/patest_sine_channelmaps \
|
|
||||||
bin/patest_sine_formats \
|
|
||||||
bin/patest_sine_time \
|
|
||||||
bin/patest_start_stop \
|
|
||||||
bin/patest_stop \
|
|
||||||
bin/patest_sync \
|
|
||||||
bin/patest_timing \
|
|
||||||
bin/patest_toomanysines \
|
|
||||||
bin/patest_underflow \
|
|
||||||
bin/patest_wire \
|
|
||||||
bin/patest_write_sine
|
|
||||||
|
|
||||||
OBJS = $(COMMON_OBJS) $(OTHER_OBJS)
|
|
||||||
|
|
||||||
#LTOBJS:= $(OBJS:.o=.lo)
|
|
||||||
|
|
||||||
all: lib/$(PALIB) lib/$(PASHLIBNAME) tests
|
|
||||||
|
|
||||||
tests: bin/ $(TESTS)
|
|
||||||
|
|
||||||
lib/$(PALIB): lib/ $(OBJS) Makefile.darwin $(PAINC)
|
|
||||||
-rm lib/$(PALIB)
|
|
||||||
$(AR) ruv lib/$(PALIB) $(OBJS)
|
|
||||||
$(RANLIB) lib/$(PALIB)
|
|
||||||
|
|
||||||
lib/$(PASHLIBNAME): lib/ $(OBJS) Makefile.darwin $(PAINC)
|
|
||||||
$(CC) $(SHARED_FLAGS) -o lib/$(PASHLIBNAME) $(OBJS) $(DLL_LIBS) -install_name $(PREFIX)/lib/$(PASHLIBNAME) -compatibility_version $(PADLLV) -current_version $(PADLLV)
|
|
||||||
|
|
||||||
$(TESTS): bin/%: lib/$(PALIB) Makefile.darwin $(PAINC) test/%.c
|
|
||||||
$(CC) -o $@ $(CFLAGS) test/$*.c lib/$(PALIB) $(LIBS)
|
|
||||||
|
|
||||||
install: lib/$(PALIB) lib/$(PASHLIBNAME) portaudio-2.0.pc
|
|
||||||
$(INSTALL) -d $(PREFIX)/lib
|
|
||||||
$(INSTALL) -m 644 lib/$(PASHLIBNAME) $(PREFIX)/lib/$(PASHLIBNAME)
|
|
||||||
$(INSTALL) -m 644 lib/$(PALIB) $(PREFIX)/lib/$(PALIB)
|
|
||||||
cd $(PREFIX)/lib && rm -f $(PADLL)$(PADLLEXT) && ln -s $(PASHLIBNAME) $(PADLL)$(PADLLEXT)
|
|
||||||
$(INSTALL) -d $(PREFIX)/include
|
|
||||||
$(INSTALL) -m 644 include/portaudio.h $(PREFIX)/include/portaudio.h
|
|
||||||
$(INSTALL) -d $(PREFIX)/lib/pkgconfig
|
|
||||||
$(INSTALL) -m 644 portaudio-2.0.pc $(PREFIX)/lib/pkgconfig/portaudio-2.0.pc
|
|
||||||
@echo ""
|
|
||||||
@echo "------------------------------------------------------------"
|
|
||||||
@echo "PortAudio was successfully installed."
|
|
||||||
@echo ""
|
|
||||||
@echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
|
|
||||||
@echo "to make the shared object available. You may also need to"
|
|
||||||
@echo "modify your LD_LIBRARY_PATH environment variable to include"
|
|
||||||
@echo "the directory $(PREFIX)/lib"
|
|
||||||
@echo "------------------------------------------------------------"
|
|
||||||
@echo ""
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
rm -f $(PREFIX)/lib/$(PASHLIBNAME)
|
|
||||||
rm -f $(PREFIX)/lib/$(PALIB)
|
|
||||||
rm -f $(PREFIX)/lib/$(PADLL)$(PADLLEXT)
|
|
||||||
rm -f $(PREFIX)/include/portaudio.h
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJS) $(TESTS) lib/$(PALIB) lib/$(PASHLIBNAME)
|
|
||||||
|
|
||||||
%.o: %.c Makefile.darwin $(PAINC)
|
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.o: %.cpp Makefile.darwin $(PAINC)
|
|
||||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.o: %.asm
|
|
||||||
$(NASM) $(NASMOPT) -o $@ $<
|
|
||||||
|
|
||||||
bin:
|
|
||||||
mkdir bin
|
|
||||||
|
|
||||||
lib:
|
|
||||||
mkdir lib
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,215 +0,0 @@
|
|||||||
#
|
|
||||||
# PortAudio V19 Makefile.in
|
|
||||||
#
|
|
||||||
# Dominic Mazzoni
|
|
||||||
# Modifications by Mikael Magnusson
|
|
||||||
#
|
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
VPATH = @srcdir@
|
|
||||||
top_builddir = .
|
|
||||||
PREFIX = @prefix@
|
|
||||||
prefix = $(PREFIX)
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
bindir = @bindir@
|
|
||||||
libdir = @libdir@
|
|
||||||
includedir = @includedir@
|
|
||||||
CC = @CC@
|
|
||||||
CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src/common -I$(top_srcdir)/src/os/unix @CFLAGS@ @DEFS@
|
|
||||||
LIBS = @LIBS@
|
|
||||||
AR = @AR@
|
|
||||||
RANLIB = @RANLIB@
|
|
||||||
LIBTOOL = @LIBTOOL@
|
|
||||||
INSTALL = @INSTALL@
|
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
|
||||||
SHARED_FLAGS = @SHARED_FLAGS@
|
|
||||||
LDFLAGS = @LDFLAGS@
|
|
||||||
DLL_LIBS = @DLL_LIBS@
|
|
||||||
CXXFLAGS = @CXXFLAGS@
|
|
||||||
NASM = @NASM@
|
|
||||||
NASMOPT = @NASMOPT@
|
|
||||||
LN_S = @LN_S@
|
|
||||||
LT_RELEASE=@LT_RELEASE@
|
|
||||||
LT_CURRENT=@LT_CURRENT@
|
|
||||||
LT_REVISION=@LT_REVISION@
|
|
||||||
LT_AGE=@LT_AGE@
|
|
||||||
SHELL=@SHELL@
|
|
||||||
|
|
||||||
OTHER_OBJS = @OTHER_OBJS@
|
|
||||||
|
|
||||||
PALIB = libportaudio.la
|
|
||||||
PAINC = include/portaudio.h
|
|
||||||
|
|
||||||
PA_LDFLAGS = $(LDFLAGS) -rpath $(libdir) -no-undefined -export-symbols-regex "(Pa|PaMacCore)_.*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
|
||||||
# we are building disable-shared but its still inserting flags for shared libs???
|
|
||||||
# $(SHARED_FLAGS)
|
|
||||||
#MAKEFILE = Makefile
|
|
||||||
|
|
||||||
COMMON_OBJS = \
|
|
||||||
src/common/pa_allocation.o \
|
|
||||||
src/common/pa_converters.o \
|
|
||||||
src/common/pa_cpuload.o \
|
|
||||||
src/common/pa_dither.o \
|
|
||||||
src/common/pa_debugprint.o \
|
|
||||||
src/common/pa_front.o \
|
|
||||||
src/common/pa_process.o \
|
|
||||||
src/common/pa_skeleton.o \
|
|
||||||
src/common/pa_stream.o \
|
|
||||||
src/common/pa_trace.o
|
|
||||||
|
|
||||||
TESTS = \
|
|
||||||
bin/paqa_devs \
|
|
||||||
bin/paqa_errs \
|
|
||||||
bin/patest1 \
|
|
||||||
bin/patest_buffer \
|
|
||||||
bin/patest_callbackstop \
|
|
||||||
bin/patest_clip \
|
|
||||||
bin/patest_dither \
|
|
||||||
bin/patest_hang \
|
|
||||||
bin/patest_in_overflow \
|
|
||||||
bin/patest_latency \
|
|
||||||
bin/patest_leftright \
|
|
||||||
bin/patest_longsine \
|
|
||||||
bin/patest_many \
|
|
||||||
bin/patest_maxsines \
|
|
||||||
bin/patest_multi_sine \
|
|
||||||
bin/patest_out_underflow \
|
|
||||||
bin/patest_pink \
|
|
||||||
bin/patest_prime \
|
|
||||||
bin/patest_read_record \
|
|
||||||
bin/patest_read_write_wire \
|
|
||||||
bin/patest_record \
|
|
||||||
bin/patest_ringmix \
|
|
||||||
bin/patest_saw \
|
|
||||||
bin/patest_sine8 \
|
|
||||||
bin/patest_sine \
|
|
||||||
bin/patest_sine_channelmaps \
|
|
||||||
bin/patest_sine_formats \
|
|
||||||
bin/patest_sine_time \
|
|
||||||
bin/patest_start_stop \
|
|
||||||
bin/patest_stop \
|
|
||||||
bin/patest_stop_playout \
|
|
||||||
bin/patest_toomanysines \
|
|
||||||
bin/patest_underflow \
|
|
||||||
bin/patest_wire \
|
|
||||||
bin/patest_write_sine \
|
|
||||||
bin/pa_devs \
|
|
||||||
bin/pa_fuzz \
|
|
||||||
bin/pa_minlat
|
|
||||||
|
|
||||||
# Most of these don't compile yet. Put them in TESTS, above, if
|
|
||||||
# you want to try to compile them...
|
|
||||||
ALL_TESTS = \
|
|
||||||
$(TESTS) \
|
|
||||||
bin/patest_sync \
|
|
||||||
bin/debug_convert \
|
|
||||||
bin/debug_dither_calc \
|
|
||||||
bin/debug_dual \
|
|
||||||
bin/debug_multi_in \
|
|
||||||
bin/debug_multi_out \
|
|
||||||
bin/debug_record \
|
|
||||||
bin/debug_record_reuse \
|
|
||||||
bin/debug_sine_amp \
|
|
||||||
bin/debug_sine \
|
|
||||||
bin/debug_sine_formats \
|
|
||||||
bin/debug_srate \
|
|
||||||
bin/debug_test1
|
|
||||||
|
|
||||||
OBJS = $(COMMON_OBJS) $(OTHER_OBJS)
|
|
||||||
|
|
||||||
LTOBJS:= $(OBJS:.o=.lo)
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
@ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp
|
|
||||||
|
|
||||||
all: lib/$(PALIB) all-recursive tests
|
|
||||||
|
|
||||||
tests: bin-stamp $(TESTS)
|
|
||||||
|
|
||||||
|
|
||||||
lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC)
|
|
||||||
$(LIBTOOL) --mode=link $(CC) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
|
|
||||||
|
|
||||||
$(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
install: lib/$(PALIB) portaudio-2.0.pc
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(libdir)
|
|
||||||
$(LIBTOOL) --mode=install $(INSTALL) lib/$(PALIB) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(includedir)
|
|
||||||
$(INSTALL_DATA) -m 644 $(top_srcdir)/$(PAINC) $(DESTDIR)$(includedir)/portaudio.h
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
|
|
||||||
$(INSTALL) -m 644 portaudio-2.0.pc $(DESTDIR)$(libdir)/pkgconfig/portaudio-2.0.pc
|
|
||||||
@echo ""
|
|
||||||
@echo "------------------------------------------------------------"
|
|
||||||
@echo "PortAudio was successfully installed."
|
|
||||||
@echo ""
|
|
||||||
@echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
|
|
||||||
@echo "to make the shared object available. You may also need to"
|
|
||||||
@echo "modify your LD_LIBRARY_PATH environment variable to include"
|
|
||||||
@echo "the directory $(libdir)"
|
|
||||||
@echo "------------------------------------------------------------"
|
|
||||||
@echo ""
|
|
||||||
$(MAKE) install-recursive
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(PALIB)
|
|
||||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(includedir)/portaudio.h
|
|
||||||
$(MAKE) uninstall-recursive
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(LIBTOOL) --mode=clean rm -f $(LTOBJS) $(ALL_TESTS) lib/$(PALIB)
|
|
||||||
rm -f bin-stamp lib-stamp
|
|
||||||
-rm -rf bin lib
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
rm -f config.log config.status Makefile libtool portaudio-2.0.pc
|
|
||||||
|
|
||||||
%.o: %.c $(MAKEFILE) $(PAINC)
|
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.lo: %.c $(MAKEFILE) $(PAINC)
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.o: %.cpp $(MAKEFILE) $(PAINC)
|
|
||||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.o: %.asm
|
|
||||||
$(NASM) $(NASMOPT) -o $@ $<
|
|
||||||
|
|
||||||
bin-stamp:
|
|
||||||
-mkdir bin
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
lib-stamp:
|
|
||||||
-mkdir lib
|
|
||||||
-mkdir -p \
|
|
||||||
src/common \
|
|
||||||
src/hostapi/alsa \
|
|
||||||
src/hostapi/asihpi \
|
|
||||||
src/hostapi/asio \
|
|
||||||
src/hostapi/coreaudio \
|
|
||||||
src/hostapi/dsound \
|
|
||||||
src/hostapi/jack \
|
|
||||||
src/hostapi/oss \
|
|
||||||
src/hostapi/wasapi \
|
|
||||||
src/hostapi/wdmks \
|
|
||||||
src/hostapi/wmme \
|
|
||||||
src/os/mac_osx \
|
|
||||||
src/os/unix \
|
|
||||||
src/os/win
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
Makefile: Makefile.in config.status
|
|
||||||
$(SHELL) config.status
|
|
||||||
|
|
||||||
all-recursive:
|
|
||||||
for dir in $(SUBDIRS); do make -C $$dir all; done
|
|
||||||
|
|
||||||
install-recursive:
|
|
||||||
for dir in $(SUBDIRS); do make -C $$dir install; done
|
|
||||||
|
|
||||||
uninstall-recursive:
|
|
||||||
for dir in $(SUBDIRS); do make -C $$dir uninstall; done
|
|
@ -1,96 +0,0 @@
|
|||||||
README for PortAudio
|
|
||||||
|
|
||||||
/*
|
|
||||||
* PortAudio Portable Real-Time Audio Library
|
|
||||||
* Latest Version at: http://www.portaudio.com
|
|
||||||
*
|
|
||||||
* Copyright (c) 1999-2006 Phil Burk and Ross Bencina
|
|
||||||
*
|
|
||||||
* 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:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be
|
|
||||||
* included in all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The text above constitutes the entire PortAudio license; however,
|
|
||||||
* the PortAudio community also makes the following non-binding requests:
|
|
||||||
*
|
|
||||||
* 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. It is also
|
|
||||||
* requested that these non-binding requests be included along with the
|
|
||||||
* license above.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
PortAudio is a portable audio I/O library designed for cross-platform
|
|
||||||
support of audio. It uses either a callback mechanism to request audio
|
|
||||||
processing, or blocking read/write calls to buffer data between the
|
|
||||||
native audio subsystem and the client. Audio can be processed in various
|
|
||||||
formats, including 32 bit floating point, and will be converted to the
|
|
||||||
native format internally.
|
|
||||||
|
|
||||||
Documentation:
|
|
||||||
Documentation is available in "/doc/html/index.html"
|
|
||||||
Also see "src/common/portaudio.h" for API spec.
|
|
||||||
Also see http://www.portaudio.com/docs/
|
|
||||||
And see "tests/patest_saw.c" for an example.
|
|
||||||
|
|
||||||
For information on compiling programs with PortAudio, please see the
|
|
||||||
tutorial at:
|
|
||||||
|
|
||||||
http://portaudio.com/trac/wiki/TutorialDir/TutorialStart
|
|
||||||
|
|
||||||
|
|
||||||
Important Files and Folders:
|
|
||||||
include/portaudio.h = header file for PortAudio API. Specifies API.
|
|
||||||
src/common/ = platform independant code, host independant
|
|
||||||
code for all implementations.
|
|
||||||
src/os = os specific (but host api neutral) code
|
|
||||||
src/hostapi = implementations for different host apis
|
|
||||||
|
|
||||||
pablio = simple blocking read/write interface
|
|
||||||
|
|
||||||
|
|
||||||
Host API Implementations:
|
|
||||||
src/hostapi/alsa = Advanced Linux Sound Architecture (ALSA)
|
|
||||||
src/hostapi/asihpi = AudioScience HPI
|
|
||||||
src/hostapi/asio = ASIO for Windows and Macintosh
|
|
||||||
src/hostapi/coreaudio = Macintosh Core Audio for OS X
|
|
||||||
src/hostapi/dsound = Windows Direct Sound
|
|
||||||
src/hostapi/jack = JACK Audio Connection Kit
|
|
||||||
src/hostapi/oss = Unix Open Sound System (OSS)
|
|
||||||
src/hostapi/wasapi = Windows Vista WASAPI
|
|
||||||
src/hostapi/wdmks = Windows WDM Kernel Streaming
|
|
||||||
src/hostapi/wmme = Windows MME (most widely supported)
|
|
||||||
|
|
||||||
|
|
||||||
Test Programs:
|
|
||||||
tests/pa_fuzz.c = guitar fuzz box
|
|
||||||
tests/pa_devs.c = print a list of available devices
|
|
||||||
tests/pa_minlat.c = determine minimum latency for your machine
|
|
||||||
tests/paqa_devs.c = self test that opens all devices
|
|
||||||
tests/paqa_errs.c = test error detection and reporting
|
|
||||||
tests/patest_clip.c = hear a sine wave clipped and unclipped
|
|
||||||
tests/patest_dither.c = hear effects of dithering (extremely subtle)
|
|
||||||
tests/patest_pink.c = fun with pink noise
|
|
||||||
tests/patest_record.c = record and playback some audio
|
|
||||||
tests/patest_maxsines.c = how many sine waves can we play? Tests Pa_GetCPULoad().
|
|
||||||
tests/patest_sine.c = output a sine wave in a simple PA app
|
|
||||||
tests/patest_sync.c = test syncronization of audio and video
|
|
||||||
tests/patest_wire.c = pass input to output, wire simulator
|
|
@ -1,194 +0,0 @@
|
|||||||
import sys, os.path
|
|
||||||
|
|
||||||
def rsplit(toSplit, sub, max=-1):
|
|
||||||
""" str.rsplit seems to have been introduced in 2.4 :( """
|
|
||||||
l = []
|
|
||||||
i = 0
|
|
||||||
while i != max:
|
|
||||||
try: idx = toSplit.rindex(sub)
|
|
||||||
except ValueError: break
|
|
||||||
|
|
||||||
toSplit, splitOff = toSplit[:idx], toSplit[idx + len(sub):]
|
|
||||||
l.insert(0, splitOff)
|
|
||||||
i += 1
|
|
||||||
|
|
||||||
l.insert(0, toSplit)
|
|
||||||
return l
|
|
||||||
|
|
||||||
sconsDir = os.path.join("build", "scons")
|
|
||||||
SConscript(os.path.join(sconsDir, "SConscript_common"))
|
|
||||||
Import("Platform", "Posix", "ApiVer")
|
|
||||||
|
|
||||||
# SConscript_opts exports PortAudio options
|
|
||||||
optsDict = SConscript(os.path.join(sconsDir, "SConscript_opts"))
|
|
||||||
optionsCache = os.path.join(sconsDir, "options.cache") # Save options between runs in this cache
|
|
||||||
options = Options(optionsCache, args=ARGUMENTS)
|
|
||||||
for k in ("Installation Dirs", "Build Targets", "Host APIs", "Build Parameters", "Bindings"):
|
|
||||||
options.AddOptions(*optsDict[k])
|
|
||||||
# Propagate options into environment
|
|
||||||
env = Environment(options=options)
|
|
||||||
# Save options for next run
|
|
||||||
options.Save(optionsCache, env)
|
|
||||||
# Generate help text for options
|
|
||||||
env.Help(options.GenerateHelpText(env))
|
|
||||||
|
|
||||||
buildDir = os.path.join("#", sconsDir, env["PLATFORM"])
|
|
||||||
|
|
||||||
# Determine parameters to build tools
|
|
||||||
if Platform in Posix:
|
|
||||||
baseLinkFlags = threadCFlags = "-pthread"
|
|
||||||
baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags
|
|
||||||
debugCxxFlags = debugCFlags = "-g"
|
|
||||||
optCxxFlags = optCFlags = "-O2"
|
|
||||||
env["CCFLAGS"] = baseCFlags.split()
|
|
||||||
env["CXXFLAGS"] = baseCxxFlags.split()
|
|
||||||
env["LINKFLAGS"] = baseLinkFlags.split()
|
|
||||||
if env["enableDebug"]:
|
|
||||||
env.AppendUnique(CCFLAGS=debugCFlags.split())
|
|
||||||
env.AppendUnique(CXXFLAGS=debugCxxFlags.split())
|
|
||||||
if env["enableOptimize"]:
|
|
||||||
env.AppendUnique(CCFLAGS=optCFlags.split())
|
|
||||||
env.AppendUnique(CXXFLAGS=optCxxFlags.split())
|
|
||||||
if not env["enableAsserts"]:
|
|
||||||
env.AppendUnique(CPPDEFINES=["-DNDEBUG"])
|
|
||||||
if env["customCFlags"]:
|
|
||||||
env.Append(CCFLAGS=Split(env["customCFlags"]))
|
|
||||||
if env["customCxxFlags"]:
|
|
||||||
env.Append(CXXFLAGS=Split(env["customCxxFlags"]))
|
|
||||||
if env["customLinkFlags"]:
|
|
||||||
env.Append(LINKFLAGS=Split(env["customLinkFlags"]))
|
|
||||||
|
|
||||||
env.Append(CPPPATH=[os.path.join("#", "include"), "common"])
|
|
||||||
|
|
||||||
# Store all signatures in one file, otherwise .sconsign files will get installed along with our own files
|
|
||||||
env.SConsignFile(os.path.join(sconsDir, ".sconsign"))
|
|
||||||
|
|
||||||
env.SConscriptChdir(False)
|
|
||||||
sources, sharedLib, staticLib, tests, portEnv, hostApis = env.SConscript(os.path.join("src", "SConscript"),
|
|
||||||
build_dir=buildDir, duplicate=False, exports=["env"])
|
|
||||||
|
|
||||||
if Platform in Posix:
|
|
||||||
prefix = env["prefix"]
|
|
||||||
includeDir = os.path.join(prefix, "include")
|
|
||||||
libDir = os.path.join(prefix, "lib")
|
|
||||||
env.Alias("install", includeDir)
|
|
||||||
env.Alias("install", libDir)
|
|
||||||
|
|
||||||
# pkg-config
|
|
||||||
|
|
||||||
def installPkgconfig(env, target, source):
|
|
||||||
tgt = str(target[0])
|
|
||||||
src = str(source[0])
|
|
||||||
f = open(src)
|
|
||||||
try: txt = f.read()
|
|
||||||
finally: f.close()
|
|
||||||
txt = txt.replace("@prefix@", prefix)
|
|
||||||
txt = txt.replace("@exec_prefix@", prefix)
|
|
||||||
txt = txt.replace("@libdir@", libDir)
|
|
||||||
txt = txt.replace("@includedir@", includeDir)
|
|
||||||
txt = txt.replace("@LIBS@", " ".join(["-l%s" % l for l in portEnv["LIBS"]]))
|
|
||||||
txt = txt.replace("@THREAD_CFLAGS@", threadCFlags)
|
|
||||||
|
|
||||||
f = open(tgt, "w")
|
|
||||||
try: f.write(txt)
|
|
||||||
finally: f.close()
|
|
||||||
|
|
||||||
pkgconfigTgt = "portaudio-%d.0.pc" % int(ApiVer.split(".", 1)[0])
|
|
||||||
env.Command(os.path.join(libDir, "pkgconfig", pkgconfigTgt),
|
|
||||||
os.path.join("#", pkgconfigTgt + ".in"), installPkgconfig)
|
|
||||||
|
|
||||||
# Default to None, since if the user disables all targets and no Default is set, all targets
|
|
||||||
# are built by default
|
|
||||||
env.Default(None)
|
|
||||||
if env["enableTests"]:
|
|
||||||
env.Default(tests)
|
|
||||||
if env["enableShared"]:
|
|
||||||
env.Default(sharedLib)
|
|
||||||
|
|
||||||
if Platform in Posix:
|
|
||||||
def symlink(env, target, source):
|
|
||||||
trgt = str(target[0])
|
|
||||||
src = str(source[0])
|
|
||||||
|
|
||||||
if os.path.islink(trgt) or os.path.exists(trgt):
|
|
||||||
os.remove(trgt)
|
|
||||||
os.symlink(os.path.basename(src), trgt)
|
|
||||||
|
|
||||||
major, minor, micro = [int(c) for c in ApiVer.split(".")]
|
|
||||||
|
|
||||||
soFile = "%s.%s" % (os.path.basename(str(sharedLib[0])), ApiVer)
|
|
||||||
env.InstallAs(target=os.path.join(libDir, soFile), source=sharedLib)
|
|
||||||
# Install symlinks
|
|
||||||
symTrgt = os.path.join(libDir, soFile)
|
|
||||||
env.Command(os.path.join(libDir, "libportaudio.so.%d.%d" % (major, minor)),
|
|
||||||
symTrgt, symlink)
|
|
||||||
symTrgt = rsplit(symTrgt, ".", 1)[0]
|
|
||||||
env.Command(os.path.join(libDir, "libportaudio.so.%d" % major), symTrgt, symlink)
|
|
||||||
symTrgt = rsplit(symTrgt, ".", 1)[0]
|
|
||||||
env.Command(os.path.join(libDir, "libportaudio.so"), symTrgt, symlink)
|
|
||||||
|
|
||||||
if env["enableStatic"]:
|
|
||||||
env.Default(staticLib)
|
|
||||||
env.Install(libDir, staticLib)
|
|
||||||
|
|
||||||
env.Install(includeDir, os.path.join("include", "portaudio.h"))
|
|
||||||
|
|
||||||
|
|
||||||
if env["enableCxx"]:
|
|
||||||
env.SConscriptChdir(True)
|
|
||||||
cxxEnv = env.Copy()
|
|
||||||
sharedLibs, staticLibs, headers = env.SConscript(os.path.join("bindings", "cpp", "SConscript"),
|
|
||||||
exports={"env": cxxEnv, "buildDir": buildDir}, build_dir=os.path.join(buildDir, "portaudiocpp"), duplicate=False)
|
|
||||||
if env["enableStatic"]:
|
|
||||||
env.Default(staticLibs)
|
|
||||||
env.Install(libDir, staticLibs)
|
|
||||||
if env["enableShared"]:
|
|
||||||
env.Default(sharedLibs)
|
|
||||||
env.Install(libDir, sharedLibs)
|
|
||||||
env.Install(os.path.join(includeDir, "portaudiocpp"), headers)
|
|
||||||
|
|
||||||
# Generate portaudio_config.h header with compile-time definitions of which PA
|
|
||||||
# back-ends are available, and which includes back-end extension headers
|
|
||||||
|
|
||||||
# Host-specific headers
|
|
||||||
hostApiHeaders = {"ALSA": "pa_linux_alsa.h",
|
|
||||||
"ASIO": "pa_asio.h",
|
|
||||||
"COREAUDIO": "pa_mac_core.h",
|
|
||||||
"JACK": "pa_jack.h",
|
|
||||||
"WMME": "pa_winwmme.h",
|
|
||||||
}
|
|
||||||
|
|
||||||
def buildConfigH(target, source, env):
|
|
||||||
"""builder for portaudio_config.h"""
|
|
||||||
global hostApiHeaders, hostApis
|
|
||||||
out = ""
|
|
||||||
for hostApi in hostApis:
|
|
||||||
out += "#define PA_HAVE_%s\n" % hostApi
|
|
||||||
|
|
||||||
hostApiSpecificHeader = hostApiHeaders.get(hostApi, None)
|
|
||||||
if hostApiSpecificHeader:
|
|
||||||
out += "#include \"%s\"\n" % hostApiSpecificHeader
|
|
||||||
|
|
||||||
out += "\n"
|
|
||||||
# Strip the last newline
|
|
||||||
if out[-1] == "\n":
|
|
||||||
out = out[:-1]
|
|
||||||
|
|
||||||
f = file(str(target[0]), 'w')
|
|
||||||
try: f.write(out)
|
|
||||||
finally: f.close()
|
|
||||||
return 0
|
|
||||||
|
|
||||||
# Define the builder for the config header
|
|
||||||
env.Append(BUILDERS={"portaudioConfig": env.Builder(action=Action(buildConfigH,
|
|
||||||
"generating '$TARGET'"), target_factory=env.fs.File,)})
|
|
||||||
|
|
||||||
confH = env.portaudioConfig(File("portaudio_config.h", "include"),
|
|
||||||
File("portaudio.h", "include"))
|
|
||||||
env.Default(confH)
|
|
||||||
env.Install(os.path.join(includeDir, "portaudio"), confH)
|
|
||||||
|
|
||||||
for api in hostApis:
|
|
||||||
if api in hostApiHeaders:
|
|
||||||
env.Install(os.path.join(includeDir, "portaudio"),
|
|
||||||
File(hostApiHeaders[api], "include"))
|
|
@ -1,129 +0,0 @@
|
|||||||
/*
|
|
||||||
This file was a scribble area during the early phases of development.
|
|
||||||
|
|
||||||
It's out of date but will probably hang around untill all the content
|
|
||||||
has been cleaned out or found a new home.
|
|
||||||
|
|
||||||
Here's some tasks to undertake:
|
|
||||||
o- make sure that the @brief comments in each file are at least
|
|
||||||
as good as the file descriptions below, then delete the file
|
|
||||||
descriptions below.
|
|
||||||
|
|
||||||
o- make sure that the coding guidelines below appear in the
|
|
||||||
pa_proposals style guide, then delete from below.
|
|
||||||
|
|
||||||
o- verify and move the TODO items into TRAC
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
FILES:
|
|
||||||
|
|
||||||
portaudio.h
|
|
||||||
public api header file
|
|
||||||
|
|
||||||
pa_front.c
|
|
||||||
implements the interface defined in portaudio.h. manages multiple host apis.
|
|
||||||
validates function parameters before calling through to host apis. tracks
|
|
||||||
open streams and closes them at Pa_Terminate().
|
|
||||||
|
|
||||||
pa_util.h
|
|
||||||
declares utility functions for use my implementations. including utility
|
|
||||||
functions which must be implemented separately for each platform.
|
|
||||||
|
|
||||||
pa_hostapi.h
|
|
||||||
hostapi representation structure used to interface between pa_front.c
|
|
||||||
and implementations
|
|
||||||
|
|
||||||
pa_stream.c/h
|
|
||||||
stream interface and representation structures and helper functions
|
|
||||||
used to interface between pa_front.c and implementations
|
|
||||||
|
|
||||||
pa_cpuload.c/h
|
|
||||||
source and header for cpu load calculation facility
|
|
||||||
|
|
||||||
pa_trace.c/h
|
|
||||||
source and header for debug trace log facility
|
|
||||||
|
|
||||||
pa_converters.c/h
|
|
||||||
sample buffer conversion facility
|
|
||||||
|
|
||||||
pa_dither.c/h
|
|
||||||
dither noise generator
|
|
||||||
|
|
||||||
pa_process.c/h
|
|
||||||
callback buffer processing facility including interleave and block adaption
|
|
||||||
|
|
||||||
pa_allocation.c/h
|
|
||||||
allocation context for tracking groups of allocations
|
|
||||||
|
|
||||||
pa_skeleton.c
|
|
||||||
an skeleton implementation showing how the common code can be used.
|
|
||||||
|
|
||||||
pa_win_util.c
|
|
||||||
Win32 implementation of platform specific PaUtil functions (memory allocation,
|
|
||||||
usec clock, Pa_Sleep().) The file will be used with all Win32 host APIs.
|
|
||||||
|
|
||||||
pa_win_hostapis.c
|
|
||||||
contains the paHostApiInitializers array and an implementation of
|
|
||||||
Pa_GetDefaultHostApi() for win32 builds.
|
|
||||||
|
|
||||||
pa_win_wmme.c
|
|
||||||
Win32 host api implementation for the windows multimedia extensions audio API.
|
|
||||||
|
|
||||||
pa_win_wmme.h
|
|
||||||
public header file containing interfaces to mme-specific functions and the
|
|
||||||
deviceInfo data structure.
|
|
||||||
|
|
||||||
|
|
||||||
CODING GUIDELINES:
|
|
||||||
|
|
||||||
naming conventions:
|
|
||||||
#defines begin with PA_
|
|
||||||
#defines local to a file end with _
|
|
||||||
global utility variables begin with paUtil
|
|
||||||
global utility types begin with PaUtil (including function types)
|
|
||||||
global utility functions begin with PaUtil_
|
|
||||||
static variables end with _
|
|
||||||
static constants begin with const and end with _
|
|
||||||
static funtions have no special prefix/suffix
|
|
||||||
|
|
||||||
In general, implementations should declare all of their members static,
|
|
||||||
except for their initializer which should be exported. All exported names
|
|
||||||
should be preceeded by Pa<MN>_ where MN is the module name, for example
|
|
||||||
the windows mme initializer should be named PaWinWmme_Initialize().
|
|
||||||
|
|
||||||
Every host api should define an initializer which returns an error code
|
|
||||||
and a PaHostApiInterface*. The initializer should only return an error other
|
|
||||||
than paNoError if it encounters an unexpected and fatal error (memory allocation
|
|
||||||
error for example). In general, there may be conditions under which it returns
|
|
||||||
a NULL interface pointer and also returns paNoError. For example, if the ASIO
|
|
||||||
implementation detects that ASIO is not installed, it should return a
|
|
||||||
NULL interface, and paNoError.
|
|
||||||
|
|
||||||
Platform-specific shared functions should begin with Pa<PN>_ where PN is the
|
|
||||||
platform name. eg. PaWin_ for windows, PaUnix_ for unix.
|
|
||||||
|
|
||||||
The above two conventions should also be followed whenever it is necessary to
|
|
||||||
share functions accross multiple source files.
|
|
||||||
|
|
||||||
Two utilities for debug messages are provided. The PA_DEBUG macro defined in
|
|
||||||
pa_implementation.h provides a simple way to print debug messages to stderr.
|
|
||||||
Due to real-time performance issues, PA_DEBUG may not be suitable for use
|
|
||||||
within the portaudio processing callback, or in other threads. In such cases
|
|
||||||
the event tracing facility provided in pa_trace.h may be more appropriate.
|
|
||||||
|
|
||||||
If PA_LOG_API_CALLS is defined, all calls to the public PortAudio API
|
|
||||||
will be logged to stderr along with parameter and return values.
|
|
||||||
|
|
||||||
|
|
||||||
TODO: (these need to be turned into TRAC items)
|
|
||||||
write some new tests to exercise the multi-host-api functions
|
|
||||||
|
|
||||||
write (doxygen) documentation for pa_trace (phil?)
|
|
||||||
|
|
||||||
create a global configuration file which documents which PA_ defines can be
|
|
||||||
used for configuration
|
|
||||||
|
|
||||||
need a coding standard for comment formatting
|
|
||||||
|
|
||||||
write style guide document (ross)
|
|
@ -1,59 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
|
||||||
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
|
||||||
dnl also defines GSTUFF_PKG_ERRORS on error
|
|
||||||
AC_DEFUN([PKG_CHECK_MODULES], [
|
|
||||||
succeeded=no
|
|
||||||
|
|
||||||
if test -z "$PKG_CONFIG"; then
|
|
||||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$PKG_CONFIG" = "no" ; then
|
|
||||||
echo "*** The pkg-config script could not be found. Make sure it is"
|
|
||||||
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
|
||||||
echo "*** to the full path to pkg-config."
|
|
||||||
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
|
||||||
else
|
|
||||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
|
||||||
AC_MSG_CHECKING(for $2)
|
|
||||||
|
|
||||||
if $PKG_CONFIG --exists "$2" ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
succeeded=yes
|
|
||||||
|
|
||||||
AC_MSG_CHECKING($1_CFLAGS)
|
|
||||||
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
|
||||||
AC_MSG_RESULT($$1_CFLAGS)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING($1_LIBS)
|
|
||||||
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
|
||||||
AC_MSG_RESULT($$1_LIBS)
|
|
||||||
else
|
|
||||||
$1_CFLAGS=""
|
|
||||||
$1_LIBS=""
|
|
||||||
## If we have a custom action on failure, don't print errors, but
|
|
||||||
## do set a variable so people can do so.
|
|
||||||
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
|
||||||
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST($1_CFLAGS)
|
|
||||||
AC_SUBST($1_LIBS)
|
|
||||||
else
|
|
||||||
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
|
||||||
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $succeeded = yes; then
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
else
|
|
||||||
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
PortAudio Portable Real-Time Audio Library
|
|
||||||
Copyright (c) 1999-2006 Ross Bencina and Phil Burk
|
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
|
|
||||||
The text above constitutes the entire PortAudio license; however,
|
|
||||||
the PortAudio community also makes the following non-binding requests:
|
|
||||||
|
|
||||||
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. It is also
|
|
||||||
requested that these non-binding requests be included along with the
|
|
||||||
license above.
|
|
@ -1,178 +0,0 @@
|
|||||||
Note: Because PortAudioCpp is now in the main PortAudio SVN repository, having these per-release changelogs probably doesn't make much sense anymore. Perhaps it's better to just note mayor changes by date from now on.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 16 06/05/22:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Added up-to-date MSVC 6.0 projects created by David Moore. Besides MSVC 6.0 users, MSVC 7.0 users may use these projects and automatically convert them to MSVC 7.0 projects.
|
|
||||||
- Changed the code and projects (MSVC 7.1 only) to be up-to-date with PortAudio's new directory structure.
|
|
||||||
- Added equivalents of the PaAsio_GetInputChannelName() and PaAsio_GetOutputChannelName() functions to the AsioDeviceAdapter wrapper-class (missing functions pointed out by David Moore).
|
|
||||||
- Added code to PortAudio's main SVN repository.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 15 (unknown release date):
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Changed some exception handling code in HostApi's constructor.
|
|
||||||
- Added accessors to PortAudio PaStream from PortAudioCpp Stream (their absense being pointed out
|
|
||||||
by Tom Jordan).
|
|
||||||
- Fixed a bug/typo in MemFunToCallbackInterfaceAdapter::init() thanks to Fredrik Viklund.
|
|
||||||
- Fixed issue with concrete Stream classes possibly throwing an exception and fixed documentation w.r.t. this.
|
|
||||||
- Moved files to portaudio/binding/cpp/. Made new msvc 7.1 projects to reflect the change and removed msvc 6.0
|
|
||||||
and 7.0 projects (because I can no longer maintain them myself). Gnu projects will probably need updating.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 14 03/10/24:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Fixed some error handling bugs in Stream and System (pointed out by Tom Jordan).
|
|
||||||
- Updated documentation a little (main page).
|
|
||||||
- Fixed order of members so initializer list was in the right order in
|
|
||||||
StreamParameters (pointed out by Ludwig Schwardt).
|
|
||||||
- Added new lines at EOF's (as indicated by Ludwig Schwardt).
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 13 03/10/19:
|
|
||||||
|
|
||||||
lschwardt:
|
|
||||||
- Added build files for GNU/Linux.
|
|
||||||
- Fixed bug in Exception where the inherited what() member function (and destructor) had looser
|
|
||||||
exception specification (namely no exception specification, i.e. could throw anything) than
|
|
||||||
the std::exception base class's what() member function (which had throw(), i.e. no-throw guarantee).
|
|
||||||
- Changed the iterators so that they have a set of public typedefs instead of deriving the C++ standard
|
|
||||||
library std::iterator<> struct. G++ 2.95 doesn't support std::exception<> and composition-by-aggregation
|
|
||||||
is prefered over composition-by-inheritance in this case.
|
|
||||||
- Changed some minor things to avoid G++ warning messages.
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Renamed this file (/WHATSNEW.txt) to /CHANGELOG.
|
|
||||||
- Renamed /PA_ISSUES.txt to /PA_ISSUES.
|
|
||||||
- Added /INSTALL file with some build info for GNU/Linux and VC6.
|
|
||||||
- Added MSVC 6.0 projects for building PortAudioCpp as a staticly or dynamically linkable library.
|
|
||||||
- Moved build files to /build/(gnu/ or vc6/).
|
|
||||||
- Moved Doxygen configuration files to /doc/ and output to /doc/api_reference/.
|
|
||||||
- Added a /doc/README with some info how to generate Doxygen documentation.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 12 03/09/02:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Updated code to reflect changes on V19-devel CVS branch.
|
|
||||||
- Fixed some typos in the documentation.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 11 03/07/31:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Renamed SingleDirecionStreamParameters to DirectionSpecificStreamParameters.
|
|
||||||
- Implemented BlockingStream.
|
|
||||||
- Updated code to reflect recent changes to PortAudio V19-devel.
|
|
||||||
- Fixed a potential memory leak when an exception was thrown in the HostApi
|
|
||||||
constructor.
|
|
||||||
- Renamed ``Latency'' to ``BufferSize'' in AsioDeviceAdapter.
|
|
||||||
- Updated class documentation.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 10 03/07/18:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- SingleDirectionStreamParameters now has a (static) null() method.
|
|
||||||
- StreamParameters uses references for the direction-specific stream parameters
|
|
||||||
instead of pointers (use null() method (above) instead of NULL).
|
|
||||||
- StreamParameters and SingleDirectionStreamParameters must now be fully specified
|
|
||||||
and now default values are used (because this was not very useful in general and
|
|
||||||
only made things more complex).
|
|
||||||
- Updated documentation.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 09 03/06/25:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Changed some things in SingleDirectionStreamParameters to ease it's usage.
|
|
||||||
- Placed all SingleDirectionStreamParameters stuff into a separate file.
|
|
||||||
+ Totally redid the callback stuff, now it's less ackward and supports C++ functions.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 08 03/06/20:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Made deconstructors for Device and HostApi private.
|
|
||||||
+ Added a AsioDeviceWrapper host api specific device extension class.
|
|
||||||
- Refactored Exception into a Exception base class and PaException and PaCppException
|
|
||||||
derived classes.
|
|
||||||
- Added ASIO specific device info to the devs.cxx example.
|
|
||||||
- Fixed a bug in System::hostApiCount() and System::defaultHostApi().
|
|
||||||
+ Moved Device::null to System::nullDevice.
|
|
||||||
- Fixed some bugs in Device and System.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 07 03/06/08:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Updated some doxy comments.
|
|
||||||
+ Renamed CbXyz to CallbackXyz.
|
|
||||||
+ Renamed all ``configurations'' to ``parameters''.
|
|
||||||
+ Renamed HalfDuplexStreamConfiguration to SingleDirectionStreamConfiguration.
|
|
||||||
- Renamed SingleDirectionStreamParameters::streamParameters() to
|
|
||||||
SingleDirectionStreamParameters::paSteamParameters.
|
|
||||||
- Added a non-constant version of SingleDirectionStreamParameters::paStreamParameters().
|
|
||||||
- A few improvements to SingleDirectionStreamParameters.
|
|
||||||
- Allowed AutoSystem to be created without initializing the System singleton
|
|
||||||
(using a ctor flag).
|
|
||||||
- Added a BlockingStream class (not implemented for now).
|
|
||||||
- Fixed many bugs in the implementation of the iterators.
|
|
||||||
- Fixed a bug in Device::operator==().
|
|
||||||
+ Added a C++ version of the patest_sine.c test/example.
|
|
||||||
- Added a ctor for StreamParameters for a default half-duplex stream.
|
|
||||||
- Added SingleDirectionStreamParameters::setDevice() and setNumChannels().
|
|
||||||
- Renamed System::numHostApis() to System::hostApiCount().
|
|
||||||
+ Rewrote the iterators and related classes. They are now fully STL compliant. The System now
|
|
||||||
has a static array of all HostApis and all Devices. Only the System can create HostApis and
|
|
||||||
Devices and they are non-copyable now. All HostApis and Devices are now passed by-reference.
|
|
||||||
- Renamed (System::) getVersion() to version() and getVersionText() to versionText().
|
|
||||||
- Renamed (Device::) numXyzChannels() to maxXyzChannels().
|
|
||||||
- Changed some stuff in StreamParameters.
|
|
||||||
+ Added a C++ version of the patest_devs.c test/example.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 06 03/06/04:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
+ Added this file to the project (roughly, a `+' denotes a major change, a `-' a minor change).
|
|
||||||
- Added System::deviceByIndex(), useful when a Device's index is stored for instance.
|
|
||||||
- Renamed System::hostApiFromTypeId() to System::hostApiByTypeId().
|
|
||||||
- Updated and added some Doxygen documentation.
|
|
||||||
- Made Stream::usedIntputLatency(), Stream::usedOutputLatency() and
|
|
||||||
Stream::usedSampleRate() throw an paInternalError equivalent exception instead of paBadStreamPtr.
|
|
||||||
- Changed exception handling in Stream::open() functions. They now follow the PA error handling
|
|
||||||
mechanism better and a couple of bugs regarding ownership of objects were fixed.
|
|
||||||
- Renamed Device::isDefaultXyzDevice() to Device::isSystemDefaultXyzDevice().
|
|
||||||
- Added Device::isHostApiDefaultXyzDevice().
|
|
||||||
- Added StreamConfiguration::unsetFlag().
|
|
||||||
- Removed CUSTOM from SampleDataFormat.
|
|
||||||
- System::hostApiByTypeId() now throws an paInternalError if the type id was out-of-range; this
|
|
||||||
is a temporary work-around (see comments).
|
|
||||||
- Changed CbInterface to use paCallbackFun() instead of operator()().
|
|
||||||
- Renamed ``object'' to ``instance'' in CbMemFunAdapter.hxx.
|
|
||||||
- Added StreamConfiguration::setXyzHostApiSpecificSampleFormat().
|
|
||||||
- Added StreamConfiguration::isXyzSampleFormatHostApiSpecific().
|
|
||||||
- Changed error handling in System::terminate(), it can now throw an Exception.
|
|
||||||
- Added error handling in System::defaultHostApi().
|
|
||||||
- Added error handling in System::hostApisEnd().
|
|
||||||
- Changed some (but probably not all) C casts to C++ casts to avoid confusion with a
|
|
||||||
certain Python person.
|
|
||||||
- Renamed RaiiSystem to AutoSystem (class and file) as this is a come common convention.
|
|
||||||
- Renamed System::numDevices() to System::deviceCount() to be more compatible with PortAudio
|
|
||||||
(although PortAudio uses Pa_CountDevices() instead, see comment).
|
|
||||||
- Renamed HostApi::numDevices() to HostApi::deviceCount().
|
|
||||||
- Changed INC_ to INCLUDED_ in the header multiple include guards.
|
|
||||||
- Changed the order of functions in the StreamConfiguration class' header.
|
|
||||||
- Written some more info in PortAudioCpp.hxx (Doxygen).
|
|
||||||
- Added CallbackStream.hxx and CallbackStream.cxx files.
|
|
||||||
+ Refactored StreamConfiguration to remove the duplication which was there. There is now a
|
|
||||||
HalfDuplexStreamConfiguration class. Also made some improvements to these classes while
|
|
||||||
doing the refactoring.
|
|
||||||
+ Moved all code files to source/portaudiocpp/ and changed includes.
|
|
||||||
+ Moved all header files to include/portaudiocpp/ to easy a binary build if needed. The project
|
|
||||||
must be set to have .../include/ as a path to look for includes.
|
|
||||||
+ Refactored the Stream class into a Stream base class and a CallbackStream derived class.
|
|
||||||
- Renamed Stream::usingXyz() to Stream::xyz().
|
|
||||||
- Updated some doxy comments.
|
|
||||||
- Changed ``using namespace portaudio'' in .cxx files to ``namespace portaudio { ... }''.
|
|
||||||
|
|
||||||
PortAudioCpp v19 revision 05 03/04/09:
|
|
||||||
|
|
||||||
mblaauw:
|
|
||||||
- Initial release on the PortAudio mailinglist.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,236 +0,0 @@
|
|||||||
Installation Instructions
|
|
||||||
*************************
|
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
|
||||||
Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
|
||||||
unlimited permission to copy, distribute and modify it.
|
|
||||||
|
|
||||||
Basic Installation
|
|
||||||
==================
|
|
||||||
|
|
||||||
These are generic installation instructions.
|
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
|
||||||
various system-dependent variables used during compilation. It uses
|
|
||||||
those values to create a `Makefile' in each directory of the package.
|
|
||||||
It may also create one or more `.h' files containing system-dependent
|
|
||||||
definitions. Finally, it creates a shell script `config.status' that
|
|
||||||
you can run in the future to recreate the current configuration, and a
|
|
||||||
file `config.log' containing compiler output (useful mainly for
|
|
||||||
debugging `configure').
|
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
|
||||||
the results of its tests to speed up reconfiguring. (Caching is
|
|
||||||
disabled by default to prevent problems with accidental use of stale
|
|
||||||
cache files.)
|
|
||||||
|
|
||||||
If you need to do unusual things to compile the package, please try
|
|
||||||
to figure out how `configure' could check whether to do them, and mail
|
|
||||||
diffs or instructions to the address given in the `README' so they can
|
|
||||||
be considered for the next release. If you are using the cache, and at
|
|
||||||
some point `config.cache' contains results you don't want to keep, you
|
|
||||||
may remove or edit it.
|
|
||||||
|
|
||||||
The file `configure.ac' (or `configure.in') is used to create
|
|
||||||
`configure' by a program called `autoconf'. You only need
|
|
||||||
`configure.ac' if you want to change it or regenerate `configure' using
|
|
||||||
a newer version of `autoconf'.
|
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
|
||||||
`./configure' to configure the package for your system. If you're
|
|
||||||
using `csh' on an old version of System V, you might need to type
|
|
||||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
|
||||||
`configure' itself.
|
|
||||||
|
|
||||||
Running `configure' takes awhile. While running, it prints some
|
|
||||||
messages telling which features it is checking for.
|
|
||||||
|
|
||||||
2. Type `make' to compile the package.
|
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
|
||||||
the package.
|
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
5. You can remove the program binaries and object files from the
|
|
||||||
source code directory by typing `make clean'. To also remove the
|
|
||||||
files that `configure' created (so you can compile the package for
|
|
||||||
a different kind of computer), type `make distclean'. There is
|
|
||||||
also a `make maintainer-clean' target, but that is intended mainly
|
|
||||||
for the package's developers. If you use it, you may have to get
|
|
||||||
all sorts of other programs in order to regenerate files that came
|
|
||||||
with the distribution.
|
|
||||||
|
|
||||||
Compilers and Options
|
|
||||||
=====================
|
|
||||||
|
|
||||||
Some systems require unusual options for compilation or linking that the
|
|
||||||
`configure' script does not know about. Run `./configure --help' for
|
|
||||||
details on some of the pertinent environment variables.
|
|
||||||
|
|
||||||
You can give `configure' initial values for configuration parameters
|
|
||||||
by setting variables in the command line or in the environment. Here
|
|
||||||
is an example:
|
|
||||||
|
|
||||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
|
||||||
|
|
||||||
*Note Defining Variables::, for more details.
|
|
||||||
|
|
||||||
Compiling For Multiple Architectures
|
|
||||||
====================================
|
|
||||||
|
|
||||||
You can compile the package for more than one kind of computer at the
|
|
||||||
same time, by placing the object files for each architecture in their
|
|
||||||
own directory. To do this, you must use a version of `make' that
|
|
||||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
|
||||||
directory where you want the object files and executables to go and run
|
|
||||||
the `configure' script. `configure' automatically checks for the
|
|
||||||
source code in the directory that `configure' is in and in `..'.
|
|
||||||
|
|
||||||
If you have to use a `make' that does not support the `VPATH'
|
|
||||||
variable, you have to compile the package for one architecture at a
|
|
||||||
time in the source code directory. After you have installed the
|
|
||||||
package for one architecture, use `make distclean' before reconfiguring
|
|
||||||
for another architecture.
|
|
||||||
|
|
||||||
Installation Names
|
|
||||||
==================
|
|
||||||
|
|
||||||
By default, `make install' installs the package's commands under
|
|
||||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
|
||||||
can specify an installation prefix other than `/usr/local' by giving
|
|
||||||
`configure' the option `--prefix=PREFIX'.
|
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
|
||||||
architecture-specific files and architecture-independent files. If you
|
|
||||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
|
||||||
PREFIX as the prefix for installing programs and libraries.
|
|
||||||
Documentation and other data files still use the regular prefix.
|
|
||||||
|
|
||||||
In addition, if you use an unusual directory layout you can give
|
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
|
||||||
you can set and what kinds of files go in them.
|
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
|
||||||
|
|
||||||
Optional Features
|
|
||||||
=================
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
|
||||||
is something like `gnu-as' or `x' (for the X Window System). The
|
|
||||||
`README' should mention any `--enable-' and `--with-' options that the
|
|
||||||
package recognizes.
|
|
||||||
|
|
||||||
For packages that use the X Window System, `configure' can usually
|
|
||||||
find the X include and library files automatically, but if it doesn't,
|
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
|
||||||
`--x-libraries=DIR' to specify their locations.
|
|
||||||
|
|
||||||
Specifying the System Type
|
|
||||||
==========================
|
|
||||||
|
|
||||||
There may be some features `configure' cannot figure out automatically,
|
|
||||||
but needs to determine by the type of machine the package will run on.
|
|
||||||
Usually, assuming the package is built to be run on the _same_
|
|
||||||
architectures, `configure' can figure that out, but if it prints a
|
|
||||||
message saying it cannot guess the machine type, give it the
|
|
||||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
|
||||||
type, such as `sun4', or a canonical name which has the form:
|
|
||||||
|
|
||||||
CPU-COMPANY-SYSTEM
|
|
||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
|
||||||
|
|
||||||
OS KERNEL-OS
|
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
|
||||||
need to know the machine type.
|
|
||||||
|
|
||||||
If you are _building_ compiler tools for cross-compiling, you should
|
|
||||||
use the option `--target=TYPE' to select the type of system they will
|
|
||||||
produce code for.
|
|
||||||
|
|
||||||
If you want to _use_ a cross compiler, that generates code for a
|
|
||||||
platform different from the build platform, you should specify the
|
|
||||||
"host" platform (i.e., that on which the generated programs will
|
|
||||||
eventually be run) with `--host=TYPE'.
|
|
||||||
|
|
||||||
Sharing Defaults
|
|
||||||
================
|
|
||||||
|
|
||||||
If you want to set default values for `configure' scripts to share, you
|
|
||||||
can create a site shell script called `config.site' that gives default
|
|
||||||
values for variables like `CC', `cache_file', and `prefix'.
|
|
||||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
|
||||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
|
||||||
`CONFIG_SITE' environment variable to the location of the site script.
|
|
||||||
A warning: not all `configure' scripts look for a site script.
|
|
||||||
|
|
||||||
Defining Variables
|
|
||||||
==================
|
|
||||||
|
|
||||||
Variables not defined in a site shell script can be set in the
|
|
||||||
environment passed to `configure'. However, some packages may run
|
|
||||||
configure again during the build, and the customized values of these
|
|
||||||
variables may be lost. In order to avoid this problem, you should set
|
|
||||||
them in the `configure' command line, using `VAR=value'. For example:
|
|
||||||
|
|
||||||
./configure CC=/usr/local2/bin/gcc
|
|
||||||
|
|
||||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
|
||||||
overridden in the site shell script). Here is a another example:
|
|
||||||
|
|
||||||
/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
|
||||||
|
|
||||||
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
|
|
||||||
configuration-related scripts to be executed by `/bin/bash'.
|
|
||||||
|
|
||||||
`configure' Invocation
|
|
||||||
======================
|
|
||||||
|
|
||||||
`configure' recognizes the following options to control how it operates.
|
|
||||||
|
|
||||||
`--help'
|
|
||||||
`-h'
|
|
||||||
Print a summary of the options to `configure', and exit.
|
|
||||||
|
|
||||||
`--version'
|
|
||||||
`-V'
|
|
||||||
Print the version of Autoconf used to generate the `configure'
|
|
||||||
script, and exit.
|
|
||||||
|
|
||||||
`--cache-file=FILE'
|
|
||||||
Enable the cache: use and save the results of the tests in FILE,
|
|
||||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
|
||||||
disable caching.
|
|
||||||
|
|
||||||
`--config-cache'
|
|
||||||
`-C'
|
|
||||||
Alias for `--cache-file=config.cache'.
|
|
||||||
|
|
||||||
`--quiet'
|
|
||||||
`--silent'
|
|
||||||
`-q'
|
|
||||||
Do not print messages saying which checks are being made. To
|
|
||||||
suppress all normal output, redirect it to `/dev/null' (any error
|
|
||||||
messages will still be shown).
|
|
||||||
|
|
||||||
`--srcdir=DIR'
|
|
||||||
Look for the package's source code in directory DIR. Usually
|
|
||||||
`configure' can determine that directory automatically.
|
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
|
||||||
`configure --help' for more details.
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
SUBDIRS = lib include bin
|
|
||||||
#doc
|
|
||||||
|
|
||||||
EXTRA_DIST = portaudiocpp.pc
|
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
|
||||||
pkgconfig_DATA = portaudiocpp.pc
|
|
@ -1,64 +0,0 @@
|
|||||||
import os.path
|
|
||||||
|
|
||||||
Import("env", "buildDir")
|
|
||||||
env.Append(CPPPATH="include")
|
|
||||||
|
|
||||||
ApiVer = "0.0.12"
|
|
||||||
Major, Minor, Micro = [int(c) for c in ApiVer.split(".")]
|
|
||||||
|
|
||||||
sharedLibs = []
|
|
||||||
staticLibs = []
|
|
||||||
Import("Platform", "Posix")
|
|
||||||
if Platform in Posix:
|
|
||||||
env["SHLIBSUFFIX"] = ".so.%d.%d.%d" % (Major, Minor, Micro)
|
|
||||||
soFile = "libportaudiocpp.so"
|
|
||||||
env.AppendUnique(SHLINKFLAGS="-Wl,-soname=%s.%d" % (soFile, Major))
|
|
||||||
|
|
||||||
# Create symlinks
|
|
||||||
def symlink(env, target, source):
|
|
||||||
trgt = str(target[0])
|
|
||||||
src = str(source[0])
|
|
||||||
if os.path.islink(trgt) or os.path.exists(trgt):
|
|
||||||
os.remove(trgt)
|
|
||||||
os.symlink(os.path.basename(src), trgt)
|
|
||||||
lnk0 = env.Command(soFile + ".%d" % (Major), soFile + ".%d.%d.%d" % (Major, Minor, Micro), symlink)
|
|
||||||
lnk1 = env.Command(soFile, soFile + ".%d" % (Major), symlink)
|
|
||||||
sharedLibs.append(lnk0)
|
|
||||||
sharedLibs.append(lnk1)
|
|
||||||
|
|
||||||
src = [os.path.join("source", "portaudiocpp", "%s.cxx" % f) for f in ("BlockingStream", "CallbackInterface", \
|
|
||||||
"CallbackStream", "CFunCallbackStream","CppFunCallbackStream", "Device",
|
|
||||||
"DirectionSpecificStreamParameters", "Exception", "HostApi", "InterfaceCallbackStream",
|
|
||||||
"MemFunCallbackStream", "Stream", "StreamParameters", "System", "SystemDeviceIterator",
|
|
||||||
"SystemHostApiIterator")]
|
|
||||||
env.Append(LIBS="portaudio", LIBPATH=buildDir)
|
|
||||||
sharedLib = env.SharedLibrary("portaudiocpp", src, LIBS=["portaudio"])
|
|
||||||
staticLib = env.Library("portaudiocpp", src, LIBS=["portaudio"])
|
|
||||||
sharedLibs.append(sharedLib)
|
|
||||||
staticLibs.append(staticLib)
|
|
||||||
|
|
||||||
headers = Split("""AutoSystem.hxx
|
|
||||||
BlockingStream.hxx
|
|
||||||
CallbackInterface.hxx
|
|
||||||
CallbackStream.hxx
|
|
||||||
CFunCallbackStream.hxx
|
|
||||||
CppFunCallbackStream.hxx
|
|
||||||
Device.hxx
|
|
||||||
DirectionSpecificStreamParameters.hxx
|
|
||||||
Exception.hxx
|
|
||||||
HostApi.hxx
|
|
||||||
InterfaceCallbackStream.hxx
|
|
||||||
MemFunCallbackStream.hxx
|
|
||||||
PortAudioCpp.hxx
|
|
||||||
SampleDataFormat.hxx
|
|
||||||
Stream.hxx
|
|
||||||
StreamParameters.hxx
|
|
||||||
SystemDeviceIterator.hxx
|
|
||||||
SystemHostApiIterator.hxx
|
|
||||||
System.hxx
|
|
||||||
""")
|
|
||||||
if env["PLATFORM"] == "win32":
|
|
||||||
headers.append("AsioDeviceAdapter.hxx")
|
|
||||||
headers = [File(os.path.join("include", "portaudiocpp", h)) for h in headers]
|
|
||||||
|
|
||||||
Return("sharedLibs", "staticLibs", "headers")
|
|
@ -1,9 +0,0 @@
|
|||||||
BINDIR = $(top_srcdir)/example
|
|
||||||
LIBDIR = $(top_builddir)/lib
|
|
||||||
|
|
||||||
noinst_PROGRAMS = devs sine
|
|
||||||
|
|
||||||
LDADD = $(LIBDIR)/libportaudiocpp.la
|
|
||||||
|
|
||||||
devs_SOURCES = $(BINDIR)/devs.cxx
|
|
||||||
sine_SOURCES = $(BINDIR)/sine.cxx
|
|
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Makefile template for PortAudioCpp
|
|
||||||
# Ludwig Schwardt
|
|
||||||
# 01/10/2003
|
|
||||||
#
|
|
||||||
# Not much to edit here - rather check configure.ac
|
|
||||||
#
|
|
||||||
|
|
||||||
PREFIX = @prefix@
|
|
||||||
CC = @CC@
|
|
||||||
CXX = @CXX@
|
|
||||||
CFLAGS = @CFLAGS@ @DEFS@
|
|
||||||
CXXFLAGS = @CXXFLAGS@
|
|
||||||
SHARED_FLAGS = @SHARED_FLAGS@
|
|
||||||
LIBS = @LIBS@
|
|
||||||
DLL_LIBS = @DLL_LIBS@
|
|
||||||
AR = @AR@
|
|
||||||
RANLIB = @RANLIB@
|
|
||||||
INSTALL = @INSTALL@
|
|
||||||
|
|
||||||
PACPP_ROOT = @PACPP_ROOT@
|
|
||||||
PORTAUDIO = @PORTAUDIO@
|
|
||||||
PADLL = @PADLL@
|
|
||||||
PACPP_DLL = @PACPP_DLL@
|
|
||||||
PALIB = libportaudio.a
|
|
||||||
PACPP_LIB = libportaudiocpp.a
|
|
||||||
PACPP_DLLV = $(PACPP_DLL).0.0.12
|
|
||||||
|
|
||||||
SRCDIR = $(PACPP_ROOT)/source/portaudiocpp
|
|
||||||
BINDIR = $(PACPP_ROOT)/example
|
|
||||||
LIBDIR = $(PACPP_ROOT)/lib
|
|
||||||
DOCDIR = $(PACPP_ROOT)/doc
|
|
||||||
|
|
||||||
OBJS = \
|
|
||||||
$(SRCDIR)/BlockingStream.o \
|
|
||||||
$(SRCDIR)/CallbackInterface.o \
|
|
||||||
$(SRCDIR)/CallbackStream.o \
|
|
||||||
$(SRCDIR)/CFunCallbackStream.o \
|
|
||||||
$(SRCDIR)/CppFunCallbackStream.o \
|
|
||||||
$(SRCDIR)/Device.o \
|
|
||||||
$(SRCDIR)/DirectionSpecificStreamParameters.o \
|
|
||||||
$(SRCDIR)/Exception.o \
|
|
||||||
$(SRCDIR)/HostApi.o \
|
|
||||||
$(SRCDIR)/InterfaceCallbackStream.o \
|
|
||||||
$(SRCDIR)/MemFunCallbackStream.o \
|
|
||||||
$(SRCDIR)/Stream.o \
|
|
||||||
$(SRCDIR)/StreamParameters.o \
|
|
||||||
$(SRCDIR)/System.o \
|
|
||||||
$(SRCDIR)/SystemDeviceIterator.o \
|
|
||||||
$(SRCDIR)/SystemHostApiIterator.o
|
|
||||||
|
|
||||||
# Not supported yet
|
|
||||||
# $(SRCDIR)/AsioDeviceAdapter.o
|
|
||||||
|
|
||||||
EXAMPLES = \
|
|
||||||
$(BINDIR)/devs \
|
|
||||||
$(BINDIR)/sine
|
|
||||||
|
|
||||||
.PHONY: all clean docs
|
|
||||||
|
|
||||||
all: $(EXAMPLES) $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLL)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf $(SRCDIR)/*.o $(BINDIR)/*.o $(EXAMPLES) $(LIBDIR) $(DOCDIR)/api_reference
|
|
||||||
rm -rf autom4te.cache config.status config.log
|
|
||||||
|
|
||||||
docs:
|
|
||||||
cd $(DOCDIR); doxygen config.doxy.linux
|
|
||||||
|
|
||||||
%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
%.o: %.cxx
|
|
||||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
$(EXAMPLES): $(BINDIR)/%: $(BINDIR)/%.o $(OBJS)
|
|
||||||
$(CXX) $^ -o $@ $(LIBS)
|
|
||||||
|
|
||||||
$(LIBDIR)/$(PACPP_LIB): $(LIBDIR) $(OBJS)
|
|
||||||
$(AR) ruv $(LIBDIR)/$(PACPP_LIB) $(OBJS)
|
|
||||||
$(RANLIB) $(LIBDIR)/$(PACPP_LIB)
|
|
||||||
|
|
||||||
$(LIBDIR)/$(PACPP_DLLV): $(LIBDIR) $(OBJS)
|
|
||||||
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLLV) $(OBJS) $(DLL_LIBS)
|
|
||||||
|
|
||||||
$(LIBDIR)/$(PACPP_DLL): $(LIBDIR) $(OBJS)
|
|
||||||
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLL) $(OBJS) $(DLL_LIBS)
|
|
||||||
|
|
||||||
#install: $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLLV)
|
|
||||||
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_DLLV) $(PREFIX)/lib/$(PACPP_DLLV)
|
|
||||||
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_LIB) $(PREFIX)/lib/$(PACPP_LIB)
|
|
||||||
# cd $(PREFIX)/lib && rm -f $(PACPP_DLL) && ln -s $(PACPP_DLLV) $(PACPP_DLL)
|
|
||||||
# @echo ""
|
|
||||||
# @echo "------------------------------------------------------------"
|
|
||||||
# @echo "PortAudioCpp was successfully installed."
|
|
||||||
# @echo ""
|
|
||||||
# @echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
|
|
||||||
# @echo "to make the shared object available. You may also need to"
|
|
||||||
# @echo "modify your LD_LIBRARY_PATH environment variable to include"
|
|
||||||
# @echo "the directory $(PREFIX)/lib"
|
|
||||||
# @echo "------------------------------------------------------------"
|
|
||||||
# @echo ""
|
|
||||||
|
|
||||||
$(LIBDIR):
|
|
||||||
mkdir $(LIBDIR)
|
|
57
libs/portaudio/bindings/cpp/build/gnu/aclocal.m4
vendored
57
libs/portaudio/bindings/cpp/build/gnu/aclocal.m4
vendored
@ -1,57 +0,0 @@
|
|||||||
|
|
||||||
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
|
||||||
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
|
||||||
dnl also defines GSTUFF_PKG_ERRORS on error
|
|
||||||
AC_DEFUN(PKG_CHECK_MODULES, [
|
|
||||||
succeeded=no
|
|
||||||
|
|
||||||
if test -z "$PKG_CONFIG"; then
|
|
||||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$PKG_CONFIG" = "no" ; then
|
|
||||||
echo "*** The pkg-config script could not be found. Make sure it is"
|
|
||||||
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
|
||||||
echo "*** to the full path to pkg-config."
|
|
||||||
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
|
||||||
else
|
|
||||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
|
||||||
AC_MSG_CHECKING(for $2)
|
|
||||||
|
|
||||||
if $PKG_CONFIG --exists "$2" ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
succeeded=yes
|
|
||||||
|
|
||||||
AC_MSG_CHECKING($1_CFLAGS)
|
|
||||||
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
|
||||||
AC_MSG_RESULT($$1_CFLAGS)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING($1_LIBS)
|
|
||||||
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
|
||||||
AC_MSG_RESULT($$1_LIBS)
|
|
||||||
else
|
|
||||||
$1_CFLAGS=""
|
|
||||||
$1_LIBS=""
|
|
||||||
## If we have a custom action on failure, don't print errors, but
|
|
||||||
## do set a variable so people can do so.
|
|
||||||
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
|
||||||
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST($1_CFLAGS)
|
|
||||||
AC_SUBST($1_LIBS)
|
|
||||||
else
|
|
||||||
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
|
||||||
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $succeeded = yes; then
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
else
|
|
||||||
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
1308
libs/portaudio/bindings/cpp/build/gnu/config.guess
vendored
1308
libs/portaudio/bindings/cpp/build/gnu/config.guess
vendored
File diff suppressed because it is too large
Load Diff
1505
libs/portaudio/bindings/cpp/build/gnu/config.sub
vendored
1505
libs/portaudio/bindings/cpp/build/gnu/config.sub
vendored
File diff suppressed because it is too large
Load Diff
4297
libs/portaudio/bindings/cpp/build/gnu/configure
vendored
4297
libs/portaudio/bindings/cpp/build/gnu/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,214 +0,0 @@
|
|||||||
#
|
|
||||||
# PortAudioCpp V19 autoconf input file
|
|
||||||
# Shamelessly ripped from the PortAudio one by Dominic Mazzoni
|
|
||||||
# Ludwig Schwardt
|
|
||||||
#
|
|
||||||
|
|
||||||
# Require autoconf >= 2.13
|
|
||||||
AC_PREREQ(2.13)
|
|
||||||
|
|
||||||
AC_INIT([PortAudioCpp], [12])
|
|
||||||
AC_CONFIG_SRCDIR([../../include/portaudiocpp/PortAudioCpp.hxx])
|
|
||||||
|
|
||||||
###### Top-level directory of pacpp
|
|
||||||
###### This makes it easy to shuffle the build directories
|
|
||||||
###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
|
|
||||||
PACPP_ROOT="../.."
|
|
||||||
|
|
||||||
######
|
|
||||||
###### SET THIS TO PORTAUDIO DIRECTORY
|
|
||||||
######
|
|
||||||
PORTAUDIO="$PACPP_ROOT/../portaudio"
|
|
||||||
|
|
||||||
# Various other variables and flags
|
|
||||||
|
|
||||||
PACPP_INC="$PACPP_ROOT/include"
|
|
||||||
INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
|
|
||||||
CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
|
|
||||||
CXXFLAGS="$CFLAGS"
|
|
||||||
PALIBDIR="$PORTAUDIO/lib"
|
|
||||||
|
|
||||||
# Checks for programs
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_CXX
|
|
||||||
AC_PROG_LN_S
|
|
||||||
AC_PROG_RANLIB
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_PATH_PROG(AR, ar, no)
|
|
||||||
if [[ $AR = "no" ]] ; then
|
|
||||||
AC_MSG_ERROR("Could not find ar - needed to create a library");
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This must be one of the first tests we do or it will fail...
|
|
||||||
AC_C_BIGENDIAN
|
|
||||||
|
|
||||||
# Transfer these variables to the Makefile
|
|
||||||
AC_SUBST(PACPP_ROOT)
|
|
||||||
AC_SUBST(PORTAUDIO)
|
|
||||||
AC_SUBST(PADLL)
|
|
||||||
AC_SUBST(PACPP_DLL)
|
|
||||||
AC_SUBST(PACPP_INC)
|
|
||||||
AC_SUBST(SHARED_FLAGS)
|
|
||||||
AC_SUBST(DLL_LIBS)
|
|
||||||
AC_SUBST(CXXFLAGS)
|
|
||||||
|
|
||||||
##################### CHECK FOR INSTALLED PACKAGES ############################
|
|
||||||
|
|
||||||
# checks for various host APIs and arguments to configure that
|
|
||||||
# turn them on or off
|
|
||||||
|
|
||||||
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
|
|
||||||
|
|
||||||
# Determine the host description for the subsequent test.
|
|
||||||
# PKG_CHECK_MODULES seems to check and set the host variable also, but
|
|
||||||
# that then requires pkg-config availability which is not standard on
|
|
||||||
# MinGW systems and can be a pain to install.
|
|
||||||
AC_CANONICAL_HOST
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)
|
|
||||||
|
|
||||||
AC_ARG_WITH(alsa,
|
|
||||||
[ --with-alsa (default=auto)],
|
|
||||||
with_alsa=$withval, with_alsa="yes")
|
|
||||||
|
|
||||||
AC_ARG_WITH(jack,
|
|
||||||
[ --with-jack (default=auto)],
|
|
||||||
with_jack=$withval, with_jack="yes")
|
|
||||||
|
|
||||||
AC_ARG_WITH(oss,
|
|
||||||
[ --with-oss (default=yes)],
|
|
||||||
with_oss=$withval, with_oss="yes")
|
|
||||||
|
|
||||||
AC_ARG_WITH(host_os,
|
|
||||||
[ --with-host_os (no default)],
|
|
||||||
host_os=$withval)
|
|
||||||
|
|
||||||
AC_ARG_WITH(winapi,
|
|
||||||
[ --with-winapi ((wmme/directx/asio) default=wmme)],
|
|
||||||
with_winapi=$withval, with_winapi="wmme")
|
|
||||||
|
|
||||||
# Mac API added for ASIO, can have other api's listed
|
|
||||||
AC_ARG_WITH(macapi,
|
|
||||||
[ --with-macapi (asio) default=asio)],
|
|
||||||
with_macapi=$withval, with_macapi="asio")
|
|
||||||
|
|
||||||
AC_ARG_WITH(asiodir,
|
|
||||||
[ --with-asiodir (default=/usr/local/asiosdk2)],
|
|
||||||
with_asiodir=$withval, with_asiodir="/usr/local/asiosdk2")
|
|
||||||
|
|
||||||
AC_ARG_WITH(dxdir,
|
|
||||||
[ --with-dxdir (default=/usr/local/dx7sdk)],
|
|
||||||
with_dxdir=$withval, with_dxdir="/usr/local/dx7sdk")
|
|
||||||
|
|
||||||
|
|
||||||
##################### HOST-SPECIFIC LIBRARY SETTINGS ##########################
|
|
||||||
|
|
||||||
case "${host_os}" in
|
|
||||||
darwin* )
|
|
||||||
# Mac OS X configuration
|
|
||||||
|
|
||||||
LIBS="-framework AudioUnit -framework AudioToolbox -framework CoreAudio";
|
|
||||||
PADLL="libportaudio.dylib";
|
|
||||||
PACPP_DLL="libportaudiocpp.dylib";
|
|
||||||
SHARED_FLAGS="-framework AudioUnit -framework AudioToolbox";
|
|
||||||
SHARED_FLAGS="$SHARED_FLAGS -framework CoreAudio -dynamiclib";
|
|
||||||
if [[ $with_macapi = "asio" ]] ; then
|
|
||||||
if [[ $with_asiodir ]] ; then
|
|
||||||
ASIODIR="$with_asiodir";
|
|
||||||
else
|
|
||||||
ASIODIR="/usr/local/asiosdk2";
|
|
||||||
fi
|
|
||||||
echo "ASIODIR: $ASIODIR";
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
mingw* )
|
|
||||||
# MingW configuration
|
|
||||||
|
|
||||||
echo "WINAPI: $with_winapi"
|
|
||||||
if [[ $with_winapi = "directx" ]] ; then
|
|
||||||
if [[ $with_dxdir ]] ; then
|
|
||||||
DXDIR="$with_dxdir";
|
|
||||||
else
|
|
||||||
DXDIR="/usr/local/dx7sdk";
|
|
||||||
fi
|
|
||||||
echo "DXDIR: $DXDIR"
|
|
||||||
LIBS="-L$PALIBDIR -lportaudio"
|
|
||||||
LIBS="$LIBS -lwinmm -lm -ldsound -lole32";
|
|
||||||
PADLL="portaudio.dll";
|
|
||||||
PACPP_DLL="portaudiocpp.dll";
|
|
||||||
SHARED_FLAGS="-shared -mthreads";
|
|
||||||
DLL_LIBS="-lwinmm -lm -L./dx7sdk/lib -ldsound -lole32";
|
|
||||||
CFLAGS="$CFLAGS -DPA_NO_WMME -DPA_NO_ASIO";
|
|
||||||
CXXFLAGS="$CFLAGS"
|
|
||||||
elif [[ $with_winapi = "asio" ]] ; then
|
|
||||||
if [[ $with_asiodir ]] ; then
|
|
||||||
ASIODIR="$with_asiodir";
|
|
||||||
else
|
|
||||||
ASIODIR="/usr/local/asiosdk2";
|
|
||||||
fi
|
|
||||||
echo "ASIODIR: $ASIODIR"
|
|
||||||
|
|
||||||
LIBS="-L$PALIBDIR -lportaudio"
|
|
||||||
LIBS="$LIBS -lwinmm -lm -lstdc++ -lole32 -luuid";
|
|
||||||
PADLL="portaudio.dll";
|
|
||||||
PACPP_DLL="portaudiocpp.dll";
|
|
||||||
SHARED_FLAGS="-shared -mthreads";
|
|
||||||
DLL_LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid";
|
|
||||||
CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -DPA_NO_WMME -DPA_NO_DS -DWINDOWS";
|
|
||||||
CXXFLAGS="$CFLAGS";
|
|
||||||
else # WMME default
|
|
||||||
LIBS="-L$PALIBDIR -lportaudio"
|
|
||||||
LIBS="$LIBS -lwinmm -lm -lstdc++ -lole32 -luuid";
|
|
||||||
PADLL="portaudio.dll";
|
|
||||||
PACPP_DLL="portaudiocpp.dll";
|
|
||||||
SHARED_FLAGS="-shared -mthreads";
|
|
||||||
DLL_LIBS="-lwinmm";
|
|
||||||
CFLAGS="$CFLAGS -DPA_NO_DS -DPA_NO_ASIO";
|
|
||||||
CXXFLAGS="$CFLAGS";
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
cygwin* )
|
|
||||||
# Cygwin configuration
|
|
||||||
|
|
||||||
LIBS="-L$PALIBDIR -lportaudio"
|
|
||||||
LIBS="$LIBS -lwinmm -lm";
|
|
||||||
PADLL="portaudio.dll";
|
|
||||||
PACPP_DLL="portaudiocpp.dll";
|
|
||||||
SHARED_FLAGS="-shared -mthreads";
|
|
||||||
DLL_LIBS="-lwinmm";
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
# Unix OSS configuration
|
|
||||||
|
|
||||||
AC_CHECK_LIB(pthread, pthread_create,
|
|
||||||
,
|
|
||||||
AC_MSG_ERROR([libpthread not found!]))
|
|
||||||
|
|
||||||
LIBS="$LIBS -L$PALIBDIR -lportaudio"
|
|
||||||
|
|
||||||
if [[ $have_jack = "yes" ] && [ $with_jack != "no" ]] ; then
|
|
||||||
LIBS="$LIBS $JACK_LIBS"
|
|
||||||
CFLAGS="$CFLAGS $JACK_CFLAGS"
|
|
||||||
AC_DEFINE(PA_USE_JACK)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $have_alsa = "yes" ] && [ $with_alsa != "no" ]] ; then
|
|
||||||
LIBS="$LIBS -lasound"
|
|
||||||
AC_DEFINE(PA_USE_ALSA)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $with_oss != "no" ]] ; then
|
|
||||||
AC_DEFINE(PA_USE_OSS)
|
|
||||||
fi
|
|
||||||
LIBS="$LIBS -lm -lpthread";
|
|
||||||
PADLL="libportaudio.so";
|
|
||||||
PACPP_DLL="libportaudiocpp.so";
|
|
||||||
SHARED_FLAGS="-shared";
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
|
||||||
AC_OUTPUT
|
|
@ -1,251 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# install - install a program, script, or datafile
|
|
||||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
|
||||||
#
|
|
||||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
|
||||||
#
|
|
||||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
# documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
# the above copyright notice appear in all copies and that both that
|
|
||||||
# copyright notice and this permission notice appear in supporting
|
|
||||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
|
||||||
# publicity pertaining to distribution of the software without specific,
|
|
||||||
# written prior permission. M.I.T. makes no representations about the
|
|
||||||
# suitability of this software for any purpose. It is provided "as is"
|
|
||||||
# without express or implied warranty.
|
|
||||||
#
|
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
|
||||||
# `make' implicit rules from creating a file called install from it
|
|
||||||
# when there is no Makefile.
|
|
||||||
#
|
|
||||||
# This script is compatible with the BSD install script, but was written
|
|
||||||
# from scratch. It can only install one file at a time, a restriction
|
|
||||||
# shared with many OS's install programs.
|
|
||||||
|
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
|
||||||
doit="${DOITPROG-}"
|
|
||||||
|
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
|
||||||
cpprog="${CPPROG-cp}"
|
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
|
||||||
chownprog="${CHOWNPROG-chown}"
|
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
|
||||||
stripprog="${STRIPPROG-strip}"
|
|
||||||
rmprog="${RMPROG-rm}"
|
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
|
||||||
|
|
||||||
transformbasename=""
|
|
||||||
transform_arg=""
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=""
|
|
||||||
chgrpcmd=""
|
|
||||||
stripcmd=""
|
|
||||||
rmcmd="$rmprog -f"
|
|
||||||
mvcmd="$mvprog"
|
|
||||||
src=""
|
|
||||||
dst=""
|
|
||||||
dir_arg=""
|
|
||||||
|
|
||||||
while [ x"$1" != x ]; do
|
|
||||||
case $1 in
|
|
||||||
-c) instcmd="$cpprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd="$stripprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
*) if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
src=$1
|
|
||||||
else
|
|
||||||
# this colon is to work around a 386BSD /bin/sh bug
|
|
||||||
:
|
|
||||||
dst=$1
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no input file specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]; then
|
|
||||||
dst=$src
|
|
||||||
src=""
|
|
||||||
|
|
||||||
if [ -d $dst ]; then
|
|
||||||
instcmd=:
|
|
||||||
chmodcmd=""
|
|
||||||
else
|
|
||||||
instcmd=mkdir
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
|
||||||
# might cause directories to be created, which would be especially bad
|
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
|
||||||
|
|
||||||
if [ -f $src -o -d $src ]
|
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
echo "install: $src does not exist"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dst" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no destination specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; if your system
|
|
||||||
# does not like double slashes in filenames, you may need to add some logic
|
|
||||||
|
|
||||||
if [ -d $dst ]
|
|
||||||
then
|
|
||||||
dst="$dst"/`basename $src`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
## this sed command emulates the dirname command
|
|
||||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if [ ! -d "$dstdir" ]; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
|
||||||
IFS="${IFS-${defaultIFS}}"
|
|
||||||
|
|
||||||
oIFS="${IFS}"
|
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
IFS="${oIFS}"
|
|
||||||
|
|
||||||
pathcomp=''
|
|
||||||
|
|
||||||
while [ $# -ne 0 ] ; do
|
|
||||||
pathcomp="${pathcomp}${1}"
|
|
||||||
shift
|
|
||||||
|
|
||||||
if [ ! -d "${pathcomp}" ] ;
|
|
||||||
then
|
|
||||||
$mkdirprog "${pathcomp}"
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp="${pathcomp}/"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]
|
|
||||||
then
|
|
||||||
$doit $instcmd $dst &&
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# If we're going to rename the final executable, determine the name now.
|
|
||||||
|
|
||||||
if [ x"$transformarg" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
dstfile=`basename $dst $transformbasename |
|
|
||||||
sed $transformarg`$transformbasename
|
|
||||||
fi
|
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename
|
|
||||||
|
|
||||||
if [ x"$dstfile" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make a temp file name in the proper directory.
|
|
||||||
|
|
||||||
dsttmp=$dstdir/#inst.$$#
|
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
|
||||||
|
|
||||||
$doit $instcmd $src $dsttmp &&
|
|
||||||
|
|
||||||
trap "rm -f ${dsttmp}" 0 &&
|
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits
|
|
||||||
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
|
||||||
|
|
||||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
|
||||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
|
||||||
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,248 +0,0 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="devs_example" - Package Owner=<4>
|
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
||||||
# ** DO NOT EDIT **
|
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
|
||||||
|
|
||||||
CFG=devs_example - Win32 Debug
|
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
||||||
!MESSAGE use the Export Makefile command and run
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "devs_example.mak".
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "devs_example.mak" CFG="devs_example - Win32 Debug"
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE Possible choices for configuration are:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE "devs_example - Win32 Release" (based on "Win32 (x86) Console Application")
|
|
||||||
!MESSAGE "devs_example - Win32 Debug" (based on "Win32 (x86) Console Application")
|
|
||||||
!MESSAGE
|
|
||||||
|
|
||||||
# Begin Project
|
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
|
||||||
# PROP Scc_LocalPath ""
|
|
||||||
CPP=cl.exe
|
|
||||||
RSC=rc.exe
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "devs_example - Win32 Release"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
|
||||||
# PROP BASE Output_Dir "Release"
|
|
||||||
# PROP BASE Intermediate_Dir "Release"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 0
|
|
||||||
# PROP Output_Dir "Release"
|
|
||||||
# PROP Intermediate_Dir "Release"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
|
||||||
# ADD CPP /nologo /MTd /W3 /GX /O2 /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LINK32=link.exe
|
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
|
||||||
# ADD LINK32 portaudiocpp-vc6-r.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/devs_example.exe" /libpath:"../../lib"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "devs_example - Win32 Debug"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
|
||||||
# PROP BASE Output_Dir "Debug"
|
|
||||||
# PROP BASE Intermediate_Dir "Debug"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 1
|
|
||||||
# PROP Output_Dir "Debug"
|
|
||||||
# PROP Intermediate_Dir "Debug"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LINK32=link.exe
|
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
|
||||||
# ADD LINK32 portaudiocpp-vc6-d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/devs_example.exe" /pdbtype:sept /libpath:"../../lib"
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# Begin Target
|
|
||||||
|
|
||||||
# Name "devs_example - Win32 Release"
|
|
||||||
# Name "devs_example - Win32 Debug"
|
|
||||||
# Begin Group "Source Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_allocation.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\pa_asio.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_converters.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_cpuload.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_dither.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_front.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_process.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_skeleton.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_stream.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_trace.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_win_hostapis.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_win_util.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\wmme\pa_win_wmme.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.c
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Header Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_allocation.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_converters.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_cpuload.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_dither.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_endianness.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_hostapi.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_process.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_stream.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_trace.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_types.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_util.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.h
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Resource Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Example Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\example\devs.cxx
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "ASIO 2 SDK"
|
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\common\asio.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\host\asiodrivers.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# End Target
|
|
||||||
# End Project
|
|
@ -1,44 +0,0 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "devs_example"=".\devs_example.dsp" - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
Begin Project Dependency
|
|
||||||
Project_Dep_Name static_library
|
|
||||||
End Project Dependency
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Global:
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<3>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
@ -1,252 +0,0 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="sine_example" - Package Owner=<4>
|
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
||||||
# ** DO NOT EDIT **
|
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
|
||||||
|
|
||||||
CFG=sine_example - Win32 Debug
|
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
||||||
!MESSAGE use the Export Makefile command and run
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "sine_example.mak".
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "sine_example.mak" CFG="sine_example - Win32 Debug"
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE Possible choices for configuration are:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE "sine_example - Win32 Release" (based on "Win32 (x86) Console Application")
|
|
||||||
!MESSAGE "sine_example - Win32 Debug" (based on "Win32 (x86) Console Application")
|
|
||||||
!MESSAGE
|
|
||||||
|
|
||||||
# Begin Project
|
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
|
||||||
# PROP Scc_LocalPath ""
|
|
||||||
CPP=cl.exe
|
|
||||||
RSC=rc.exe
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "sine_example - Win32 Release"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
|
||||||
# PROP BASE Output_Dir "Release"
|
|
||||||
# PROP BASE Intermediate_Dir "Release"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 0
|
|
||||||
# PROP Output_Dir "Release"
|
|
||||||
# PROP Intermediate_Dir "Release"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
|
||||||
# ADD CPP /nologo /MTd /W3 /GX /O2 /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LINK32=link.exe
|
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
|
||||||
# ADD LINK32 portaudiocpp-vc6-r.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/sine_example.exe" /libpath:"../../lib"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "sine_example - Win32 Debug"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
|
||||||
# PROP BASE Output_Dir "Debug"
|
|
||||||
# PROP BASE Intermediate_Dir "Debug"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 1
|
|
||||||
# PROP Output_Dir "Debug"
|
|
||||||
# PROP Intermediate_Dir "Debug"
|
|
||||||
# PROP Ignore_Export_Lib 0
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LINK32=link.exe
|
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
|
||||||
# ADD LINK32 portaudiocpp-vc6-d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/sine_example.exe" /pdbtype:sept /libpath:"../../lib"
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# Begin Target
|
|
||||||
|
|
||||||
# Name "sine_example - Win32 Release"
|
|
||||||
# Name "sine_example - Win32 Debug"
|
|
||||||
# Begin Group "Header Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_allocation.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_converters.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_cpuload.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_dither.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_endianness.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_hostapi.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_process.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_stream.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_trace.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_types.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_util.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.h
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.h
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Resource Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Example Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\example\sine.cxx
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Source Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_allocation.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\pa_asio\pa_asio.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_converters.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_cpuload.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_dither.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_front.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_process.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_skeleton.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_stream.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\common\pa_trace.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_win_hostapis.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_win_util.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\wasapi\pa_win_wasapi.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\hostapi\wmme\pa_win_wmme.c
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.c
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "ASIO 2 SDK"
|
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\common\asio.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\host\asiodrivers.cpp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# End Target
|
|
||||||
# End Project
|
|
@ -1,44 +0,0 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "sine_example"=".\sine_example.dsp" - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
Begin Project Dependency
|
|
||||||
Project_Dep_Name static_library
|
|
||||||
End Project Dependency
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Global:
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<3>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
@ -1,395 +0,0 @@
|
|||||||
# Microsoft Developer Studio Project File - Name="static_library" - Package Owner=<4>
|
|
||||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
||||||
# ** DO NOT EDIT **
|
|
||||||
|
|
||||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
|
||||||
|
|
||||||
CFG=static_library - Win32 Debug
|
|
||||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
||||||
!MESSAGE use the Export Makefile command and run
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "static_library.mak".
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE You can specify a configuration when running NMAKE
|
|
||||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE NMAKE /f "static_library.mak" CFG="static_library - Win32 Debug"
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE Possible choices for configuration are:
|
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE "static_library - Win32 Release" (based on "Win32 (x86) Static Library")
|
|
||||||
!MESSAGE "static_library - Win32 Debug" (based on "Win32 (x86) Static Library")
|
|
||||||
!MESSAGE
|
|
||||||
|
|
||||||
# Begin Project
|
|
||||||
# PROP AllowPerConfigDependencies 0
|
|
||||||
# PROP Scc_ProjName ""
|
|
||||||
# PROP Scc_LocalPath ""
|
|
||||||
CPP=cl.exe
|
|
||||||
RSC=rc.exe
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 0
|
|
||||||
# PROP BASE Output_Dir "Release"
|
|
||||||
# PROP BASE Intermediate_Dir "Release"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 0
|
|
||||||
# PROP Output_Dir "Release"
|
|
||||||
# PROP Intermediate_Dir "Release"
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
|
||||||
# ADD CPP /nologo /MTd /W3 /GX /O2 /I "../../include/" /I "../../../../include/" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LIB32=link.exe -lib
|
|
||||||
# ADD BASE LIB32 /nologo
|
|
||||||
# ADD LIB32 /nologo /out:"../../lib/portaudiocpp-vc6-r.lib"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# PROP BASE Use_MFC 0
|
|
||||||
# PROP BASE Use_Debug_Libraries 1
|
|
||||||
# PROP BASE Output_Dir "Debug"
|
|
||||||
# PROP BASE Intermediate_Dir "Debug"
|
|
||||||
# PROP BASE Target_Dir ""
|
|
||||||
# PROP Use_MFC 0
|
|
||||||
# PROP Use_Debug_Libraries 1
|
|
||||||
# PROP Output_Dir "Debug"
|
|
||||||
# PROP Intermediate_Dir "Debug"
|
|
||||||
# PROP Target_Dir ""
|
|
||||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../include/" /I "../../../../include/" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FD /GZ /c
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
||||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
||||||
BSC32=bscmake.exe
|
|
||||||
# ADD BASE BSC32 /nologo
|
|
||||||
# ADD BSC32 /nologo
|
|
||||||
LIB32=link.exe -lib
|
|
||||||
# ADD BASE LIB32 /nologo
|
|
||||||
# ADD LIB32 /nologo /out:"../../lib/portaudiocpp-vc6-d.lib"
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# Begin Target
|
|
||||||
|
|
||||||
# Name "static_library - Win32 Release"
|
|
||||||
# Name "static_library - Win32 Debug"
|
|
||||||
# Begin Group "Source Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\AsioDeviceAdapter.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\BlockingStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\CallbackInterface.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\CallbackStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\CFunCallbackStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\CppFunCallbackStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\Device.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\DirectionSpecificStreamParameters.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\Exception.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\HostApi.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\InterfaceCallbackStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\MemFunCallbackStream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\Stream.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\StreamParameters.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\System.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\SystemDeviceIterator.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\source\portaudiocpp\SystemHostApiIterator.cxx
|
|
||||||
|
|
||||||
!IF "$(CFG)" == "static_library - Win32 Release"
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "static_library - Win32 Debug"
|
|
||||||
|
|
||||||
# SUBTRACT CPP /YX
|
|
||||||
|
|
||||||
!ENDIF
|
|
||||||
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# Begin Group "Header Files"
|
|
||||||
|
|
||||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\AsioDeviceAdapter.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\AutoSystem.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\BlockingStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\CallbackInterface.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\CallbackStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\CFunCallbackStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\CppFunCallbackStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\Device.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\DirectionSpecificStreamParameters.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\Exception.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\HostApi.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\InterfaceCallbackStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\MemFunCallbackStream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\PortAudioCpp.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\SampleDataFormat.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\Stream.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\StreamParameters.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\System.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\SystemDeviceIterator.hxx
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=..\..\include\portaudiocpp\SystemHostApiIterator.hxx
|
|
||||||
# End Source File
|
|
||||||
# End Group
|
|
||||||
# End Target
|
|
||||||
# End Project
|
|
@ -1,29 +0,0 @@
|
|||||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
|
||||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "static_library"=".\static_library.dsp" - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Global:
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<3>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "devs_example", "devs_example.vcproj", "{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A} = {D18EA0C9-8C65-441D-884C-55EB43A84F2A}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfiguration) = preSolution
|
|
||||||
Debug = Debug
|
|
||||||
Release = Release
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfiguration) = postSolution
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.Build.0 = Debug|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.ActiveCfg = Release|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.Build.0 = Release|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,195 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="7.10"
|
|
||||||
Name="devs_example"
|
|
||||||
ProjectGUID="{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
|
|
||||||
Keyword="Win32Proj">
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"/>
|
|
||||||
</Platforms>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="Debug"
|
|
||||||
IntermediateDirectory="Debug"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/;../../../../src/common/;../../../../../asiosdk2/common/,../../../../../asiosdk2/host/,../../../../../asiosdk2/host/pc/"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
|
||||||
MinimalRebuild="TRUE"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="../../lib/portaudiocpp-vc7_1-d.lib"
|
|
||||||
OutputFile="../../bin/devs_example.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
ProgramDatabaseFile="$(OutDir)/devs_example.pdb"
|
|
||||||
SubSystem="1"
|
|
||||||
TargetMachine="1"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="Release"
|
|
||||||
IntermediateDirectory="Release"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/;../../../../src/common/;../../../../../asiosdk2/common/,../../../../../asiosdk2/host/,../../../../../asiosdk2/host/pc/"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="../../lib/portaudiocpp-vc7_1-r.lib"
|
|
||||||
OutputFile="../../bin/devs_example.exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
SubSystem="1"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
TargetMachine="1"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\example\devs.cxx">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="PortAudio v19 Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_allocation.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\asio\pa_asio.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_converters.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_cpuload.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_dither.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_front.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_process.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_skeleton.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_stream.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_trace.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\dsound\pa_win_ds.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_win_hostapis.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_win_util.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\wasapi\pa_win_wasapi.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\wmme\pa_win_wmme.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_x86_plain_converters.c">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="ASIO 2 SDK Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\common\asio.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\host\asiodrivers.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1,30 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sine_example", "sine_example.vcproj", "{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A} = {D18EA0C9-8C65-441D-884C-55EB43A84F2A}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfiguration) = preSolution
|
|
||||||
Debug = Debug
|
|
||||||
Release = Release
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfiguration) = postSolution
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Debug.Build.0 = Debug|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.ActiveCfg = Release|Win32
|
|
||||||
{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}.Release.Build.0 = Release|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,327 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="7.10"
|
|
||||||
Name="sine_example"
|
|
||||||
ProjectGUID="{1B9A038D-80A3-4DBD-9F0D-AF10B49B863A}"
|
|
||||||
Keyword="Win32Proj">
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"/>
|
|
||||||
</Platforms>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="Debug"
|
|
||||||
IntermediateDirectory="Debug"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/;../../../../src/common/;../../../../../asiosdk2/common/,../../../../../asiosdk2/host/,../../../../../asiosdk2/host/pc/"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
|
||||||
MinimalRebuild="TRUE"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="../../lib/portaudiocpp-vc7_1-d.lib"
|
|
||||||
OutputFile="../../bin/sine_example.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
ProgramDatabaseFile="$(OutDir)/sine_example.pdb"
|
|
||||||
SubSystem="1"
|
|
||||||
TargetMachine="1"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="Release"
|
|
||||||
IntermediateDirectory="Release"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/;../../../../src/common/;../../../../../asiosdk2/common/,../../../../../asiosdk2/host/,../../../../../asiosdk2/host/pc/"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="../../lib/portaudiocpp-vc7_1-r.lib"
|
|
||||||
OutputFile="../../bin/sine_example.exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
SubSystem="1"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
TargetMachine="1"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\example\sine.cxx">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="PortAudio v19 Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_allocation.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\asio\pa_asio.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_converters.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_cpuload.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_dither.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_front.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_process.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_skeleton.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_stream.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\common\pa_trace.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\dsound\pa_win_ds.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_win_hostapis.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_win_util.c">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\wasapi\pa_win_wasapi.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\hostapi\wmme\pa_win_wmme.c">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)/$(InputName)1.obj"/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\src\os\win\pa_x86_plain_converters.c">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="ASIO 2 SDK Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\common\asio.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\host\asiodrivers.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1,21 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static_library", "static_library.vcproj", "{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfiguration) = preSolution
|
|
||||||
Debug = Debug
|
|
||||||
Release = Release
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfiguration) = postSolution
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Debug.Build.0 = Debug|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.ActiveCfg = Release|Win32
|
|
||||||
{D18EA0C9-8C65-441D-884C-55EB43A84F2A}.Release.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,218 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="7.10"
|
|
||||||
Name="static_library"
|
|
||||||
ProjectGUID="{D18EA0C9-8C65-441D-884C-55EB43A84F2A}"
|
|
||||||
Keyword="Win32Proj">
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"/>
|
|
||||||
</Platforms>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="../../lib/"
|
|
||||||
IntermediateDirectory="Debug"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
|
|
||||||
MinimalRebuild="TRUE"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
OutputFile="$(OutDir)/portaudiocpp-vc7_1-d.lib"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="../../lib/"
|
|
||||||
IntermediateDirectory="Release"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="2">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="../../include/;../../../../include/"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
ProgramDataBaseFileName="$(IntDir)/vc71.pdb"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
|
||||||
DebugInformationFormat="3"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
OutputFile="$(OutDir)/portaudiocpp-vc7_1-r.lib"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedWrapperGeneratorTool"/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Files"
|
|
||||||
Filter="">
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\AsioDeviceAdapter.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\AsioDeviceAdapter.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\AutoSystem.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\BlockingStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\BlockingStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\CallbackInterface.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\CallbackInterface.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\CallbackStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\CallbackStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\CFunCallbackStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\CFunCallbackStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\CppFunCallbackStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\CppFunCallbackStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\Device.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\Device.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\DirectionSpecificStreamParameters.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\DirectionSpecificStreamParameters.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\Exception.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\Exception.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\HostApi.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\HostApi.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\InterfaceCallbackStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\InterfaceCallbackStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\MemFunCallbackStream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\MemFunCallbackStream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\PortAudioCpp.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\SampleDataFormat.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\Stream.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\Stream.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\StreamParameters.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\StreamParameters.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\System.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\System.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\SystemDeviceIterator.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\SystemDeviceIterator.hxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\source\portaudiocpp\SystemHostApiIterator.cxx">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath="..\..\include\portaudiocpp\SystemHostApiIterator.hxx">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1,54 +0,0 @@
|
|||||||
#
|
|
||||||
# PortAudioCpp V19 autoconf input file
|
|
||||||
# Shamelessly ripped from the PortAudio one by Dominic Mazzoni
|
|
||||||
# Ludwig Schwardt
|
|
||||||
# Customized for automake by Mikael Magnusson
|
|
||||||
#
|
|
||||||
|
|
||||||
# Require autoconf >= 2.13
|
|
||||||
AC_PREREQ(2.13)
|
|
||||||
|
|
||||||
m4_define([lt_current], [0])
|
|
||||||
m4_define([lt_revision], [12])
|
|
||||||
m4_define([lt_age], [0])
|
|
||||||
|
|
||||||
AC_INIT([PortAudioCpp], [12])
|
|
||||||
AC_CONFIG_SRCDIR([include/portaudiocpp/PortAudioCpp.hxx])
|
|
||||||
AM_INIT_AUTOMAKE
|
|
||||||
AM_MAINTAINER_MODE
|
|
||||||
|
|
||||||
###### Top-level directory of pacpp
|
|
||||||
###### This makes it easy to shuffle the build directories
|
|
||||||
###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
|
|
||||||
PACPP_ROOT="\$(top_srcdir)"
|
|
||||||
PORTAUDIO_ROOT="../.."
|
|
||||||
|
|
||||||
# Various other variables and flags
|
|
||||||
DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
|
|
||||||
CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
|
|
||||||
CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
|
|
||||||
|
|
||||||
LT_VERSION_INFO="lt_current:lt_revision:lt_age"
|
|
||||||
|
|
||||||
# Checks for programs
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_CXX
|
|
||||||
AC_LIBTOOL_WIN32_DLL
|
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
|
|
||||||
# Transfer these variables to the Makefile
|
|
||||||
AC_SUBST(DEFAULT_INCLUDES)
|
|
||||||
AC_SUBST(PORTAUDIO_ROOT)
|
|
||||||
AC_SUBST(CXXFLAGS)
|
|
||||||
AC_SUBST(LT_VERSION_INFO)
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
|
||||||
Makefile
|
|
||||||
lib/Makefile
|
|
||||||
include/Makefile
|
|
||||||
bin/Makefile
|
|
||||||
doc/Makefile
|
|
||||||
portaudiocpp.pc
|
|
||||||
])
|
|
||||||
AC_OUTPUT
|
|
@ -1,5 +0,0 @@
|
|||||||
PACPP_ROOT = .
|
|
||||||
#INCLUDES = -I$(srcdir)/$(PACPP_ROOT)/include -I$(top_srcdir)/include
|
|
||||||
|
|
||||||
docs:
|
|
||||||
doxygen $(srcdir)/config.doxy.linux
|
|
@ -1,34 +0,0 @@
|
|||||||
GNU/Linux:
|
|
||||||
----------
|
|
||||||
|
|
||||||
1) Download and install a recent version of Doxygen (preferably version 1.3.3 or
|
|
||||||
later). See http://www.doxygen.org/.
|
|
||||||
2) Download and install a recent version of GraphViz. See
|
|
||||||
http://www.research.att.com/sw/tools/graphviz/.
|
|
||||||
3) Run ``doxygen config.doxy.linux'' in this directory or load and generate the file
|
|
||||||
config.doxy.linux from the Doxywizard application. Or alternatively ``make docs'' can
|
|
||||||
be run from the build/gnu folder.
|
|
||||||
|
|
||||||
The generated html documentation will be placed in /doc/api_reference/. To open
|
|
||||||
the main page of the documentation, open the file /doc/api_reference/index.html in
|
|
||||||
an html browser.
|
|
||||||
|
|
||||||
|
|
||||||
Windows:
|
|
||||||
--------
|
|
||||||
|
|
||||||
1) Download and install a recent Doxygen (preferably version 1.3.4 or later). See
|
|
||||||
http://www.doxygen.org/.
|
|
||||||
2) Download and install a recent version of GraphViz. See
|
|
||||||
http://www.research.att.com/sw/tools/graphviz/.
|
|
||||||
3) If needed, edit the config.doxy file in an ascii text editor so that
|
|
||||||
``DOT_PATH'' variable points to the folder where GraphViz is installed.
|
|
||||||
4) Run ``doxygen config.doxy'' in this directory or load and generate the file
|
|
||||||
config.doxy from the Doxywizard application.
|
|
||||||
|
|
||||||
The generated html documentation will be placed in /doc/api_reference/. To open
|
|
||||||
the main page of the documentation, open the file /doc/api_reference/index.html in
|
|
||||||
an html browser.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,211 +0,0 @@
|
|||||||
# Doxyfile 1.3.6
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Project related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
PROJECT_NAME = PortAudioCpp
|
|
||||||
PROJECT_NUMBER = 2.0
|
|
||||||
OUTPUT_DIRECTORY = ./
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
USE_WINDOWS_ENCODING = YES
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ABBREVIATE_BRIEF =
|
|
||||||
ALWAYS_DETAILED_SEC = YES
|
|
||||||
INLINE_INHERITED_MEMB = NO
|
|
||||||
FULL_PATH_NAMES = NO
|
|
||||||
STRIP_FROM_PATH =
|
|
||||||
SHORT_NAMES = YES
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
DETAILS_AT_TOP = YES
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
DISTRIBUTE_GROUP_DOC = NO
|
|
||||||
TAB_SIZE = 4
|
|
||||||
ALIASES =
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
SUBGROUPING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Build related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
EXTRACT_ALL = YES
|
|
||||||
EXTRACT_PRIVATE = YES
|
|
||||||
EXTRACT_STATIC = YES
|
|
||||||
EXTRACT_LOCAL_CLASSES = YES
|
|
||||||
HIDE_UNDOC_MEMBERS = NO
|
|
||||||
HIDE_UNDOC_CLASSES = NO
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = YES
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
|
||||||
INLINE_INFO = YES
|
|
||||||
SORT_MEMBER_DOCS = NO
|
|
||||||
SORT_BRIEF_DOCS = NO
|
|
||||||
SORT_BY_SCOPE_NAME = NO
|
|
||||||
GENERATE_TODOLIST = YES
|
|
||||||
GENERATE_TESTLIST = YES
|
|
||||||
GENERATE_BUGLIST = YES
|
|
||||||
GENERATE_DEPRECATEDLIST= YES
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
SHOW_USED_FILES = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
INPUT = ../source \
|
|
||||||
../include
|
|
||||||
FILE_PATTERNS = *.hxx \
|
|
||||||
*.cxx
|
|
||||||
RECURSIVE = YES
|
|
||||||
EXCLUDE =
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS =
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS =
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_SOURCE_FILES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = NO
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = YES
|
|
||||||
REFERENCES_RELATION = YES
|
|
||||||
VERBATIM_HEADERS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = YES
|
|
||||||
COLS_IN_ALPHA_INDEX = 2
|
|
||||||
IGNORE_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = YES
|
|
||||||
HTML_OUTPUT = api_reference
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE =
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = NO
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
GENERATE_TREEVIEW = NO
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the LaTeX output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
LATEX_OUTPUT = latex
|
|
||||||
LATEX_CMD_NAME = latex
|
|
||||||
MAKEINDEX_CMD_NAME = makeindex
|
|
||||||
COMPACT_LATEX = NO
|
|
||||||
PAPER_TYPE = a4wide
|
|
||||||
EXTRA_PACKAGES =
|
|
||||||
LATEX_HEADER =
|
|
||||||
PDF_HYPERLINKS = NO
|
|
||||||
USE_PDFLATEX = NO
|
|
||||||
LATEX_BATCHMODE = NO
|
|
||||||
LATEX_HIDE_INDICES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the RTF output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
RTF_OUTPUT = rtf
|
|
||||||
COMPACT_RTF = NO
|
|
||||||
RTF_HYPERLINKS = NO
|
|
||||||
RTF_STYLESHEET_FILE =
|
|
||||||
RTF_EXTENSIONS_FILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the man page output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_MAN = NO
|
|
||||||
MAN_OUTPUT = man
|
|
||||||
MAN_EXTENSION = .3
|
|
||||||
MAN_LINKS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = NO
|
|
||||||
XML_OUTPUT = xml
|
|
||||||
XML_SCHEMA =
|
|
||||||
XML_DTD =
|
|
||||||
XML_PROGRAMLISTING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options for the AutoGen Definitions output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the Perl module output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_PERLMOD = NO
|
|
||||||
PERLMOD_LATEX = NO
|
|
||||||
PERLMOD_PRETTY = YES
|
|
||||||
PERLMOD_MAKEVAR_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = NO
|
|
||||||
EXPAND_ONLY_PREDEF = NO
|
|
||||||
SEARCH_INCLUDES = YES
|
|
||||||
INCLUDE_PATH =
|
|
||||||
INCLUDE_FILE_PATTERNS =
|
|
||||||
PREDEFINED =
|
|
||||||
EXPAND_AS_DEFINED =
|
|
||||||
SKIP_FUNCTION_MACROS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the dot tool
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
CLASS_DIAGRAMS = YES
|
|
||||||
HIDE_UNDOC_RELATIONS = YES
|
|
||||||
HAVE_DOT = YES
|
|
||||||
CLASS_GRAPH = YES
|
|
||||||
COLLABORATION_GRAPH = YES
|
|
||||||
UML_LOOK = YES
|
|
||||||
TEMPLATE_RELATIONS = YES
|
|
||||||
INCLUDE_GRAPH = YES
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
|
||||||
CALL_GRAPH = NO
|
|
||||||
GRAPHICAL_HIERARCHY = YES
|
|
||||||
DOT_IMAGE_FORMAT = png
|
|
||||||
DOT_PATH = "c:/Program Files/ATT/Graphviz/bin/"
|
|
||||||
DOTFILE_DIRS =
|
|
||||||
MAX_DOT_GRAPH_WIDTH = 1024
|
|
||||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
|
||||||
MAX_DOT_GRAPH_DEPTH = 0
|
|
||||||
GENERATE_LEGEND = YES
|
|
||||||
DOT_CLEANUP = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to the search engine
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SEARCHENGINE = NO
|
|
@ -1,210 +0,0 @@
|
|||||||
# Doxyfile 1.3.3
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# General configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
PROJECT_NAME = PortAudioCpp
|
|
||||||
PROJECT_NUMBER = 2.0
|
|
||||||
OUTPUT_DIRECTORY = ./
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
USE_WINDOWS_ENCODING = YES
|
|
||||||
EXTRACT_ALL = YES
|
|
||||||
EXTRACT_PRIVATE = YES
|
|
||||||
EXTRACT_STATIC = YES
|
|
||||||
EXTRACT_LOCAL_CLASSES = YES
|
|
||||||
HIDE_UNDOC_MEMBERS = NO
|
|
||||||
HIDE_UNDOC_CLASSES = NO
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ALWAYS_DETAILED_SEC = YES
|
|
||||||
INLINE_INHERITED_MEMB = NO
|
|
||||||
FULL_PATH_NAMES = NO
|
|
||||||
STRIP_FROM_PATH =
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = YES
|
|
||||||
SHORT_NAMES = YES
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
DETAILS_AT_TOP = YES
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
INLINE_INFO = YES
|
|
||||||
SORT_MEMBER_DOCS = NO
|
|
||||||
DISTRIBUTE_GROUP_DOC = NO
|
|
||||||
TAB_SIZE = 4
|
|
||||||
GENERATE_TODOLIST = YES
|
|
||||||
GENERATE_TESTLIST = YES
|
|
||||||
GENERATE_BUGLIST = YES
|
|
||||||
GENERATE_DEPRECATEDLIST= YES
|
|
||||||
ALIASES =
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
SHOW_USED_FILES = YES
|
|
||||||
SUBGROUPING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
INPUT = ../source \
|
|
||||||
../include
|
|
||||||
FILE_PATTERNS = *.hxx \
|
|
||||||
*.cxx
|
|
||||||
RECURSIVE = YES
|
|
||||||
EXCLUDE =
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS =
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS =
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_SOURCE_FILES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = NO
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = YES
|
|
||||||
REFERENCES_RELATION = YES
|
|
||||||
VERBATIM_HEADERS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = YES
|
|
||||||
COLS_IN_ALPHA_INDEX = 2
|
|
||||||
IGNORE_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = YES
|
|
||||||
HTML_OUTPUT = api_reference
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE =
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = NO
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
GENERATE_TREEVIEW = NO
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the LaTeX output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
LATEX_OUTPUT = latex
|
|
||||||
LATEX_CMD_NAME = latex
|
|
||||||
MAKEINDEX_CMD_NAME = makeindex
|
|
||||||
COMPACT_LATEX = NO
|
|
||||||
PAPER_TYPE = a4wide
|
|
||||||
EXTRA_PACKAGES =
|
|
||||||
LATEX_HEADER =
|
|
||||||
PDF_HYPERLINKS = NO
|
|
||||||
USE_PDFLATEX = NO
|
|
||||||
LATEX_BATCHMODE = NO
|
|
||||||
LATEX_HIDE_INDICES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the RTF output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
RTF_OUTPUT = rtf
|
|
||||||
COMPACT_RTF = NO
|
|
||||||
RTF_HYPERLINKS = NO
|
|
||||||
RTF_STYLESHEET_FILE =
|
|
||||||
RTF_EXTENSIONS_FILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the man page output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_MAN = NO
|
|
||||||
MAN_OUTPUT = man
|
|
||||||
MAN_EXTENSION = .3
|
|
||||||
MAN_LINKS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = NO
|
|
||||||
XML_OUTPUT = xml
|
|
||||||
XML_SCHEMA =
|
|
||||||
XML_DTD =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options for the AutoGen Definitions output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the Perl module output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_PERLMOD = NO
|
|
||||||
PERLMOD_LATEX = NO
|
|
||||||
PERLMOD_PRETTY = YES
|
|
||||||
PERLMOD_MAKEVAR_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = NO
|
|
||||||
EXPAND_ONLY_PREDEF = NO
|
|
||||||
SEARCH_INCLUDES = YES
|
|
||||||
INCLUDE_PATH =
|
|
||||||
INCLUDE_FILE_PATTERNS =
|
|
||||||
PREDEFINED =
|
|
||||||
EXPAND_AS_DEFINED =
|
|
||||||
SKIP_FUNCTION_MACROS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::addtions related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the dot tool
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
CLASS_DIAGRAMS = YES
|
|
||||||
HIDE_UNDOC_RELATIONS = YES
|
|
||||||
HAVE_DOT = YES
|
|
||||||
CLASS_GRAPH = YES
|
|
||||||
COLLABORATION_GRAPH = YES
|
|
||||||
UML_LOOK = YES
|
|
||||||
TEMPLATE_RELATIONS = YES
|
|
||||||
INCLUDE_GRAPH = YES
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
|
||||||
CALL_GRAPH = NO
|
|
||||||
GRAPHICAL_HIERARCHY = YES
|
|
||||||
DOT_IMAGE_FORMAT = png
|
|
||||||
DOT_PATH = "/usr/bin/dot"
|
|
||||||
DOTFILE_DIRS =
|
|
||||||
MAX_DOT_GRAPH_WIDTH = 1024
|
|
||||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
|
||||||
MAX_DOT_GRAPH_DEPTH = 0
|
|
||||||
GENERATE_LEGEND = YES
|
|
||||||
DOT_CLEANUP = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::addtions related to the search engine
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SEARCHENGINE = NO
|
|
||||||
CGI_NAME = search.cgi
|
|
||||||
CGI_URL =
|
|
||||||
DOC_URL =
|
|
||||||
DOC_ABSPATH =
|
|
||||||
BIN_ABSPATH = /usr/local/bin/
|
|
||||||
EXT_DOC_PATHS =
|
|
@ -1,177 +0,0 @@
|
|||||||
#include <iostream>
|
|
||||||
#include "portaudiocpp/PortAudioCpp.hxx"
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include "portaudiocpp/AsioDeviceAdapter.hxx"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void printSupportedStandardSampleRates(
|
|
||||||
const portaudio::DirectionSpecificStreamParameters &inputParameters,
|
|
||||||
const portaudio::DirectionSpecificStreamParameters &outputParameters)
|
|
||||||
{
|
|
||||||
static double STANDARD_SAMPLE_RATES[] = {
|
|
||||||
8000.0, 9600.0, 11025.0, 12000.0, 16000.0, 22050.0, 24000.0, 32000.0,
|
|
||||||
44100.0, 48000.0, 88200.0, 96000.0, -1 }; // negative terminated list
|
|
||||||
|
|
||||||
int printCount = 0;
|
|
||||||
|
|
||||||
for (int i = 0; STANDARD_SAMPLE_RATES[i] > 0; ++i)
|
|
||||||
{
|
|
||||||
portaudio::StreamParameters tmp = portaudio::StreamParameters(inputParameters, outputParameters, STANDARD_SAMPLE_RATES[i], 0, paNoFlag);
|
|
||||||
|
|
||||||
if (tmp.isSupported())
|
|
||||||
{
|
|
||||||
if (printCount == 0)
|
|
||||||
{
|
|
||||||
std::cout << " " << STANDARD_SAMPLE_RATES[i]; // 8.2
|
|
||||||
printCount = 1;
|
|
||||||
}
|
|
||||||
else if (printCount == 4)
|
|
||||||
{
|
|
||||||
std::cout << "," << std::endl;
|
|
||||||
std::cout << " " << STANDARD_SAMPLE_RATES[i]; // 8.2
|
|
||||||
printCount = 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << ", " << STANDARD_SAMPLE_RATES[i]; // 8.2
|
|
||||||
++printCount;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (printCount == 0)
|
|
||||||
std::cout << "None" << std::endl;
|
|
||||||
else
|
|
||||||
std::cout << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
int main(int, char*[]);
|
|
||||||
int main(int, char*[])
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
portaudio::AutoSystem autoSys;
|
|
||||||
|
|
||||||
portaudio::System &sys = portaudio::System::instance();
|
|
||||||
|
|
||||||
std::cout << "PortAudio version number = " << sys.version() << std::endl;
|
|
||||||
std::cout << "PortAudio version text = '" << sys.versionText() << "'" << std::endl;
|
|
||||||
|
|
||||||
int numDevices = sys.deviceCount();
|
|
||||||
std::cout << "Number of devices = " << numDevices << std::endl;
|
|
||||||
|
|
||||||
for (portaudio::System::DeviceIterator i = sys.devicesBegin(); i != sys.devicesEnd(); ++i)
|
|
||||||
{
|
|
||||||
std::cout << "--------------------------------------- device #" << (*i).index() << std::endl;
|
|
||||||
|
|
||||||
// Mark global and API specific default devices:
|
|
||||||
bool defaultDisplayed = false;
|
|
||||||
|
|
||||||
if ((*i).isSystemDefaultInputDevice())
|
|
||||||
{
|
|
||||||
std::cout << "[ Default Input";
|
|
||||||
defaultDisplayed = true;
|
|
||||||
}
|
|
||||||
else if ((*i).isHostApiDefaultInputDevice())
|
|
||||||
{
|
|
||||||
std::cout << "[ Default " << (*i).hostApi().name() << " Input";
|
|
||||||
defaultDisplayed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((*i).isSystemDefaultOutputDevice())
|
|
||||||
{
|
|
||||||
std::cout << (defaultDisplayed ? "," : "[");
|
|
||||||
std::cout << " Default Output";
|
|
||||||
defaultDisplayed = true;
|
|
||||||
}
|
|
||||||
else if ((*i).isHostApiDefaultOutputDevice())
|
|
||||||
{
|
|
||||||
std::cout << (defaultDisplayed ? "," : "[");
|
|
||||||
std::cout << " Default " << (*i).hostApi().name() << " Output";
|
|
||||||
defaultDisplayed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defaultDisplayed)
|
|
||||||
std::cout << " ]" << std::endl;
|
|
||||||
|
|
||||||
// Print device info:
|
|
||||||
std::cout << "Name = " << (*i).name() << std::endl;
|
|
||||||
std::cout << "Host API = " << (*i).hostApi().name() << std::endl;
|
|
||||||
std::cout << "Max inputs = " << (*i).maxInputChannels() << ", Max outputs = " << (*i).maxOutputChannels() << std::endl;
|
|
||||||
|
|
||||||
std::cout << "Default low input latency = " << (*i).defaultLowInputLatency() << std::endl; // 8.3
|
|
||||||
std::cout << "Default low output latency = " << (*i).defaultLowOutputLatency() << std::endl; // 8.3
|
|
||||||
std::cout << "Default high input latency = " << (*i).defaultHighInputLatency() << std::endl; // 8.3
|
|
||||||
std::cout << "Default high output latency = " << (*i).defaultHighOutputLatency() << std::endl; // 8.3
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
// ASIO specific latency information:
|
|
||||||
if ((*i).hostApi().typeId() == paASIO)
|
|
||||||
{
|
|
||||||
portaudio::AsioDeviceAdapter asioDevice((*i));
|
|
||||||
|
|
||||||
std::cout << "ASIO minimum buffer size = " << asioDevice.minBufferSize() << std::endl;
|
|
||||||
std::cout << "ASIO maximum buffer size = " << asioDevice.maxBufferSize() << std::endl;
|
|
||||||
std::cout << "ASIO preferred buffer size = " << asioDevice.preferredBufferSize() << std::endl;
|
|
||||||
|
|
||||||
if (asioDevice.granularity() == -1)
|
|
||||||
std::cout << "ASIO buffer granularity = power of 2" << std::endl;
|
|
||||||
else
|
|
||||||
std::cout << "ASIO buffer granularity = " << asioDevice.granularity() << std::endl;
|
|
||||||
}
|
|
||||||
#endif // WIN32
|
|
||||||
|
|
||||||
std::cout << "Default sample rate = " << (*i).defaultSampleRate() << std::endl; // 8.2
|
|
||||||
|
|
||||||
// Poll for standard sample rates:
|
|
||||||
portaudio::DirectionSpecificStreamParameters inputParameters((*i), (*i).maxInputChannels(), portaudio::INT16, true, 0.0, NULL);
|
|
||||||
portaudio::DirectionSpecificStreamParameters outputParameters((*i), (*i).maxOutputChannels(), portaudio::INT16, true, 0.0, NULL);
|
|
||||||
|
|
||||||
if (inputParameters.numChannels() > 0)
|
|
||||||
{
|
|
||||||
std::cout << "Supported standard sample rates" << std::endl;
|
|
||||||
std::cout << " for half-duplex 16 bit " << inputParameters.numChannels() << " channel input = " << std::endl;
|
|
||||||
printSupportedStandardSampleRates(inputParameters, portaudio::DirectionSpecificStreamParameters::null());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (outputParameters.numChannels() > 0)
|
|
||||||
{
|
|
||||||
std::cout << "Supported standard sample rates" << std::endl;
|
|
||||||
std::cout << " for half-duplex 16 bit " << outputParameters.numChannels() << " channel output = " << std::endl;
|
|
||||||
printSupportedStandardSampleRates(portaudio::DirectionSpecificStreamParameters::null(), outputParameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (inputParameters.numChannels() > 0 && outputParameters.numChannels() > 0)
|
|
||||||
{
|
|
||||||
std::cout << "Supported standard sample rates" << std::endl;
|
|
||||||
std::cout << " for full-duplex 16 bit " << inputParameters.numChannels() << " channel input, " << outputParameters.numChannels() << " channel output = " << std::endl;
|
|
||||||
printSupportedStandardSampleRates(inputParameters, outputParameters);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::cout << "----------------------------------------------" << std::endl;
|
|
||||||
}
|
|
||||||
catch (const portaudio::PaException &e)
|
|
||||||
{
|
|
||||||
std::cout << "A PortAudio error occured: " << e.paErrorText() << std::endl;
|
|
||||||
}
|
|
||||||
catch (const portaudio::PaCppException &e)
|
|
||||||
{
|
|
||||||
std::cout << "A PortAudioCpp error occured: " << e.what() << std::endl;
|
|
||||||
}
|
|
||||||
catch (const std::exception &e)
|
|
||||||
{
|
|
||||||
std::cout << "A generic exception occured: " << e.what() << std::endl;
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
std::cout << "An unknown exception occured." << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
@ -1,137 +0,0 @@
|
|||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <cmath>
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstddef>
|
|
||||||
#include "portaudiocpp/PortAudioCpp.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Some constants:
|
|
||||||
const int NUM_SECONDS = 5;
|
|
||||||
const double SAMPLE_RATE = 44100.0;
|
|
||||||
const int FRAMES_PER_BUFFER = 64;
|
|
||||||
const int TABLE_SIZE = 200;
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// SineGenerator class:
|
|
||||||
class SineGenerator
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
SineGenerator(int tableSize) : tableSize_(tableSize), leftPhase_(0), rightPhase_(0)
|
|
||||||
{
|
|
||||||
const double PI = 3.14159265;
|
|
||||||
table_ = new float[tableSize];
|
|
||||||
for (int i = 0; i < tableSize; ++i)
|
|
||||||
{
|
|
||||||
table_[i] = 0.125f * (float)sin(((double)i/(double)tableSize)*PI*2.);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
~SineGenerator()
|
|
||||||
{
|
|
||||||
delete[] table_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int generate(const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags)
|
|
||||||
{
|
|
||||||
assert(outputBuffer != NULL);
|
|
||||||
|
|
||||||
float **out = static_cast<float **>(outputBuffer);
|
|
||||||
|
|
||||||
for (unsigned int i = 0; i < framesPerBuffer; ++i)
|
|
||||||
{
|
|
||||||
out[0][i] = table_[leftPhase_];
|
|
||||||
out[1][i] = table_[rightPhase_];
|
|
||||||
|
|
||||||
leftPhase_ += 1;
|
|
||||||
if (leftPhase_ >= tableSize_)
|
|
||||||
leftPhase_ -= tableSize_;
|
|
||||||
|
|
||||||
rightPhase_ += 3;
|
|
||||||
if (rightPhase_ >= tableSize_)
|
|
||||||
rightPhase_ -= tableSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
return paContinue;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
float *table_;
|
|
||||||
int tableSize_;
|
|
||||||
int leftPhase_;
|
|
||||||
int rightPhase_;
|
|
||||||
};
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// main:
|
|
||||||
int main(int, char *[]);
|
|
||||||
int main(int, char *[])
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Create a SineGenerator object:
|
|
||||||
SineGenerator sineGenerator(TABLE_SIZE);
|
|
||||||
|
|
||||||
std::cout << "Setting up PortAudio..." << std::endl;
|
|
||||||
|
|
||||||
// Set up the System:
|
|
||||||
portaudio::AutoSystem autoSys;
|
|
||||||
portaudio::System &sys = portaudio::System::instance();
|
|
||||||
|
|
||||||
// Set up the parameters required to open a (Callback)Stream:
|
|
||||||
portaudio::DirectionSpecificStreamParameters outParams(sys.defaultOutputDevice(), 2, portaudio::FLOAT32, false, sys.defaultOutputDevice().defaultLowOutputLatency(), NULL);
|
|
||||||
portaudio::StreamParameters params(portaudio::DirectionSpecificStreamParameters::null(), outParams, SAMPLE_RATE, FRAMES_PER_BUFFER, paClipOff);
|
|
||||||
|
|
||||||
std::cout << "Opening stereo output stream..." << std::endl;
|
|
||||||
|
|
||||||
// Create (and open) a new Stream, using the SineGenerator::generate function as a callback:
|
|
||||||
portaudio::MemFunCallbackStream<SineGenerator> stream(params, sineGenerator, &SineGenerator::generate);
|
|
||||||
|
|
||||||
std::cout << "Starting playback for " << NUM_SECONDS << " seconds." << std::endl;
|
|
||||||
|
|
||||||
// Start the Stream (audio playback starts):
|
|
||||||
stream.start();
|
|
||||||
|
|
||||||
// Wait for 5 seconds:
|
|
||||||
sys.sleep(NUM_SECONDS * 1000);
|
|
||||||
|
|
||||||
std::cout << "Closing stream..." <<std::endl;
|
|
||||||
|
|
||||||
// Stop the Stream (not strictly needed as termintating the System will also stop all open Streams):
|
|
||||||
stream.stop();
|
|
||||||
|
|
||||||
// Close the Stream (not strictly needed as terminating the System will also close all open Streams):
|
|
||||||
stream.close();
|
|
||||||
|
|
||||||
// Terminate the System (not strictly needed as the AutoSystem will also take care of this when it
|
|
||||||
// goes out of scope):
|
|
||||||
sys.terminate();
|
|
||||||
|
|
||||||
std::cout << "Test finished." << std::endl;
|
|
||||||
}
|
|
||||||
catch (const portaudio::PaException &e)
|
|
||||||
{
|
|
||||||
std::cout << "A PortAudio error occured: " << e.paErrorText() << std::endl;
|
|
||||||
}
|
|
||||||
catch (const portaudio::PaCppException &e)
|
|
||||||
{
|
|
||||||
std::cout << "A PortAudioCpp error occured: " << e.what() << std::endl;
|
|
||||||
}
|
|
||||||
catch (const std::exception &e)
|
|
||||||
{
|
|
||||||
std::cout << "A generic exception occured: " << e.what() << std::endl;
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
std::cout << "An unknown exception occured." << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
pkginclude_HEADERS = \
|
|
||||||
portaudiocpp/AutoSystem.hxx \
|
|
||||||
portaudiocpp/BlockingStream.hxx \
|
|
||||||
portaudiocpp/CallbackInterface.hxx \
|
|
||||||
portaudiocpp/CallbackStream.hxx \
|
|
||||||
portaudiocpp/CFunCallbackStream.hxx \
|
|
||||||
portaudiocpp/CppFunCallbackStream.hxx \
|
|
||||||
portaudiocpp/Device.hxx \
|
|
||||||
portaudiocpp/DirectionSpecificStreamParameters.hxx \
|
|
||||||
portaudiocpp/Exception.hxx \
|
|
||||||
portaudiocpp/HostApi.hxx \
|
|
||||||
portaudiocpp/InterfaceCallbackStream.hxx \
|
|
||||||
portaudiocpp/MemFunCallbackStream.hxx \
|
|
||||||
portaudiocpp/PortAudioCpp.hxx \
|
|
||||||
portaudiocpp/SampleDataFormat.hxx \
|
|
||||||
portaudiocpp/Stream.hxx \
|
|
||||||
portaudiocpp/StreamParameters.hxx \
|
|
||||||
portaudiocpp/SystemDeviceIterator.hxx \
|
|
||||||
portaudiocpp/SystemHostApiIterator.hxx \
|
|
||||||
portaudiocpp/System.hxx
|
|
||||||
|
|
||||||
# portaudiocpp/AsioDeviceAdapter.hxx
|
|
@ -1,44 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
class Device;
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
//////
|
|
||||||
/// @brief Adapts the given Device to an ASIO specific extension.
|
|
||||||
///
|
|
||||||
/// Deleting the AsioDeviceAdapter does not affect the underlaying
|
|
||||||
/// Device.
|
|
||||||
//////
|
|
||||||
class AsioDeviceAdapter
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AsioDeviceAdapter(Device &device);
|
|
||||||
|
|
||||||
Device &device();
|
|
||||||
|
|
||||||
long minBufferSize() const;
|
|
||||||
long maxBufferSize() const;
|
|
||||||
long preferredBufferSize() const;
|
|
||||||
long granularity() const;
|
|
||||||
|
|
||||||
void showControlPanel(void *systemSpecific);
|
|
||||||
|
|
||||||
const char *inputChannelName(int channelIndex) const;
|
|
||||||
const char *outputChannelName(int channelIndex) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
Device *device_;
|
|
||||||
|
|
||||||
long minBufferSize_;
|
|
||||||
long maxBufferSize_;
|
|
||||||
long preferredBufferSize_;
|
|
||||||
long granularity_;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
|
|
@ -1,62 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief A RAII idiom class to ensure automatic clean-up when an exception is
|
|
||||||
/// raised.
|
|
||||||
///
|
|
||||||
/// A simple helper class which uses the 'Resource Acquisition is Initialization'
|
|
||||||
/// idiom (RAII). Use this class to initialize/terminate the System rather than
|
|
||||||
/// using System directly. AutoSystem must be created on stack and must be valid
|
|
||||||
/// throughout the time you wish to use PortAudioCpp. Your 'main' function might be
|
|
||||||
/// a good place for it.
|
|
||||||
///
|
|
||||||
/// To avoid having to type portaudio::System::instance().xyz() all the time, it's usually
|
|
||||||
/// a good idea to make a reference to the System which can be accessed directly.
|
|
||||||
/// @verbatim
|
|
||||||
/// portaudio::AutoSys autoSys;
|
|
||||||
/// portaudio::System &sys = portaudio::System::instance();
|
|
||||||
/// @endverbatim
|
|
||||||
//////
|
|
||||||
class AutoSystem
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AutoSystem(bool initialize = true)
|
|
||||||
{
|
|
||||||
if (initialize)
|
|
||||||
System::initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
~AutoSystem()
|
|
||||||
{
|
|
||||||
if (System::exists())
|
|
||||||
System::terminate();
|
|
||||||
}
|
|
||||||
|
|
||||||
void initialize()
|
|
||||||
{
|
|
||||||
System::initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
void terminate()
|
|
||||||
{
|
|
||||||
System::terminate();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_AUTOSYSTEM_HXX
|
|
@ -1,45 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudiocpp/Stream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Stream class for blocking read/write-style input and output.
|
|
||||||
//////
|
|
||||||
class BlockingStream : public Stream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
BlockingStream();
|
|
||||||
BlockingStream(const StreamParameters ¶meters);
|
|
||||||
~BlockingStream();
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters);
|
|
||||||
|
|
||||||
void read(void *buffer, unsigned long numFrames);
|
|
||||||
void write(const void *buffer, unsigned long numFrames);
|
|
||||||
|
|
||||||
signed long availableReadSize() const;
|
|
||||||
signed long availableWriteSize() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
BlockingStream(const BlockingStream &); // non-copyable
|
|
||||||
BlockingStream &operator=(const BlockingStream &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_CFUNCALLBACKSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s)
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class StreamParameters;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Callback stream using a free function with C linkage. It's important that the function
|
|
||||||
/// the passed function pointer points to is declared ``extern "C"''.
|
|
||||||
//////
|
|
||||||
class CFunCallbackStream : public CallbackStream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CFunCallbackStream();
|
|
||||||
CFunCallbackStream(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData);
|
|
||||||
~CFunCallbackStream();
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData);
|
|
||||||
|
|
||||||
private:
|
|
||||||
CFunCallbackStream(const CFunCallbackStream &); // non-copyable
|
|
||||||
CFunCallbackStream &operator=(const CFunCallbackStream &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_MEMFUNCALLBACKSTREAM_HXX
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Interface for an object that's callable as a PortAudioCpp callback object (ie that implements the
|
|
||||||
/// paCallbackFun method).
|
|
||||||
//////
|
|
||||||
class CallbackInterface
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual ~CallbackInterface() {}
|
|
||||||
|
|
||||||
virtual int paCallbackFun(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace impl
|
|
||||||
{
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
int callbackInterfaceToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags,
|
|
||||||
void *userData);
|
|
||||||
} // extern "C"
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
|
|
@ -1,40 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/Stream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Base class for all Streams which use a callback-based mechanism.
|
|
||||||
//////
|
|
||||||
class CallbackStream : public Stream
|
|
||||||
{
|
|
||||||
protected:
|
|
||||||
CallbackStream();
|
|
||||||
virtual ~CallbackStream();
|
|
||||||
|
|
||||||
public:
|
|
||||||
// stream info (time-varying)
|
|
||||||
double cpuLoad() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
CallbackStream(const CallbackStream &); // non-copyable
|
|
||||||
CallbackStream &operator=(const CallbackStream &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
|
|
@ -1,86 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_CPPFUNCALLBACKSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_CPPFUNCALLBACKSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class StreamParameters;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
namespace impl
|
|
||||||
{
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
int cppCallbackToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags,
|
|
||||||
void *userData);
|
|
||||||
} // extern "C"
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Callback stream using a C++ function (either a free function or a static function)
|
|
||||||
/// callback.
|
|
||||||
//////
|
|
||||||
class FunCallbackStream : public CallbackStream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef int (*CallbackFunPtr)(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags,
|
|
||||||
void *userData);
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Simple structure containing a function pointer to the C++ callback function and a
|
|
||||||
/// (void) pointer to the user supplied data.
|
|
||||||
//////
|
|
||||||
struct CppToCCallbackData
|
|
||||||
{
|
|
||||||
CppToCCallbackData();
|
|
||||||
CppToCCallbackData(CallbackFunPtr funPtr, void *userData);
|
|
||||||
void init(CallbackFunPtr funPtr, void *userData);
|
|
||||||
|
|
||||||
CallbackFunPtr funPtr;
|
|
||||||
void *userData;
|
|
||||||
};
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
FunCallbackStream();
|
|
||||||
FunCallbackStream(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData);
|
|
||||||
~FunCallbackStream();
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData);
|
|
||||||
|
|
||||||
private:
|
|
||||||
FunCallbackStream(const FunCallbackStream &); // non-copyable
|
|
||||||
FunCallbackStream &operator=(const FunCallbackStream &); // non-copyable
|
|
||||||
|
|
||||||
CppToCCallbackData adapterData_;
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_CPPFUNCALLBACKSTREAM_HXX
|
|
@ -1,91 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_DEVICE_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_DEVICE_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <iterator>
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/SampleDataFormat.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class System;
|
|
||||||
class HostApi;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Class which represents a PortAudio device in the System.
|
|
||||||
///
|
|
||||||
/// A single physical device in the system may have multiple PortAudio
|
|
||||||
/// Device representations using different HostApi 's though. A Device
|
|
||||||
/// can be half-duplex or full-duplex. A half-duplex Device can be used
|
|
||||||
/// to create a half-duplex Stream. A full-duplex Device can be used to
|
|
||||||
/// create a full-duplex Stream. If supported by the HostApi, two
|
|
||||||
/// half-duplex Devices can even be used to create a full-duplex Stream.
|
|
||||||
///
|
|
||||||
/// Note that Device objects are very light-weight and can be passed around
|
|
||||||
/// by-value.
|
|
||||||
//////
|
|
||||||
class Device
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// query info: name, max in channels, max out channels,
|
|
||||||
// default low/hight input/output latency, default sample rate
|
|
||||||
PaDeviceIndex index() const;
|
|
||||||
const char *name() const;
|
|
||||||
int maxInputChannels() const;
|
|
||||||
int maxOutputChannels() const;
|
|
||||||
PaTime defaultLowInputLatency() const;
|
|
||||||
PaTime defaultHighInputLatency() const;
|
|
||||||
PaTime defaultLowOutputLatency() const;
|
|
||||||
PaTime defaultHighOutputLatency() const;
|
|
||||||
double defaultSampleRate() const;
|
|
||||||
|
|
||||||
bool isInputOnlyDevice() const; // extended
|
|
||||||
bool isOutputOnlyDevice() const; // extended
|
|
||||||
bool isFullDuplexDevice() const; // extended
|
|
||||||
bool isSystemDefaultInputDevice() const; // extended
|
|
||||||
bool isSystemDefaultOutputDevice() const; // extended
|
|
||||||
bool isHostApiDefaultInputDevice() const; // extended
|
|
||||||
bool isHostApiDefaultOutputDevice() const; // extended
|
|
||||||
|
|
||||||
bool operator==(const Device &rhs);
|
|
||||||
bool operator!=(const Device &rhs);
|
|
||||||
|
|
||||||
// host api reference
|
|
||||||
HostApi &hostApi();
|
|
||||||
const HostApi &hostApi() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
PaDeviceIndex index_;
|
|
||||||
const PaDeviceInfo *info_;
|
|
||||||
|
|
||||||
private:
|
|
||||||
friend class System;
|
|
||||||
|
|
||||||
explicit Device(PaDeviceIndex index);
|
|
||||||
~Device();
|
|
||||||
|
|
||||||
Device(const Device &); // non-copyable
|
|
||||||
Device &operator=(const Device &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_DEVICE_HXX
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
#include "portaudiocpp/SampleDataFormat.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class Device;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief All parameters for one direction (either in or out) of a Stream. Together with
|
|
||||||
/// parameters common to both directions, two DirectionSpecificStreamParameters can make up
|
|
||||||
/// a StreamParameters object which contains all parameters for a Stream.
|
|
||||||
//////
|
|
||||||
class DirectionSpecificStreamParameters
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
static DirectionSpecificStreamParameters null();
|
|
||||||
|
|
||||||
DirectionSpecificStreamParameters();
|
|
||||||
DirectionSpecificStreamParameters(const Device &device, int numChannels, SampleDataFormat format,
|
|
||||||
bool interleaved, PaTime suggestedLatency, void *hostApiSpecificStreamInfo);
|
|
||||||
|
|
||||||
// Set up methods:
|
|
||||||
void setDevice(const Device &device);
|
|
||||||
void setNumChannels(int numChannels);
|
|
||||||
|
|
||||||
void setSampleFormat(SampleDataFormat format, bool interleaved = true);
|
|
||||||
void setHostApiSpecificSampleFormat(PaSampleFormat format, bool interleaved = true);
|
|
||||||
|
|
||||||
void setSuggestedLatency(PaTime latency);
|
|
||||||
|
|
||||||
void setHostApiSpecificStreamInfo(void *streamInfo);
|
|
||||||
|
|
||||||
// Accessor methods:
|
|
||||||
PaStreamParameters *paStreamParameters();
|
|
||||||
const PaStreamParameters *paStreamParameters() const;
|
|
||||||
|
|
||||||
Device &device() const;
|
|
||||||
int numChannels() const;
|
|
||||||
|
|
||||||
SampleDataFormat sampleFormat() const;
|
|
||||||
bool isSampleFormatInterleaved() const;
|
|
||||||
bool isSampleFormatHostApiSpecific() const;
|
|
||||||
PaSampleFormat hostApiSpecificSampleFormat() const;
|
|
||||||
|
|
||||||
PaTime suggestedLatency() const;
|
|
||||||
|
|
||||||
void *hostApiSpecificStreamInfo() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
PaStreamParameters paStreamParameters_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_SINGLEDIRECTIONSTREAMPARAMETERS_HXX
|
|
@ -1,108 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_EXCEPTION_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_EXCEPTION_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <exception>
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Base class for all exceptions PortAudioCpp can throw.
|
|
||||||
///
|
|
||||||
/// Class is derived from std::exception.
|
|
||||||
//////
|
|
||||||
class Exception : public std::exception
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual ~Exception() throw() {}
|
|
||||||
|
|
||||||
virtual const char *what() const throw() = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Wrapper for PortAudio error codes to C++ exceptions.
|
|
||||||
///
|
|
||||||
/// It wraps up PortAudio's error handling mechanism using
|
|
||||||
/// C++ exceptions and is derived from std::exception for
|
|
||||||
/// easy exception handling and to ease integration with
|
|
||||||
/// other code.
|
|
||||||
///
|
|
||||||
/// To know what exceptions each function may throw, look up
|
|
||||||
/// the errors that can occure in the PortAudio documentation
|
|
||||||
/// for the equivalent functions.
|
|
||||||
///
|
|
||||||
/// Some functions are likely to throw an exception (such as
|
|
||||||
/// Stream::open(), etc) and these should always be called in
|
|
||||||
/// try{} catch{} blocks and the thrown exceptions should be
|
|
||||||
/// handled properly (ie. the application shouldn't just abort,
|
|
||||||
/// but merely display a warning dialog to the user or something).
|
|
||||||
/// However nearly all functions in PortAudioCpp are capable
|
|
||||||
/// of throwing exceptions. When a function like Stream::isStopped()
|
|
||||||
/// throws an exception, it's such an exceptional state that it's
|
|
||||||
/// not likely that it can be recovered. PaExceptions such as these
|
|
||||||
/// can ``safely'' be left to be handled by some outer catch-all-like
|
|
||||||
/// mechanism for unrecoverable errors.
|
|
||||||
//////
|
|
||||||
class PaException : public Exception
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
explicit PaException(PaError error);
|
|
||||||
|
|
||||||
const char *what() const throw();
|
|
||||||
|
|
||||||
PaError paError() const;
|
|
||||||
const char *paErrorText() const;
|
|
||||||
|
|
||||||
bool isHostApiError() const; // extended
|
|
||||||
long lastHostApiError() const;
|
|
||||||
const char *lastHostApiErrorText() const;
|
|
||||||
|
|
||||||
bool operator==(const PaException &rhs) const;
|
|
||||||
bool operator!=(const PaException &rhs) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
PaError error_;
|
|
||||||
};
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Exceptions specific to PortAudioCpp (ie. exceptions which do not have an
|
|
||||||
/// equivalent PortAudio error code).
|
|
||||||
//////
|
|
||||||
class PaCppException : public Exception
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
enum ExceptionSpecifier
|
|
||||||
{
|
|
||||||
UNABLE_TO_ADAPT_DEVICE
|
|
||||||
};
|
|
||||||
|
|
||||||
PaCppException(ExceptionSpecifier specifier);
|
|
||||||
|
|
||||||
const char *what() const throw();
|
|
||||||
|
|
||||||
ExceptionSpecifier specifier() const;
|
|
||||||
|
|
||||||
bool operator==(const PaCppException &rhs) const;
|
|
||||||
bool operator!=(const PaCppException &rhs) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
ExceptionSpecifier specifier_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_EXCEPTION_HXX
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_HOSTAPI_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_HOSTAPI_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class Device;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief HostApi represents a host API (usually type of driver) in the System.
|
|
||||||
///
|
|
||||||
/// A single System can support multiple HostApi's each one typically having
|
|
||||||
/// a set of Devices using that HostApi (usually driver type). All Devices in
|
|
||||||
/// the HostApi can be enumerated and the default input/output Device for this
|
|
||||||
/// HostApi can be retreived.
|
|
||||||
//////
|
|
||||||
class HostApi
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef System::DeviceIterator DeviceIterator;
|
|
||||||
|
|
||||||
// query info: id, name, numDevices
|
|
||||||
PaHostApiTypeId typeId() const;
|
|
||||||
PaHostApiIndex index() const;
|
|
||||||
const char *name() const;
|
|
||||||
int deviceCount() const;
|
|
||||||
|
|
||||||
// iterate devices
|
|
||||||
DeviceIterator devicesBegin();
|
|
||||||
DeviceIterator devicesEnd();
|
|
||||||
|
|
||||||
// default devices
|
|
||||||
Device &defaultInputDevice() const;
|
|
||||||
Device &defaultOutputDevice() const;
|
|
||||||
|
|
||||||
// comparison operators
|
|
||||||
bool operator==(const HostApi &rhs) const;
|
|
||||||
bool operator!=(const HostApi &rhs) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
const PaHostApiInfo *info_;
|
|
||||||
Device **devices_;
|
|
||||||
|
|
||||||
private:
|
|
||||||
friend class System;
|
|
||||||
|
|
||||||
explicit HostApi(PaHostApiIndex index);
|
|
||||||
~HostApi();
|
|
||||||
|
|
||||||
HostApi(const HostApi &); // non-copyable
|
|
||||||
HostApi &operator=(const HostApi &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_HOSTAPI_HXX
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s)
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class StreamParameters;
|
|
||||||
class CallbackInterface;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Callback stream using an instance of an object that's derived from the CallbackInterface
|
|
||||||
/// interface.
|
|
||||||
//////
|
|
||||||
class InterfaceCallbackStream : public CallbackStream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
InterfaceCallbackStream();
|
|
||||||
InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance);
|
|
||||||
~InterfaceCallbackStream();
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters, CallbackInterface &instance);
|
|
||||||
|
|
||||||
private:
|
|
||||||
InterfaceCallbackStream(const InterfaceCallbackStream &); // non-copyable
|
|
||||||
InterfaceCallbackStream &operator=(const InterfaceCallbackStream &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
|
|
@ -1,107 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_MEMFUNCALLBACKSTREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_MEMFUNCALLBACKSTREAM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/CallbackInterface.hxx"
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
#include "portaudiocpp/InterfaceCallbackStream.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Callback stream using a class's member function as a callback. Template argument T is the type of the
|
|
||||||
/// class of which a member function is going to be used.
|
|
||||||
///
|
|
||||||
/// Example usage:
|
|
||||||
/// @verbatim MemFunCallback<MyClass> stream = MemFunCallbackStream(parameters, *this, &MyClass::myCallbackFunction); @endverbatim
|
|
||||||
//////
|
|
||||||
template<typename T>
|
|
||||||
class MemFunCallbackStream : public CallbackStream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef int (T::*CallbackFunPtr)(const void *, void *, unsigned long, const PaStreamCallbackTimeInfo *,
|
|
||||||
PaStreamCallbackFlags);
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
MemFunCallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
MemFunCallbackStream(const StreamParameters ¶meters, T &instance, CallbackFunPtr memFun) : adapter_(instance, memFun)
|
|
||||||
{
|
|
||||||
open(parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
~MemFunCallbackStream()
|
|
||||||
{
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters, T &instance, CallbackFunPtr memFun)
|
|
||||||
{
|
|
||||||
// XXX: need to check if already open?
|
|
||||||
|
|
||||||
adapter_.init(instance, memFun);
|
|
||||||
open(parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
MemFunCallbackStream(const MemFunCallbackStream &); // non-copyable
|
|
||||||
MemFunCallbackStream &operator=(const MemFunCallbackStream &); // non-copyable
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Inner class which adapts a member function callback to a CallbackInterface compliant
|
|
||||||
/// class (so it can be adapted using the paCallbackAdapter function).
|
|
||||||
//////
|
|
||||||
class MemFunToCallbackInterfaceAdapter : public CallbackInterface
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
MemFunToCallbackInterfaceAdapter() {}
|
|
||||||
MemFunToCallbackInterfaceAdapter(T &instance, CallbackFunPtr memFun) : instance_(&instance), memFun_(memFun) {}
|
|
||||||
|
|
||||||
void init(T &instance, CallbackFunPtr memFun)
|
|
||||||
{
|
|
||||||
instance_ = &instance;
|
|
||||||
memFun_ = memFun;
|
|
||||||
}
|
|
||||||
|
|
||||||
int paCallbackFun(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags)
|
|
||||||
{
|
|
||||||
return (instance_->*memFun_)(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
T *instance_;
|
|
||||||
CallbackFunPtr memFun_;
|
|
||||||
};
|
|
||||||
|
|
||||||
MemFunToCallbackInterfaceAdapter adapter_;
|
|
||||||
|
|
||||||
void open(const StreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
|
|
||||||
parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), &impl::callbackInterfaceToPaCallbackAdapter,
|
|
||||||
static_cast<void *>(&adapter_));
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_MEMFUNCALLBACKSTREAM_HXX
|
|
@ -1,109 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @mainpage PortAudioCpp
|
|
||||||
///
|
|
||||||
/// <h1>PortAudioCpp - A Native C++ Binding of PortAudio V19</h1>
|
|
||||||
/// <h2>PortAudio</h2>
|
|
||||||
/// <p>
|
|
||||||
/// PortAudio is a portable and mature C API for accessing audio hardware. It offers both callback-based and blocking
|
|
||||||
/// style input and output, deals with sample data format conversions, dithering and much more. There are a large number
|
|
||||||
/// of implementations available for various platforms including Windows MME, Windows DirectX, Windows and MacOS (Classic)
|
|
||||||
/// ASIO, MacOS Classic SoundManager, MacOS X CoreAudio, OSS (Linux), Linux ALSA, JACK (MacOS X and Linux) and SGI Irix
|
|
||||||
/// AL. Note that, currently not all of these implementations are equally complete or up-to-date (as PortAudio V19 is
|
|
||||||
/// still in development). Because PortAudio has a C API, it can easily be called from a variety of other programming
|
|
||||||
/// languages.
|
|
||||||
/// </p>
|
|
||||||
/// <h2>PortAudioCpp</h2>
|
|
||||||
/// <p>
|
|
||||||
/// Although, it is possible to use PortAudio's C API from within a C++ program, this is usually a little awkward
|
|
||||||
/// as procedural and object-oriented paradigms need to be mixed. PortAudioCpp aims to resolve this by encapsulating
|
|
||||||
/// PortAudio's C API to form an equivalent object-oriented C++ API. It provides a more natural integration of PortAudio
|
|
||||||
/// into C++ programs as well as a more structured interface. PortAudio's concepts were preserved as much as possible and
|
|
||||||
/// no additional features were added except for some `convenience methods'.
|
|
||||||
/// </p>
|
|
||||||
/// <p>
|
|
||||||
/// PortAudioCpp's main features are:
|
|
||||||
/// <ul>
|
|
||||||
/// <li>Structured object model.</li>
|
|
||||||
/// <li>C++ exception handling instead of C-style error return codes.</li>
|
|
||||||
/// <li>Handling of callbacks using free functions (C and C++), static functions, member functions or instances of classes
|
|
||||||
/// derived from a given interface.</li>
|
|
||||||
/// <li>STL compliant iterators to host APIs and devices.</li>
|
|
||||||
/// <li>Some additional convenience functions to more easily set up and use PortAudio.</li>
|
|
||||||
/// </ul>
|
|
||||||
/// </p>
|
|
||||||
/// <p>
|
|
||||||
/// PortAudioCpp requires a recent version of the PortAudio V19 source code. This can be obtained from CVS or as a snapshot
|
|
||||||
/// from the website. The examples also require the ASIO 2 SDK which can be obtained from the Steinberg website. Alternatively, the
|
|
||||||
/// examples can easily be modified to compile without needing ASIO.
|
|
||||||
/// </p>
|
|
||||||
/// <p>
|
|
||||||
/// Supported platforms:
|
|
||||||
/// <ul>
|
|
||||||
/// <li>Microsoft Visual C++ 6.0, 7.0 (.NET 2002) and 7.1 (.NET 2003).</li>
|
|
||||||
/// <li>GNU G++ 2.95 and G++ 3.3.</li>
|
|
||||||
/// </ul>
|
|
||||||
/// Other platforms should be easily supported as PortAudioCpp is platform-independent and (reasonably) C++ standard compliant.
|
|
||||||
/// </p>
|
|
||||||
/// <p>
|
|
||||||
/// This documentation mainly provides information specific to PortAudioCpp. For a more complete explaination of all of the
|
|
||||||
/// concepts used, please consult the PortAudio documentation.
|
|
||||||
/// </p>
|
|
||||||
/// <p>
|
|
||||||
/// PortAudioCpp was developed by Merlijn Blaauw with many great suggestions and help from Ross Bencina. Ludwig Schwardt provided
|
|
||||||
/// GNU/Linux build files and checked G++ compatibility. PortAudioCpp may be used under the same licensing, conditions and
|
|
||||||
/// warranty as PortAudio. See <a href="http://www.portaudio.com/license.html">the PortAudio license</a> for more details.
|
|
||||||
/// </p>
|
|
||||||
/// <h2>Links</h2>
|
|
||||||
/// <p>
|
|
||||||
/// <a href="http://www.portaudio.com/">Official PortAudio site.</a><br>
|
|
||||||
/// </p>
|
|
||||||
//////
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @namespace portaudio
|
|
||||||
///
|
|
||||||
/// To avoid name collision, everything in PortAudioCpp is in the portaudio
|
|
||||||
/// namespace. If this name is too long it's usually pretty safe to use an
|
|
||||||
/// alias like ``namespace pa = portaudio;''.
|
|
||||||
//////
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @file PortAudioCpp.hxx
|
|
||||||
/// An include-all header file (for lazy programmers and using pre-compiled headers).
|
|
||||||
//////
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/AutoSystem.hxx"
|
|
||||||
#include "portaudiocpp/BlockingStream.hxx"
|
|
||||||
#include "portaudiocpp/CallbackInterface.hxx"
|
|
||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/CFunCallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/CppFunCallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
#include "portaudiocpp/HostApi.hxx"
|
|
||||||
#include "portaudiocpp/InterfaceCallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/MemFunCallbackStream.hxx"
|
|
||||||
#include "portaudiocpp/SampleDataFormat.hxx"
|
|
||||||
#include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Stream.hxx"
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
#include "portaudiocpp/SystemDeviceIterator.hxx"
|
|
||||||
#include "portaudiocpp/SystemHostApiIterator.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX
|
|
@ -1,35 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief PortAudio sample data formats.
|
|
||||||
///
|
|
||||||
/// Small helper enum to wrap the PortAudio defines.
|
|
||||||
//////
|
|
||||||
enum SampleDataFormat
|
|
||||||
{
|
|
||||||
INVALID_FORMAT = 0,
|
|
||||||
FLOAT32 = paFloat32,
|
|
||||||
INT32 = paInt32,
|
|
||||||
INT24 = paInt24,
|
|
||||||
INT16 = paInt16,
|
|
||||||
INT8 = paInt8,
|
|
||||||
UINT8 = paUInt8
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_SAMPLEDATAFORMAT_HXX
|
|
@ -1,82 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_STREAM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_STREAM_HXX
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class StreamParameters;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief A Stream represents an active or inactive input and/or output data
|
|
||||||
/// stream in the System.
|
|
||||||
///
|
|
||||||
/// Concrete Stream classes should ensure themselves being in a closed state at
|
|
||||||
/// destruction (i.e. by calling their own close() method in their deconstructor).
|
|
||||||
/// Following good C++ programming practices, care must be taken to ensure no
|
|
||||||
/// exceptions are thrown by the deconstructor of these classes. As a consequence,
|
|
||||||
/// clients need to explicitly call close() to ensure the stream closed successfully.
|
|
||||||
///
|
|
||||||
/// The Stream object can be used to manipulate the Stream's state. Also, time-constant
|
|
||||||
/// and time-varying information about the Stream can be retreived.
|
|
||||||
//////
|
|
||||||
class Stream
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
// Opening/closing:
|
|
||||||
virtual ~Stream();
|
|
||||||
|
|
||||||
virtual void close();
|
|
||||||
bool isOpen() const;
|
|
||||||
|
|
||||||
// Additional set up:
|
|
||||||
void setStreamFinishedCallback(PaStreamFinishedCallback *callback);
|
|
||||||
|
|
||||||
// State management:
|
|
||||||
void start();
|
|
||||||
void stop();
|
|
||||||
void abort();
|
|
||||||
|
|
||||||
bool isStopped() const;
|
|
||||||
bool isActive() const;
|
|
||||||
|
|
||||||
// Stream info (time-constant, but might become time-variant soon):
|
|
||||||
PaTime inputLatency() const;
|
|
||||||
PaTime outputLatency() const;
|
|
||||||
double sampleRate() const;
|
|
||||||
|
|
||||||
// Stream info (time-varying):
|
|
||||||
PaTime time() const;
|
|
||||||
|
|
||||||
// Accessors for PortAudio PaStream, useful for interfacing
|
|
||||||
// with PortAudio add-ons (such as PortMixer) for instance:
|
|
||||||
const PaStream *paStream() const;
|
|
||||||
PaStream *paStream();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
Stream(); // abstract class
|
|
||||||
|
|
||||||
PaStream *stream_;
|
|
||||||
|
|
||||||
private:
|
|
||||||
Stream(const Stream &); // non-copyable
|
|
||||||
Stream &operator=(const Stream &); // non-copyable
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_STREAM_HXX
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief The entire set of parameters needed to configure and open
|
|
||||||
/// a Stream.
|
|
||||||
///
|
|
||||||
/// It contains parameters of input, output and shared parameters.
|
|
||||||
/// Using the isSupported() method, the StreamParameters can be
|
|
||||||
/// checked if opening a Stream using this StreamParameters would
|
|
||||||
/// succeed or not. Accessors are provided to higher-level parameters
|
|
||||||
/// aswell as the lower-level parameters which are mainly intended for
|
|
||||||
/// internal use.
|
|
||||||
//////
|
|
||||||
class StreamParameters
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
StreamParameters();
|
|
||||||
StreamParameters(const DirectionSpecificStreamParameters &inputParameters,
|
|
||||||
const DirectionSpecificStreamParameters &outputParameters, double sampleRate,
|
|
||||||
unsigned long framesPerBuffer, PaStreamFlags flags);
|
|
||||||
|
|
||||||
// Set up for direction-specific:
|
|
||||||
void setInputParameters(const DirectionSpecificStreamParameters ¶meters);
|
|
||||||
void setOutputParameters(const DirectionSpecificStreamParameters ¶meters);
|
|
||||||
|
|
||||||
// Set up for common parameters:
|
|
||||||
void setSampleRate(double sampleRate);
|
|
||||||
void setFramesPerBuffer(unsigned long framesPerBuffer);
|
|
||||||
void setFlag(PaStreamFlags flag);
|
|
||||||
void unsetFlag(PaStreamFlags flag);
|
|
||||||
void clearFlags();
|
|
||||||
|
|
||||||
// Validation:
|
|
||||||
bool isSupported() const;
|
|
||||||
|
|
||||||
// Accessors (direction-specific):
|
|
||||||
DirectionSpecificStreamParameters &inputParameters();
|
|
||||||
const DirectionSpecificStreamParameters &inputParameters() const;
|
|
||||||
DirectionSpecificStreamParameters &outputParameters();
|
|
||||||
const DirectionSpecificStreamParameters &outputParameters() const;
|
|
||||||
|
|
||||||
// Accessors (common):
|
|
||||||
double sampleRate() const;
|
|
||||||
unsigned long framesPerBuffer() const;
|
|
||||||
PaStreamFlags flags() const;
|
|
||||||
bool isFlagSet(PaStreamFlags flag) const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
// Half-duplex specific parameters:
|
|
||||||
DirectionSpecificStreamParameters inputParameters_;
|
|
||||||
DirectionSpecificStreamParameters outputParameters_;
|
|
||||||
|
|
||||||
// Common parameters:
|
|
||||||
double sampleRate_;
|
|
||||||
unsigned long framesPerBuffer_;
|
|
||||||
PaStreamFlags flags_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_STREAMPARAMETERS_HXX
|
|
@ -1,107 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_SYSTEM_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_SYSTEM_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class Device;
|
|
||||||
class Stream;
|
|
||||||
class HostApi;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief System singleton which represents the PortAudio system.
|
|
||||||
///
|
|
||||||
/// The System is used to initialize/terminate PortAudio and provide
|
|
||||||
/// a single acccess point to the PortAudio System (instance()).
|
|
||||||
/// It can be used to iterate through all HostApi 's in the System as
|
|
||||||
/// well as all devices in the System. It also provides some utility
|
|
||||||
/// functionality of PortAudio.
|
|
||||||
///
|
|
||||||
/// Terminating the System will also abort and close the open streams.
|
|
||||||
/// The Stream objects will need to be deallocated by the client though
|
|
||||||
/// (it's usually a good idea to have them cleaned up automatically).
|
|
||||||
//////
|
|
||||||
class System
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
class HostApiIterator; // forward declaration
|
|
||||||
class DeviceIterator; // forward declaration
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
static int version();
|
|
||||||
static const char *versionText();
|
|
||||||
|
|
||||||
static void initialize();
|
|
||||||
static void terminate();
|
|
||||||
|
|
||||||
static System &instance();
|
|
||||||
static bool exists();
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// host apis:
|
|
||||||
HostApiIterator hostApisBegin();
|
|
||||||
HostApiIterator hostApisEnd();
|
|
||||||
|
|
||||||
HostApi &defaultHostApi();
|
|
||||||
|
|
||||||
HostApi &hostApiByTypeId(PaHostApiTypeId type);
|
|
||||||
HostApi &hostApiByIndex(PaHostApiIndex index);
|
|
||||||
|
|
||||||
int hostApiCount();
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// devices:
|
|
||||||
DeviceIterator devicesBegin();
|
|
||||||
DeviceIterator devicesEnd();
|
|
||||||
|
|
||||||
Device &defaultInputDevice();
|
|
||||||
Device &defaultOutputDevice();
|
|
||||||
|
|
||||||
Device &deviceByIndex(PaDeviceIndex index);
|
|
||||||
|
|
||||||
int deviceCount();
|
|
||||||
|
|
||||||
static Device &nullDevice();
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// misc:
|
|
||||||
void sleep(long msec);
|
|
||||||
int sizeOfSample(PaSampleFormat format);
|
|
||||||
|
|
||||||
private:
|
|
||||||
System();
|
|
||||||
~System();
|
|
||||||
|
|
||||||
static System *instance_;
|
|
||||||
static int initCount_;
|
|
||||||
|
|
||||||
static HostApi **hostApis_;
|
|
||||||
static Device **devices_;
|
|
||||||
|
|
||||||
static Device *nullDevice_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_SYSTEM_HXX
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <iterator>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class Device;
|
|
||||||
class HostApi;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Iterator class for iterating through all Devices in a System.
|
|
||||||
///
|
|
||||||
/// Devices will be iterated by iterating all Devices in each
|
|
||||||
/// HostApi in the System. Compliant with the STL bidirectional
|
|
||||||
/// iterator concept.
|
|
||||||
//////
|
|
||||||
class System::DeviceIterator
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef std::bidirectional_iterator_tag iterator_category;
|
|
||||||
typedef Device value_type;
|
|
||||||
typedef ptrdiff_t difference_type;
|
|
||||||
typedef Device * pointer;
|
|
||||||
typedef Device & reference;
|
|
||||||
|
|
||||||
Device &operator*() const;
|
|
||||||
Device *operator->() const;
|
|
||||||
|
|
||||||
DeviceIterator &operator++();
|
|
||||||
DeviceIterator operator++(int);
|
|
||||||
DeviceIterator &operator--();
|
|
||||||
DeviceIterator operator--(int);
|
|
||||||
|
|
||||||
bool operator==(const DeviceIterator &rhs);
|
|
||||||
bool operator!=(const DeviceIterator &rhs);
|
|
||||||
|
|
||||||
private:
|
|
||||||
friend class System;
|
|
||||||
friend class HostApi;
|
|
||||||
Device **ptr_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_SYSTEMDEVICEITERATOR_HXX
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
|||||||
#ifndef INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
|
|
||||||
#define INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <iterator>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Forward declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
class HostApi;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Declaration(s):
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// @brief Iterator class for iterating through all HostApis in a System.
|
|
||||||
///
|
|
||||||
/// Compliant with the STL bidirectional iterator concept.
|
|
||||||
//////
|
|
||||||
class System::HostApiIterator
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef std::bidirectional_iterator_tag iterator_category;
|
|
||||||
typedef Device value_type;
|
|
||||||
typedef ptrdiff_t difference_type;
|
|
||||||
typedef HostApi * pointer;
|
|
||||||
typedef HostApi & reference;
|
|
||||||
|
|
||||||
HostApi &operator*() const;
|
|
||||||
HostApi *operator->() const;
|
|
||||||
|
|
||||||
HostApiIterator &operator++();
|
|
||||||
HostApiIterator operator++(int);
|
|
||||||
HostApiIterator &operator--();
|
|
||||||
HostApiIterator operator--(int);
|
|
||||||
|
|
||||||
bool operator==(const HostApiIterator &rhs);
|
|
||||||
bool operator!=(const HostApiIterator &rhs);
|
|
||||||
|
|
||||||
private:
|
|
||||||
friend class System;
|
|
||||||
HostApi **ptr_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // INCLUDED_PORTAUDIO_SYSTEMHOSTAPIITERATOR_HXX
|
|
@ -1,26 +0,0 @@
|
|||||||
SRCDIR = $(top_srcdir)/source/portaudiocpp
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libportaudiocpp.la
|
|
||||||
|
|
||||||
LDADD = libportaudiocpp.la
|
|
||||||
|
|
||||||
libportaudiocpp_la_LDFLAGS = -version-info $(LT_VERSION_INFO) -no-undefined
|
|
||||||
|
|
||||||
libportaudiocpp_la_LIBADD = $(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
|
|
||||||
libportaudiocpp_la_SOURCES = \
|
|
||||||
$(SRCDIR)/BlockingStream.cxx \
|
|
||||||
$(SRCDIR)/CallbackInterface.cxx \
|
|
||||||
$(SRCDIR)/CallbackStream.cxx \
|
|
||||||
$(SRCDIR)/CFunCallbackStream.cxx \
|
|
||||||
$(SRCDIR)/CppFunCallbackStream.cxx \
|
|
||||||
$(SRCDIR)/Device.cxx \
|
|
||||||
$(SRCDIR)/DirectionSpecificStreamParameters.cxx \
|
|
||||||
$(SRCDIR)/Exception.cxx \
|
|
||||||
$(SRCDIR)/HostApi.cxx \
|
|
||||||
$(SRCDIR)/InterfaceCallbackStream.cxx \
|
|
||||||
$(SRCDIR)/MemFunCallbackStream.cxx \
|
|
||||||
$(SRCDIR)/Stream.cxx \
|
|
||||||
$(SRCDIR)/StreamParameters.cxx \
|
|
||||||
$(SRCDIR)/System.cxx \
|
|
||||||
$(SRCDIR)/SystemDeviceIterator.cxx \
|
|
||||||
$(SRCDIR)/SystemHostApiIterator.cxx
|
|
@ -1,12 +0,0 @@
|
|||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
libdir=@libdir@
|
|
||||||
includedir=@includedir@
|
|
||||||
|
|
||||||
Name: PortAudioCpp
|
|
||||||
Description: Portable audio I/O C++ bindings
|
|
||||||
Version: 12
|
|
||||||
Requires: portaudio-2.0
|
|
||||||
|
|
||||||
Libs: -L${libdir} -lportaudiocpp
|
|
||||||
Cflags: -I${includedir}
|
|
@ -1,83 +0,0 @@
|
|||||||
#include "portaudiocpp/AsioDeviceAdapter.hxx"
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
#include "pa_asio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
#include "portaudiocpp/HostApi.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
AsioDeviceAdapter::AsioDeviceAdapter(Device &device)
|
|
||||||
{
|
|
||||||
if (device.hostApi().typeId() != paASIO)
|
|
||||||
throw PaCppException(PaCppException::UNABLE_TO_ADAPT_DEVICE);
|
|
||||||
|
|
||||||
device_ = &device;
|
|
||||||
|
|
||||||
PaError err = PaAsio_GetAvailableLatencyValues(device_->index(), &minBufferSize_, &maxBufferSize_,
|
|
||||||
&preferredBufferSize_, &granularity_);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Device &AsioDeviceAdapter::device()
|
|
||||||
{
|
|
||||||
return *device_;
|
|
||||||
}
|
|
||||||
|
|
||||||
long AsioDeviceAdapter::minBufferSize() const
|
|
||||||
{
|
|
||||||
return minBufferSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
long AsioDeviceAdapter::maxBufferSize() const
|
|
||||||
{
|
|
||||||
return maxBufferSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
long AsioDeviceAdapter::preferredBufferSize() const
|
|
||||||
{
|
|
||||||
return preferredBufferSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
long AsioDeviceAdapter::granularity() const
|
|
||||||
{
|
|
||||||
return granularity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AsioDeviceAdapter::showControlPanel(void *systemSpecific)
|
|
||||||
{
|
|
||||||
PaError err = PaAsio_ShowControlPanel(device_->index(), systemSpecific);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *AsioDeviceAdapter::inputChannelName(int channelIndex) const
|
|
||||||
{
|
|
||||||
const char *channelName;
|
|
||||||
PaError err = PaAsio_GetInputChannelName(device_->index(), channelIndex, &channelName);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
|
|
||||||
return channelName;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *AsioDeviceAdapter::outputChannelName(int channelIndex) const
|
|
||||||
{
|
|
||||||
const char *channelName;
|
|
||||||
PaError err = PaAsio_GetOutputChannelName(device_->index(), channelIndex, &channelName);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
|
|
||||||
return channelName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
|||||||
#include "portaudiocpp/BlockingStream.hxx"
|
|
||||||
|
|
||||||
#include "portaudio.h"
|
|
||||||
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
BlockingStream::BlockingStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
BlockingStream::BlockingStream(const StreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
open(parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
BlockingStream::~BlockingStream()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// ignore all errors
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void BlockingStream::open(const StreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
|
|
||||||
parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), NULL, NULL);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void BlockingStream::read(void *buffer, unsigned long numFrames)
|
|
||||||
{
|
|
||||||
PaError err = Pa_ReadStream(stream_, buffer, numFrames);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void BlockingStream::write(const void *buffer, unsigned long numFrames)
|
|
||||||
{
|
|
||||||
PaError err = Pa_WriteStream(stream_, buffer, numFrames);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
signed long BlockingStream::availableReadSize() const
|
|
||||||
{
|
|
||||||
signed long avail = Pa_GetStreamReadAvailable(stream_);
|
|
||||||
|
|
||||||
if (avail < 0)
|
|
||||||
{
|
|
||||||
throw PaException(avail);
|
|
||||||
}
|
|
||||||
|
|
||||||
return avail;
|
|
||||||
}
|
|
||||||
|
|
||||||
signed long BlockingStream::availableWriteSize() const
|
|
||||||
{
|
|
||||||
signed long avail = Pa_GetStreamWriteAvailable(stream_);
|
|
||||||
|
|
||||||
if (avail < 0)
|
|
||||||
{
|
|
||||||
throw PaException(avail);
|
|
||||||
}
|
|
||||||
|
|
||||||
return avail;
|
|
||||||
}
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // portaudio
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
|||||||
#include "portaudiocpp/CFunCallbackStream.hxx"
|
|
||||||
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
CFunCallbackStream::CFunCallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CFunCallbackStream::CFunCallbackStream(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData)
|
|
||||||
{
|
|
||||||
open(parameters, funPtr, userData);
|
|
||||||
}
|
|
||||||
|
|
||||||
CFunCallbackStream::~CFunCallbackStream()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// ignore all errors
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------==
|
|
||||||
|
|
||||||
void CFunCallbackStream::open(const StreamParameters ¶meters, PaStreamCallback *funPtr, void *userData)
|
|
||||||
{
|
|
||||||
PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
|
|
||||||
parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), funPtr, userData);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
#include "portaudiocpp/CallbackInterface.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
namespace impl
|
|
||||||
{
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Adapts any CallbackInterface object to a C-callable function (ie this function). A
|
|
||||||
/// pointer to the object should be passed as ``userData'' when setting up the callback.
|
|
||||||
//////
|
|
||||||
int callbackInterfaceToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
|
|
||||||
{
|
|
||||||
CallbackInterface *cb = static_cast<CallbackInterface *>(userData);
|
|
||||||
return cb->paCallbackFun(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace impl
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
#include "portaudiocpp/CallbackStream.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
CallbackStream::CallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CallbackStream::~CallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
double CallbackStream::cpuLoad() const
|
|
||||||
{
|
|
||||||
return Pa_GetStreamCpuLoad(stream_);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
@ -1,81 +0,0 @@
|
|||||||
#include "portaudiocpp/CppFunCallbackStream.hxx"
|
|
||||||
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
namespace impl
|
|
||||||
{
|
|
||||||
//////
|
|
||||||
/// Adapts any a C++ callback to a C-callable function (ie this function). A
|
|
||||||
/// pointer to a struct with the C++ function pointer and the actual user data should be
|
|
||||||
/// passed as the ``userData'' parameter when setting up the callback.
|
|
||||||
//////
|
|
||||||
int cppCallbackToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames,
|
|
||||||
const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
|
|
||||||
{
|
|
||||||
FunCallbackStream::CppToCCallbackData *data = static_cast<FunCallbackStream::CppToCCallbackData *>(userData);
|
|
||||||
return data->funPtr(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags, data->userData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
FunCallbackStream::CppToCCallbackData::CppToCCallbackData()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
FunCallbackStream::CppToCCallbackData::CppToCCallbackData(CallbackFunPtr funPtr, void *userData) : funPtr(funPtr), userData(userData)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void FunCallbackStream::CppToCCallbackData::init(CallbackFunPtr funPtr, void *userData)
|
|
||||||
{
|
|
||||||
this->funPtr = funPtr;
|
|
||||||
this->userData = userData;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
FunCallbackStream::FunCallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
FunCallbackStream::FunCallbackStream(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData) : adapterData_(funPtr, userData)
|
|
||||||
{
|
|
||||||
open(parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
FunCallbackStream::~FunCallbackStream()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// ignore all errors
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void FunCallbackStream::open(const StreamParameters ¶meters, CallbackFunPtr funPtr, void *userData)
|
|
||||||
{
|
|
||||||
adapterData_.init(funPtr, userData);
|
|
||||||
open(parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
void FunCallbackStream::open(const StreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
|
|
||||||
parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), &impl::cppCallbackToPaCallbackAdapter,
|
|
||||||
static_cast<void *>(&adapterData_));
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
}
|
|
@ -1,168 +0,0 @@
|
|||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudiocpp/HostApi.hxx"
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Device::Device(PaDeviceIndex index) : index_(index)
|
|
||||||
{
|
|
||||||
if (index == paNoDevice)
|
|
||||||
info_ = NULL;
|
|
||||||
else
|
|
||||||
info_ = Pa_GetDeviceInfo(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
Device::~Device()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
PaDeviceIndex Device::index() const
|
|
||||||
{
|
|
||||||
return index_;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *Device::name() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return "";
|
|
||||||
|
|
||||||
return info_->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Device::maxInputChannels() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return info_->maxInputChannels;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Device::maxOutputChannels() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return info_->maxOutputChannels;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaTime Device::defaultLowInputLatency() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return static_cast<PaTime>(0.0);
|
|
||||||
|
|
||||||
return info_->defaultLowInputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaTime Device::defaultHighInputLatency() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return static_cast<PaTime>(0.0);
|
|
||||||
|
|
||||||
return info_->defaultHighInputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaTime Device::defaultLowOutputLatency() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return static_cast<PaTime>(0.0);
|
|
||||||
|
|
||||||
return info_->defaultLowOutputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaTime Device::defaultHighOutputLatency() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return static_cast<PaTime>(0.0);
|
|
||||||
|
|
||||||
return info_->defaultHighOutputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
double Device::defaultSampleRate() const
|
|
||||||
{
|
|
||||||
if (info_ == NULL)
|
|
||||||
return 0.0;
|
|
||||||
|
|
||||||
return info_->defaultSampleRate;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool Device::isInputOnlyDevice() const
|
|
||||||
{
|
|
||||||
return (maxOutputChannels() == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isOutputOnlyDevice() const
|
|
||||||
{
|
|
||||||
return (maxInputChannels() == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isFullDuplexDevice() const
|
|
||||||
{
|
|
||||||
return (maxInputChannels() > 0 && maxOutputChannels() > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isSystemDefaultInputDevice() const
|
|
||||||
{
|
|
||||||
return (System::instance().defaultInputDevice() == *this);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isSystemDefaultOutputDevice() const
|
|
||||||
{
|
|
||||||
return (System::instance().defaultOutputDevice() == *this);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isHostApiDefaultInputDevice() const
|
|
||||||
{
|
|
||||||
return (hostApi().defaultInputDevice() == *this);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::isHostApiDefaultOutputDevice() const
|
|
||||||
{
|
|
||||||
return (hostApi().defaultOutputDevice() == *this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool Device::operator==(const Device &rhs)
|
|
||||||
{
|
|
||||||
return (index_ == rhs.index_);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Device::operator!=(const Device &rhs)
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
HostApi &Device::hostApi()
|
|
||||||
{
|
|
||||||
// NOTE: will cause an exception when called for the null device
|
|
||||||
if (info_ == NULL)
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
|
|
||||||
return System::instance().hostApiByIndex(info_->hostApi);
|
|
||||||
}
|
|
||||||
|
|
||||||
const HostApi &Device::hostApi() const
|
|
||||||
{
|
|
||||||
// NOTE; will cause an exception when called for the null device
|
|
||||||
if (info_ == NULL)
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
|
|
||||||
return System::instance().hostApiByIndex(info_->hostApi);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
@ -1,163 +0,0 @@
|
|||||||
#include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
|
|
||||||
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns a `nil' DirectionSpecificStreamParameters object. This can be used to
|
|
||||||
/// specify that one direction of a Stream is not required (i.e. when creating
|
|
||||||
/// a half-duplex Stream). All fields of the null DirectionSpecificStreamParameters
|
|
||||||
/// object are invalid except for the device and the number of channel, which are set
|
|
||||||
/// to paNoDevice and 0 respectively.
|
|
||||||
//////
|
|
||||||
DirectionSpecificStreamParameters DirectionSpecificStreamParameters::null()
|
|
||||||
{
|
|
||||||
DirectionSpecificStreamParameters tmp;
|
|
||||||
tmp.paStreamParameters_.device = paNoDevice;
|
|
||||||
tmp.paStreamParameters_.channelCount = 0;
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Default constructor -- all parameters will be uninitialized.
|
|
||||||
//////
|
|
||||||
DirectionSpecificStreamParameters::DirectionSpecificStreamParameters()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Constructor which sets all required fields.
|
|
||||||
//////
|
|
||||||
DirectionSpecificStreamParameters::DirectionSpecificStreamParameters(const Device &device, int numChannels,
|
|
||||||
SampleDataFormat format, bool interleaved, PaTime suggestedLatency, void *hostApiSpecificStreamInfo)
|
|
||||||
{
|
|
||||||
setDevice(device);
|
|
||||||
setNumChannels(numChannels);
|
|
||||||
setSampleFormat(format, interleaved);
|
|
||||||
setSuggestedLatency(suggestedLatency);
|
|
||||||
setHostApiSpecificStreamInfo(hostApiSpecificStreamInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setDevice(const Device &device)
|
|
||||||
{
|
|
||||||
paStreamParameters_.device = device.index();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setNumChannels(int numChannels)
|
|
||||||
{
|
|
||||||
paStreamParameters_.channelCount = numChannels;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setSampleFormat(SampleDataFormat format, bool interleaved)
|
|
||||||
{
|
|
||||||
paStreamParameters_.sampleFormat = static_cast<PaSampleFormat>(format);
|
|
||||||
|
|
||||||
if (!interleaved)
|
|
||||||
paStreamParameters_.sampleFormat |= paNonInterleaved;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setHostApiSpecificSampleFormat(PaSampleFormat format, bool interleaved)
|
|
||||||
{
|
|
||||||
paStreamParameters_.sampleFormat = format;
|
|
||||||
|
|
||||||
paStreamParameters_.sampleFormat |= paCustomFormat;
|
|
||||||
|
|
||||||
if (!interleaved)
|
|
||||||
paStreamParameters_.sampleFormat |= paNonInterleaved;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setSuggestedLatency(PaTime latency)
|
|
||||||
{
|
|
||||||
paStreamParameters_.suggestedLatency = latency;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirectionSpecificStreamParameters::setHostApiSpecificStreamInfo(void *streamInfo)
|
|
||||||
{
|
|
||||||
paStreamParameters_.hostApiSpecificStreamInfo = streamInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
PaStreamParameters *DirectionSpecificStreamParameters::paStreamParameters()
|
|
||||||
{
|
|
||||||
if (paStreamParameters_.channelCount > 0 && paStreamParameters_.device != paNoDevice)
|
|
||||||
return &paStreamParameters_;
|
|
||||||
else
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
const PaStreamParameters *DirectionSpecificStreamParameters::paStreamParameters() const
|
|
||||||
{
|
|
||||||
if (paStreamParameters_.channelCount > 0 && paStreamParameters_.device != paNoDevice)
|
|
||||||
return &paStreamParameters_;
|
|
||||||
else
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
Device &DirectionSpecificStreamParameters::device() const
|
|
||||||
{
|
|
||||||
return System::instance().deviceByIndex(paStreamParameters_.device);
|
|
||||||
}
|
|
||||||
|
|
||||||
int DirectionSpecificStreamParameters::numChannels() const
|
|
||||||
{
|
|
||||||
return paStreamParameters_.channelCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the (non host api-specific) sample format, without including
|
|
||||||
/// the paNonInterleaved flag. If the sample format is host api-spefific,
|
|
||||||
/// INVALID_FORMAT (0) will be returned.
|
|
||||||
//////
|
|
||||||
SampleDataFormat DirectionSpecificStreamParameters::sampleFormat() const
|
|
||||||
{
|
|
||||||
if (isSampleFormatHostApiSpecific())
|
|
||||||
return INVALID_FORMAT;
|
|
||||||
else
|
|
||||||
return static_cast<SampleDataFormat>(paStreamParameters_.sampleFormat & ~paNonInterleaved);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DirectionSpecificStreamParameters::isSampleFormatInterleaved() const
|
|
||||||
{
|
|
||||||
return ((paStreamParameters_.sampleFormat & paNonInterleaved) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DirectionSpecificStreamParameters::isSampleFormatHostApiSpecific() const
|
|
||||||
{
|
|
||||||
return ((paStreamParameters_.sampleFormat & paCustomFormat) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the host api-specific sample format, without including any
|
|
||||||
/// paCustomFormat or paNonInterleaved flags. Will return 0 if the sample format is
|
|
||||||
/// not host api-specific.
|
|
||||||
//////
|
|
||||||
PaSampleFormat DirectionSpecificStreamParameters::hostApiSpecificSampleFormat() const
|
|
||||||
{
|
|
||||||
if (isSampleFormatHostApiSpecific())
|
|
||||||
return paStreamParameters_.sampleFormat & ~paCustomFormat & ~paNonInterleaved;
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaTime DirectionSpecificStreamParameters::suggestedLatency() const
|
|
||||||
{
|
|
||||||
return paStreamParameters_.suggestedLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
void *DirectionSpecificStreamParameters::hostApiSpecificStreamInfo() const
|
|
||||||
{
|
|
||||||
return paStreamParameters_.hostApiSpecificStreamInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
@ -1,123 +0,0 @@
|
|||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
// PaException:
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Wraps a PortAudio error into a PortAudioCpp PaException.
|
|
||||||
//////
|
|
||||||
PaException::PaException(PaError error) : error_(error)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Alias for paErrorText(), to have std::exception compliance.
|
|
||||||
//////
|
|
||||||
const char *PaException::what() const throw()
|
|
||||||
{
|
|
||||||
return paErrorText();
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the PortAudio error code (PaError).
|
|
||||||
//////
|
|
||||||
PaError PaException::paError() const
|
|
||||||
{
|
|
||||||
return error_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the error as a (zero-terminated) text string.
|
|
||||||
//////
|
|
||||||
const char *PaException::paErrorText() const
|
|
||||||
{
|
|
||||||
return Pa_GetErrorText(error_);
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns true is the error is a HostApi error.
|
|
||||||
//////
|
|
||||||
bool PaException::isHostApiError() const
|
|
||||||
{
|
|
||||||
return (error_ == paUnanticipatedHostError);
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the last HostApi error (which is the current one if
|
|
||||||
/// isHostApiError() returns true) as an error code.
|
|
||||||
//////
|
|
||||||
long PaException::lastHostApiError() const
|
|
||||||
{
|
|
||||||
return Pa_GetLastHostErrorInfo()->errorCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the last HostApi error (which is the current one if
|
|
||||||
/// isHostApiError() returns true) as a (zero-terminated) text
|
|
||||||
/// string, if it's available.
|
|
||||||
//////
|
|
||||||
const char *PaException::lastHostApiErrorText() const
|
|
||||||
{
|
|
||||||
return Pa_GetLastHostErrorInfo()->errorText;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool PaException::operator==(const PaException &rhs) const
|
|
||||||
{
|
|
||||||
return (error_ == rhs.error_);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PaException::operator!=(const PaException &rhs) const
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
// PaCppException:
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
PaCppException::PaCppException(ExceptionSpecifier specifier) : specifier_(specifier)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *PaCppException::what() const throw()
|
|
||||||
{
|
|
||||||
switch (specifier_)
|
|
||||||
{
|
|
||||||
case UNABLE_TO_ADAPT_DEVICE:
|
|
||||||
{
|
|
||||||
return "Unable to adapt the given device to the specified host api specific device extension";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return "Unknown exception";
|
|
||||||
}
|
|
||||||
|
|
||||||
PaCppException::ExceptionSpecifier PaCppException::specifier() const
|
|
||||||
{
|
|
||||||
return specifier_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PaCppException::operator==(const PaCppException &rhs) const
|
|
||||||
{
|
|
||||||
return (specifier_ == rhs.specifier_);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PaCppException::operator!=(const PaCppException &rhs) const
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
@ -1,121 +0,0 @@
|
|||||||
#include "portaudiocpp/HostApi.hxx"
|
|
||||||
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
#include "portaudiocpp/SystemDeviceIterator.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
HostApi::HostApi(PaHostApiIndex index) : devices_(NULL)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
info_ = Pa_GetHostApiInfo(index);
|
|
||||||
|
|
||||||
// Create and populate devices array:
|
|
||||||
int numDevices = deviceCount();
|
|
||||||
|
|
||||||
devices_ = new Device*[numDevices];
|
|
||||||
|
|
||||||
for (int i = 0; i < numDevices; ++i)
|
|
||||||
{
|
|
||||||
PaDeviceIndex deviceIndex = Pa_HostApiDeviceIndexToDeviceIndex(index, i);
|
|
||||||
|
|
||||||
if (deviceIndex < 0)
|
|
||||||
{
|
|
||||||
throw PaException(deviceIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
devices_[i] = &System::instance().deviceByIndex(deviceIndex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (const std::exception &e)
|
|
||||||
{
|
|
||||||
// Delete any (partially) constructed objects (deconstructor isn't called):
|
|
||||||
delete[] devices_; // devices_ is either NULL or valid
|
|
||||||
|
|
||||||
// Re-throw exception:
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi::~HostApi()
|
|
||||||
{
|
|
||||||
// Destroy devices array:
|
|
||||||
delete[] devices_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
PaHostApiTypeId HostApi::typeId() const
|
|
||||||
{
|
|
||||||
return info_->type;
|
|
||||||
}
|
|
||||||
|
|
||||||
PaHostApiIndex HostApi::index() const
|
|
||||||
{
|
|
||||||
PaHostApiIndex index = Pa_HostApiTypeIdToHostApiIndex(typeId());
|
|
||||||
|
|
||||||
if (index < 0)
|
|
||||||
throw PaException(index);
|
|
||||||
|
|
||||||
return index;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *HostApi::name() const
|
|
||||||
{
|
|
||||||
return info_->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
int HostApi::deviceCount() const
|
|
||||||
{
|
|
||||||
return info_->deviceCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
HostApi::DeviceIterator HostApi::devicesBegin()
|
|
||||||
{
|
|
||||||
DeviceIterator tmp;
|
|
||||||
tmp.ptr_ = &devices_[0]; // begin (first element)
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi::DeviceIterator HostApi::devicesEnd()
|
|
||||||
{
|
|
||||||
DeviceIterator tmp;
|
|
||||||
tmp.ptr_ = &devices_[deviceCount()]; // end (one past last element)
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Device &HostApi::defaultInputDevice() const
|
|
||||||
{
|
|
||||||
return System::instance().deviceByIndex(info_->defaultInputDevice);
|
|
||||||
}
|
|
||||||
|
|
||||||
Device &HostApi::defaultOutputDevice() const
|
|
||||||
{
|
|
||||||
return System::instance().deviceByIndex(info_->defaultOutputDevice);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool HostApi::operator==(const HostApi &rhs) const
|
|
||||||
{
|
|
||||||
return (typeId() == rhs.typeId());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool HostApi::operator!=(const HostApi &rhs) const
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
@ -1,45 +0,0 @@
|
|||||||
#include "portaudiocpp/InterfaceCallbackStream.hxx"
|
|
||||||
|
|
||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
#include "portaudiocpp/CallbackInterface.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------==
|
|
||||||
|
|
||||||
InterfaceCallbackStream::InterfaceCallbackStream()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
InterfaceCallbackStream::InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance)
|
|
||||||
{
|
|
||||||
open(parameters, instance);
|
|
||||||
}
|
|
||||||
|
|
||||||
InterfaceCallbackStream::~InterfaceCallbackStream()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// ignore all errors
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------==
|
|
||||||
|
|
||||||
void InterfaceCallbackStream::open(const StreamParameters ¶meters, CallbackInterface &instance)
|
|
||||||
{
|
|
||||||
PaError err = Pa_OpenStream(&stream_, parameters.inputParameters().paStreamParameters(), parameters.outputParameters().paStreamParameters(),
|
|
||||||
parameters.sampleRate(), parameters.framesPerBuffer(), parameters.flags(), &impl::callbackInterfaceToPaCallbackAdapter, static_cast<void *>(&instance));
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
#include "portaudiocpp/MemFunCallbackStream.hxx"
|
|
||||||
|
|
||||||
// (... template class ...)
|
|
||||||
|
|
@ -1,195 +0,0 @@
|
|||||||
#include "portaudiocpp/Stream.hxx"
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Stream::Stream() : stream_(NULL)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Stream::~Stream()
|
|
||||||
{
|
|
||||||
// (can't call close here,
|
|
||||||
// the derived class should atleast call
|
|
||||||
// close() in it's deconstructor)
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Closes the Stream if it's open, else does nothing.
|
|
||||||
//////
|
|
||||||
void Stream::close()
|
|
||||||
{
|
|
||||||
if (isOpen() && System::exists())
|
|
||||||
{
|
|
||||||
PaError err = Pa_CloseStream(stream_);
|
|
||||||
stream_ = NULL;
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns true if the Stream is open.
|
|
||||||
//////
|
|
||||||
bool Stream::isOpen() const
|
|
||||||
{
|
|
||||||
return (stream_ != NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void Stream::setStreamFinishedCallback(PaStreamFinishedCallback *callback)
|
|
||||||
{
|
|
||||||
PaError err = Pa_SetStreamFinishedCallback(stream_, callback);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void Stream::start()
|
|
||||||
{
|
|
||||||
PaError err = Pa_StartStream(stream_);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Stream::stop()
|
|
||||||
{
|
|
||||||
PaError err = Pa_StopStream(stream_);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Stream::abort()
|
|
||||||
{
|
|
||||||
PaError err = Pa_AbortStream(stream_);
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Stream::isStopped() const
|
|
||||||
{
|
|
||||||
PaError ret = Pa_IsStreamStopped(stream_);
|
|
||||||
|
|
||||||
if (ret < 0)
|
|
||||||
throw PaException(ret);
|
|
||||||
|
|
||||||
return (ret == 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Stream::isActive() const
|
|
||||||
{
|
|
||||||
PaError ret = Pa_IsStreamActive(stream_);
|
|
||||||
|
|
||||||
if (ret < 0)
|
|
||||||
throw PaException(ret);
|
|
||||||
|
|
||||||
return (ret == 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the best known input latency for the Stream. This value may differ from the
|
|
||||||
/// suggested input latency set in the StreamParameters. Includes all sources of
|
|
||||||
/// latency known to PortAudio such as internal buffering, and Host API reported latency.
|
|
||||||
/// Doesn't include any estimates of unknown latency.
|
|
||||||
//////
|
|
||||||
PaTime Stream::inputLatency() const
|
|
||||||
{
|
|
||||||
const PaStreamInfo *info = Pa_GetStreamInfo(stream_);
|
|
||||||
if (info == NULL)
|
|
||||||
{
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
return PaTime(0.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return info->inputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the best known output latency for the Stream. This value may differ from the
|
|
||||||
/// suggested output latency set in the StreamParameters. Includes all sources of
|
|
||||||
/// latency known to PortAudio such as internal buffering, and Host API reported latency.
|
|
||||||
/// Doesn't include any estimates of unknown latency.
|
|
||||||
//////
|
|
||||||
PaTime Stream::outputLatency() const
|
|
||||||
{
|
|
||||||
const PaStreamInfo *info = Pa_GetStreamInfo(stream_);
|
|
||||||
if (info == NULL)
|
|
||||||
{
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
return PaTime(0.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return info->outputLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the sample rate of the Stream. Usually this will be the
|
|
||||||
/// best known estimate of the used sample rate. For instance when opening a
|
|
||||||
/// Stream setting 44100.0 Hz in the StreamParameters, the actual sample
|
|
||||||
/// rate might be something like 44103.2 Hz (due to imperfections in the
|
|
||||||
/// sound card hardware).
|
|
||||||
//////
|
|
||||||
double Stream::sampleRate() const
|
|
||||||
{
|
|
||||||
const PaStreamInfo *info = Pa_GetStreamInfo(stream_);
|
|
||||||
if (info == NULL)
|
|
||||||
{
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return info->sampleRate;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
PaTime Stream::time() const
|
|
||||||
{
|
|
||||||
return Pa_GetStreamTime(stream_);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Accessor (const) for PortAudio PaStream pointer, useful for interfacing with
|
|
||||||
/// PortAudio add-ons such as PortMixer for instance. Normally accessing this
|
|
||||||
/// pointer should not be needed as PortAudioCpp aims to provide all of PortAudio's
|
|
||||||
/// functionality.
|
|
||||||
//////
|
|
||||||
const PaStream *Stream::paStream() const
|
|
||||||
{
|
|
||||||
return stream_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Accessor (non-const) for PortAudio PaStream pointer, useful for interfacing with
|
|
||||||
/// PortAudio add-ons such as PortMixer for instance. Normally accessing this
|
|
||||||
/// pointer should not be needed as PortAudioCpp aims to provide all of PortAudio's
|
|
||||||
/// functionality.
|
|
||||||
//////
|
|
||||||
PaStream *Stream::paStream()
|
|
||||||
{
|
|
||||||
return stream_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
@ -1,165 +0,0 @@
|
|||||||
#include "portaudiocpp/StreamParameters.hxx"
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Default constructor; does nothing.
|
|
||||||
//////
|
|
||||||
StreamParameters::StreamParameters()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Sets up the all parameters needed to open either a half-duplex or full-duplex Stream.
|
|
||||||
///
|
|
||||||
/// @param inputParameters The parameters for the input direction of the to-be opened
|
|
||||||
/// Stream or DirectionSpecificStreamParameters::null() for an output-only Stream.
|
|
||||||
/// @param outputParameters The parameters for the output direction of the to-be opened
|
|
||||||
/// Stream or DirectionSpecificStreamParameters::null() for an input-only Stream.
|
|
||||||
/// @param sampleRate The to-be opened Stream's sample rate in Hz.
|
|
||||||
/// @param framesPerBuffer The number of frames per buffer for a CallbackStream, or
|
|
||||||
/// the preferred buffer granularity for a BlockingStream.
|
|
||||||
/// @param flags The flags for the to-be opened Stream; default paNoFlag.
|
|
||||||
//////
|
|
||||||
StreamParameters::StreamParameters(const DirectionSpecificStreamParameters &inputParameters,
|
|
||||||
const DirectionSpecificStreamParameters &outputParameters, double sampleRate, unsigned long framesPerBuffer,
|
|
||||||
PaStreamFlags flags) : inputParameters_(inputParameters), outputParameters_(outputParameters),
|
|
||||||
sampleRate_(sampleRate), framesPerBuffer_(framesPerBuffer), flags_(flags)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Sets the requested sample rate. If this sample rate isn't supported by the hardware, the
|
|
||||||
/// Stream will fail to open. The real-life sample rate used might differ slightly due to
|
|
||||||
/// imperfections in the sound card hardware; use Stream::sampleRate() to retreive the
|
|
||||||
/// best known estimate for this value.
|
|
||||||
//////
|
|
||||||
void StreamParameters::setSampleRate(double sampleRate)
|
|
||||||
{
|
|
||||||
sampleRate_ = sampleRate;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Either the number of frames per buffer for a CallbackStream, or
|
|
||||||
/// the preferred buffer granularity for a BlockingStream. See PortAudio
|
|
||||||
/// documentation.
|
|
||||||
//////
|
|
||||||
void StreamParameters::setFramesPerBuffer(unsigned long framesPerBuffer)
|
|
||||||
{
|
|
||||||
framesPerBuffer_ = framesPerBuffer;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Sets the specified flag or does nothing when the flag is already set. Doesn't
|
|
||||||
/// `unset' any previously existing flags (use clearFlags() for that).
|
|
||||||
//////
|
|
||||||
void StreamParameters::setFlag(PaStreamFlags flag)
|
|
||||||
{
|
|
||||||
flags_ |= flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Unsets the specified flag or does nothing if the flag isn't set. Doesn't affect
|
|
||||||
/// any other flags.
|
|
||||||
//////
|
|
||||||
void StreamParameters::unsetFlag(PaStreamFlags flag)
|
|
||||||
{
|
|
||||||
flags_ &= ~flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Clears or `unsets' all set flags.
|
|
||||||
//////
|
|
||||||
void StreamParameters::clearFlags()
|
|
||||||
{
|
|
||||||
flags_ = paNoFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void StreamParameters::setInputParameters(const DirectionSpecificStreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
inputParameters_ = parameters;
|
|
||||||
}
|
|
||||||
|
|
||||||
void StreamParameters::setOutputParameters(const DirectionSpecificStreamParameters ¶meters)
|
|
||||||
{
|
|
||||||
outputParameters_ = parameters;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool StreamParameters::isSupported() const
|
|
||||||
{
|
|
||||||
return (Pa_IsFormatSupported(inputParameters_.paStreamParameters(),
|
|
||||||
outputParameters_.paStreamParameters(), sampleRate_) == paFormatIsSupported);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
double StreamParameters::sampleRate() const
|
|
||||||
{
|
|
||||||
return sampleRate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long StreamParameters::framesPerBuffer() const
|
|
||||||
{
|
|
||||||
return framesPerBuffer_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns all currently set flags as a binary combined
|
|
||||||
/// integer value (PaStreamFlags). Use isFlagSet() to
|
|
||||||
/// avoid dealing with the bitmasks.
|
|
||||||
//////
|
|
||||||
PaStreamFlags StreamParameters::flags() const
|
|
||||||
{
|
|
||||||
return flags_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns true if the specified flag is currently set
|
|
||||||
/// or false if it isn't.
|
|
||||||
//////
|
|
||||||
bool StreamParameters::isFlagSet(PaStreamFlags flag) const
|
|
||||||
{
|
|
||||||
return ((flags_ & flag) != 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
DirectionSpecificStreamParameters &StreamParameters::inputParameters()
|
|
||||||
{
|
|
||||||
return inputParameters_;
|
|
||||||
}
|
|
||||||
|
|
||||||
const DirectionSpecificStreamParameters &StreamParameters::inputParameters() const
|
|
||||||
{
|
|
||||||
return inputParameters_;
|
|
||||||
}
|
|
||||||
|
|
||||||
DirectionSpecificStreamParameters &StreamParameters::outputParameters()
|
|
||||||
{
|
|
||||||
return outputParameters_;
|
|
||||||
}
|
|
||||||
|
|
||||||
const DirectionSpecificStreamParameters &StreamParameters::outputParameters() const
|
|
||||||
{
|
|
||||||
return outputParameters_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,308 +0,0 @@
|
|||||||
#include "portaudiocpp/System.hxx"
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
#include <cassert>
|
|
||||||
|
|
||||||
#include "portaudiocpp/HostApi.hxx"
|
|
||||||
#include "portaudiocpp/Device.hxx"
|
|
||||||
#include "portaudiocpp/Stream.hxx"
|
|
||||||
#include "portaudiocpp/Exception.hxx"
|
|
||||||
#include "portaudiocpp/SystemHostApiIterator.hxx"
|
|
||||||
#include "portaudiocpp/SystemDeviceIterator.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Static members:
|
|
||||||
System *System::instance_ = NULL;
|
|
||||||
int System::initCount_ = 0;
|
|
||||||
HostApi **System::hostApis_ = NULL;
|
|
||||||
Device **System::devices_ = NULL;
|
|
||||||
Device *System::nullDevice_ = NULL;
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
int System::version()
|
|
||||||
{
|
|
||||||
return Pa_GetVersion();
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *System::versionText()
|
|
||||||
{
|
|
||||||
return Pa_GetVersionText();
|
|
||||||
}
|
|
||||||
|
|
||||||
void System::initialize()
|
|
||||||
{
|
|
||||||
++initCount_;
|
|
||||||
|
|
||||||
if (initCount_ == 1)
|
|
||||||
{
|
|
||||||
// Create singleton:
|
|
||||||
assert(instance_ == NULL);
|
|
||||||
instance_ = new System();
|
|
||||||
|
|
||||||
// Initialize the PortAudio system:
|
|
||||||
{
|
|
||||||
PaError err = Pa_Initialize();
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create and populate device array:
|
|
||||||
{
|
|
||||||
int numDevices = instance().deviceCount();
|
|
||||||
|
|
||||||
devices_ = new Device*[numDevices];
|
|
||||||
|
|
||||||
for (int i = 0; i < numDevices; ++i)
|
|
||||||
devices_[i] = new Device(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create and populate host api array:
|
|
||||||
{
|
|
||||||
int numHostApis = instance().hostApiCount();
|
|
||||||
|
|
||||||
hostApis_ = new HostApi*[numHostApis];
|
|
||||||
|
|
||||||
for (int i = 0; i < numHostApis; ++i)
|
|
||||||
hostApis_[i] = new HostApi(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create null device:
|
|
||||||
nullDevice_ = new Device(paNoDevice);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void System::terminate()
|
|
||||||
{
|
|
||||||
PaError err = paNoError;
|
|
||||||
|
|
||||||
if (initCount_ == 1)
|
|
||||||
{
|
|
||||||
// Destroy null device:
|
|
||||||
delete nullDevice_;
|
|
||||||
|
|
||||||
// Destroy host api array:
|
|
||||||
{
|
|
||||||
if (hostApis_ != NULL)
|
|
||||||
{
|
|
||||||
int numHostApis = instance().hostApiCount();
|
|
||||||
|
|
||||||
for (int i = 0; i < numHostApis; ++i)
|
|
||||||
delete hostApis_[i];
|
|
||||||
|
|
||||||
delete[] hostApis_;
|
|
||||||
hostApis_ = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Destroy device array:
|
|
||||||
{
|
|
||||||
if (devices_ != NULL)
|
|
||||||
{
|
|
||||||
int numDevices = instance().deviceCount();
|
|
||||||
|
|
||||||
for (int i = 0; i < numDevices; ++i)
|
|
||||||
delete devices_[i];
|
|
||||||
|
|
||||||
delete[] devices_;
|
|
||||||
devices_ = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Terminate the PortAudio system:
|
|
||||||
assert(instance_ != NULL);
|
|
||||||
err = Pa_Terminate();
|
|
||||||
|
|
||||||
// Destroy singleton:
|
|
||||||
delete instance_;
|
|
||||||
instance_ = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (initCount_ > 0)
|
|
||||||
--initCount_;
|
|
||||||
|
|
||||||
if (err != paNoError)
|
|
||||||
throw PaException(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
System &System::instance()
|
|
||||||
{
|
|
||||||
assert(exists());
|
|
||||||
|
|
||||||
return *instance_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool System::exists()
|
|
||||||
{
|
|
||||||
return (instance_ != NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
System::HostApiIterator System::hostApisBegin()
|
|
||||||
{
|
|
||||||
System::HostApiIterator tmp;
|
|
||||||
tmp.ptr_ = &hostApis_[0]; // begin (first element)
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::HostApiIterator System::hostApisEnd()
|
|
||||||
{
|
|
||||||
int count = hostApiCount();
|
|
||||||
|
|
||||||
System::HostApiIterator tmp;
|
|
||||||
tmp.ptr_ = &hostApis_[count]; // end (one past last element)
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi &System::defaultHostApi()
|
|
||||||
{
|
|
||||||
PaHostApiIndex defaultHostApi = Pa_GetDefaultHostApi();
|
|
||||||
|
|
||||||
if (defaultHostApi < 0)
|
|
||||||
throw PaException(defaultHostApi);
|
|
||||||
|
|
||||||
return *hostApis_[defaultHostApi];
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi &System::hostApiByTypeId(PaHostApiTypeId type)
|
|
||||||
{
|
|
||||||
PaHostApiIndex index = Pa_HostApiTypeIdToHostApiIndex(type);
|
|
||||||
|
|
||||||
if (index < 0)
|
|
||||||
throw PaException(index);
|
|
||||||
|
|
||||||
return *hostApis_[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi &System::hostApiByIndex(PaHostApiIndex index)
|
|
||||||
{
|
|
||||||
if (index < 0 || index >= hostApiCount())
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
|
|
||||||
return *hostApis_[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
int System::hostApiCount()
|
|
||||||
{
|
|
||||||
PaHostApiIndex count = Pa_GetHostApiCount();
|
|
||||||
|
|
||||||
if (count < 0)
|
|
||||||
throw PaException(count);
|
|
||||||
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
System::DeviceIterator System::devicesBegin()
|
|
||||||
{
|
|
||||||
DeviceIterator tmp;
|
|
||||||
tmp.ptr_ = &devices_[0];
|
|
||||||
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::DeviceIterator System::devicesEnd()
|
|
||||||
{
|
|
||||||
int count = deviceCount();
|
|
||||||
|
|
||||||
DeviceIterator tmp;
|
|
||||||
tmp.ptr_ = &devices_[count];
|
|
||||||
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the System's default input Device, or the null Device if none
|
|
||||||
/// was available.
|
|
||||||
//////
|
|
||||||
Device &System::defaultInputDevice()
|
|
||||||
{
|
|
||||||
PaDeviceIndex index = Pa_GetDefaultInputDevice();
|
|
||||||
return deviceByIndex(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the System's default output Device, or the null Device if none
|
|
||||||
/// was available.
|
|
||||||
//////
|
|
||||||
Device &System::defaultOutputDevice()
|
|
||||||
{
|
|
||||||
PaDeviceIndex index = Pa_GetDefaultOutputDevice();
|
|
||||||
return deviceByIndex(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
//////
|
|
||||||
/// Returns the Device for the given index.
|
|
||||||
/// Will throw a paInternalError equivalent PaException if the given index
|
|
||||||
/// is out of range.
|
|
||||||
//////
|
|
||||||
Device &System::deviceByIndex(PaDeviceIndex index)
|
|
||||||
{
|
|
||||||
if (index < -1 || index >= deviceCount())
|
|
||||||
{
|
|
||||||
throw PaException(paInternalError);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (index == -1)
|
|
||||||
return System::instance().nullDevice();
|
|
||||||
|
|
||||||
return *devices_[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
int System::deviceCount()
|
|
||||||
{
|
|
||||||
PaDeviceIndex count = Pa_GetDeviceCount();
|
|
||||||
|
|
||||||
if (count < 0)
|
|
||||||
throw PaException(count);
|
|
||||||
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
Device &System::nullDevice()
|
|
||||||
{
|
|
||||||
return *nullDevice_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void System::sleep(long msec)
|
|
||||||
{
|
|
||||||
Pa_Sleep(msec);
|
|
||||||
}
|
|
||||||
|
|
||||||
int System::sizeOfSample(PaSampleFormat format)
|
|
||||||
{
|
|
||||||
PaError err = Pa_GetSampleSize(format);
|
|
||||||
if (err < 0)
|
|
||||||
{
|
|
||||||
throw PaException(err);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
System::System()
|
|
||||||
{
|
|
||||||
// (left blank intentionally)
|
|
||||||
}
|
|
||||||
|
|
||||||
System::~System()
|
|
||||||
{
|
|
||||||
// (left blank intentionally)
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
|||||||
#include "portaudiocpp/SystemDeviceIterator.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Device &System::DeviceIterator::operator*() const
|
|
||||||
{
|
|
||||||
return **ptr_;
|
|
||||||
}
|
|
||||||
|
|
||||||
Device *System::DeviceIterator::operator->() const
|
|
||||||
{
|
|
||||||
return &**this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
System::DeviceIterator &System::DeviceIterator::operator++()
|
|
||||||
{
|
|
||||||
++ptr_;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::DeviceIterator System::DeviceIterator::operator++(int)
|
|
||||||
{
|
|
||||||
System::DeviceIterator prev = *this;
|
|
||||||
++*this;
|
|
||||||
return prev;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::DeviceIterator &System::DeviceIterator::operator--()
|
|
||||||
{
|
|
||||||
--ptr_;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::DeviceIterator System::DeviceIterator::operator--(int)
|
|
||||||
{
|
|
||||||
System::DeviceIterator prev = *this;
|
|
||||||
--*this;
|
|
||||||
return prev;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs)
|
|
||||||
{
|
|
||||||
return (ptr_ == rhs.ptr_);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs)
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
#include "portaudiocpp/SystemHostApiIterator.hxx"
|
|
||||||
|
|
||||||
namespace portaudio
|
|
||||||
{
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
HostApi &System::HostApiIterator::operator*() const
|
|
||||||
{
|
|
||||||
return **ptr_;
|
|
||||||
}
|
|
||||||
|
|
||||||
HostApi *System::HostApiIterator::operator->() const
|
|
||||||
{
|
|
||||||
return &**this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
System::HostApiIterator &System::HostApiIterator::operator++()
|
|
||||||
{
|
|
||||||
++ptr_;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::HostApiIterator System::HostApiIterator::operator++(int)
|
|
||||||
{
|
|
||||||
System::HostApiIterator prev = *this;
|
|
||||||
++*this;
|
|
||||||
return prev;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::HostApiIterator &System::HostApiIterator::operator--()
|
|
||||||
{
|
|
||||||
--ptr_;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
System::HostApiIterator System::HostApiIterator::operator--(int)
|
|
||||||
{
|
|
||||||
System::HostApiIterator prev = *this;
|
|
||||||
--*this;
|
|
||||||
return prev;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
bool System::HostApiIterator::operator==(const System::HostApiIterator &rhs)
|
|
||||||
{
|
|
||||||
return (ptr_ == rhs.ptr_);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool System::HostApiIterator::operator!=(const System::HostApiIterator &rhs)
|
|
||||||
{
|
|
||||||
return !(*this == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
|
||||||
} // namespace portaudio
|
|
||||||
|
|
@ -1,78 +0,0 @@
|
|||||||
# Project: portaudio-dll
|
|
||||||
# Makefile created by Dev-C++ 4.9.8.2
|
|
||||||
|
|
||||||
CPP = g++.exe
|
|
||||||
CC = gcc.exe
|
|
||||||
WINDRES = windres.exe
|
|
||||||
RES =
|
|
||||||
OBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
|
|
||||||
LINKOBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
|
|
||||||
LIBS = -L"C:/Dev-CPP/lib" -fmessage-length=0 --no-export-all-symbols --add-stdcall-alias ../../../asiosdk2/asiosdk2.a -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lwinmm -O3 -s
|
|
||||||
INCS = -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
|
|
||||||
CXXINCS = -I"C:/Dev-CPP/include/c++" -I"C:/Dev-CPP/include/c++/mingw32" -I"C:/Dev-CPP/include/c++/backward" -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
|
|
||||||
BIN = portaudio-dll.dll
|
|
||||||
CXXFLAGS = $(CXXINCS)-O3 -fmessage-length=0 -Wall
|
|
||||||
CFLAGS = $(INCS)-DBUILDING_DLL=1 -O3 -fmessage-length=0 -Wall
|
|
||||||
|
|
||||||
.PHONY: all all-before all-after clean clean-custom
|
|
||||||
|
|
||||||
all: all-before portaudio-dll.dll all-after
|
|
||||||
|
|
||||||
|
|
||||||
clean: clean-custom
|
|
||||||
rm -f $(OBJ) $(BIN)
|
|
||||||
|
|
||||||
DLLWRAP=dllwrap.exe
|
|
||||||
DEFFILE=libportaudio-dll.def
|
|
||||||
STATICLIB=libportaudio-dll.a
|
|
||||||
|
|
||||||
$(BIN): $(LINKOBJ)
|
|
||||||
$(DLLWRAP) --output-def $(DEFFILE) --driver-name c++ --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)
|
|
||||||
|
|
||||||
./pa_skeleton.o: ../../pa_common/pa_skeleton.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_skeleton.c -o ./pa_skeleton.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_stream.o: ../../pa_common/pa_stream.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_stream.c -o ./pa_stream.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_trace.o: ../../pa_common/pa_trace.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_trace.c -o ./pa_trace.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_allocation.o: ../../pa_common/pa_allocation.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_allocation.c -o ./pa_allocation.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_converters.o: ../../pa_common/pa_converters.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_converters.c -o ./pa_converters.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_cpuload.o: ../../pa_common/pa_cpuload.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_cpuload.c -o ./pa_cpuload.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_dither.o: ../../pa_common/pa_dither.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_dither.c -o ./pa_dither.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_front.o: ../../pa_common/pa_front.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_front.c -o ./pa_front.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_process.o: ../../pa_common/pa_process.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_process.c -o ./pa_process.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_asio.o: ../../pa_asio/pa_asio.cpp
|
|
||||||
$(CPP) -c ../../pa_asio/pa_asio.cpp -o ./pa_asio.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_util.o: ../pa_win_util.c
|
|
||||||
$(CPP) -c ../pa_win_util.c -o ./pa_win_util.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_hostapis.o: ../pa_win_hostapis.c
|
|
||||||
$(CPP) -c ../pa_win_hostapis.c -o ./pa_win_hostapis.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_ds.o: ../../pa_win_ds/pa_win_ds.c
|
|
||||||
$(CPP) -c ../../pa_win_ds/pa_win_ds.c -o ./pa_win_ds.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./dsound_wrapper.o: ../../pa_win_ds/dsound_wrapper.c
|
|
||||||
$(CPP) -c ../../pa_win_ds/dsound_wrapper.c -o ./dsound_wrapper.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_wmme.o: ../../pa_win_wmme/pa_win_wmme.c
|
|
||||||
$(CPP) -c ../../pa_win_wmme/pa_win_wmme.c -o ./pa_win_wmme.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./iasiothiscallresolver.o: ../../pa_asio/iasiothiscallresolver.cpp
|
|
||||||
$(CPP) -c ../../pa_asio/iasiothiscallresolver.cpp -o ./iasiothiscallresolver.o $(CXXFLAGS)
|
|
@ -1,75 +0,0 @@
|
|||||||
# Project: portaudio-static
|
|
||||||
# Makefile created by Dev-C++ 4.9.8.2
|
|
||||||
|
|
||||||
CPP = g++.exe
|
|
||||||
CC = gcc.exe
|
|
||||||
WINDRES = windres.exe
|
|
||||||
RES =
|
|
||||||
OBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
|
|
||||||
LINKOBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
|
|
||||||
LIBS = -L"C:/Dev-CPP/lib" -fmessage-length=0 -O3 -s
|
|
||||||
INCS = -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
|
|
||||||
CXXINCS = -I"C:/Dev-CPP/include/c++" -I"C:/Dev-CPP/include/c++/mingw32" -I"C:/Dev-CPP/include/c++/backward" -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
|
|
||||||
BIN = portaudio-static.a
|
|
||||||
CXXFLAGS = $(CXXINCS)-O3 -fmessage-length=0 -Wall
|
|
||||||
CFLAGS = $(INCS)-O3 -fmessage-length=0 -Wall
|
|
||||||
|
|
||||||
.PHONY: all all-before all-after clean clean-custom
|
|
||||||
|
|
||||||
all: all-before portaudio-static.a all-after
|
|
||||||
|
|
||||||
|
|
||||||
clean: clean-custom
|
|
||||||
rm -f $(OBJ) $(BIN)
|
|
||||||
|
|
||||||
$(BIN): $(LINKOBJ)
|
|
||||||
ar r $(BIN) $(LINKOBJ)
|
|
||||||
ranlib $(BIN)
|
|
||||||
|
|
||||||
./pa_skeleton.o: ../../pa_common/pa_skeleton.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_skeleton.c -o ./pa_skeleton.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_stream.o: ../../pa_common/pa_stream.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_stream.c -o ./pa_stream.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_trace.o: ../../pa_common/pa_trace.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_trace.c -o ./pa_trace.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_allocation.o: ../../pa_common/pa_allocation.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_allocation.c -o ./pa_allocation.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_converters.o: ../../pa_common/pa_converters.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_converters.c -o ./pa_converters.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_cpuload.o: ../../pa_common/pa_cpuload.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_cpuload.c -o ./pa_cpuload.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_dither.o: ../../pa_common/pa_dither.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_dither.c -o ./pa_dither.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_front.o: ../../pa_common/pa_front.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_front.c -o ./pa_front.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_process.o: ../../pa_common/pa_process.c
|
|
||||||
$(CPP) -c ../../pa_common/pa_process.c -o ./pa_process.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_asio.o: ../../pa_asio/pa_asio.cpp
|
|
||||||
$(CPP) -c ../../pa_asio/pa_asio.cpp -o ./pa_asio.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_util.o: ../pa_win_util.c
|
|
||||||
$(CPP) -c ../pa_win_util.c -o ./pa_win_util.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_hostapis.o: ../pa_win_hostapis.c
|
|
||||||
$(CPP) -c ../pa_win_hostapis.c -o ./pa_win_hostapis.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_ds.o: ../../pa_win_ds/pa_win_ds.c
|
|
||||||
$(CPP) -c ../../pa_win_ds/pa_win_ds.c -o ./pa_win_ds.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./dsound_wrapper.o: ../../pa_win_ds/dsound_wrapper.c
|
|
||||||
$(CPP) -c ../../pa_win_ds/dsound_wrapper.c -o ./dsound_wrapper.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./pa_win_wmme.o: ../../pa_win_wmme/pa_win_wmme.c
|
|
||||||
$(CPP) -c ../../pa_win_wmme/pa_win_wmme.c -o ./pa_win_wmme.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
./iasiothiscallresolver.o: ../../pa_asio/iasiothiscallresolver.cpp
|
|
||||||
$(CPP) -c ../../pa_asio/iasiothiscallresolver.cpp -o ./iasiothiscallresolver.o $(CXXFLAGS)
|
|
@ -1,209 +0,0 @@
|
|||||||
[Project]
|
|
||||||
FileName=portaudio-dll.dev
|
|
||||||
Name=portaudio-dll
|
|
||||||
UnitCount=16
|
|
||||||
Type=3
|
|
||||||
Ver=1
|
|
||||||
ObjFiles=
|
|
||||||
Includes=..\..\..\asiosdk2;..\..\..\asiosdk2\common;..\..\..\asiosdk2\host;..\..\..\asiosdk2\host\pc;..\..\pa_common
|
|
||||||
Libs=
|
|
||||||
PrivateResource=
|
|
||||||
ResourceIncludes=
|
|
||||||
MakeIncludes=
|
|
||||||
Compiler=-DBUILDING_DLL=1_@@_-O3_@@_
|
|
||||||
CppCompiler=-O3_@@_
|
|
||||||
Linker=--no-export-all-symbols --add-stdcall-alias_@@_../../../asiosdk2/asiosdk2.a_@@_-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lwinmm_@@_-O3 -s_@@_
|
|
||||||
IsCpp=1
|
|
||||||
Icon=
|
|
||||||
ExeOutput=.
|
|
||||||
ObjectOutput=.
|
|
||||||
OverrideOutput=0
|
|
||||||
OverrideOutputName=portaudio.a
|
|
||||||
HostApplication=
|
|
||||||
Folders=
|
|
||||||
CommandLine=
|
|
||||||
IncludeVersionInfo=0
|
|
||||||
SupportXPThemes=0
|
|
||||||
CompilerSet=0
|
|
||||||
CompilerSettings=0000000000000000000
|
|
||||||
UseCustomMakefile=0
|
|
||||||
CustomMakefile=
|
|
||||||
|
|
||||||
[Unit1]
|
|
||||||
FileName=..\..\pa_common\pa_skeleton.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_skeleton.c -o ./pa_skeleton.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit2]
|
|
||||||
FileName=..\..\pa_common\pa_stream.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_stream.c -o ./pa_stream.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit3]
|
|
||||||
FileName=..\..\pa_common\pa_trace.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_trace.c -o ./pa_trace.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit4]
|
|
||||||
FileName=..\..\pa_common\pa_allocation.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_allocation.c -o ./pa_allocation.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit5]
|
|
||||||
FileName=..\..\pa_common\pa_converters.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_converters.c -o ./pa_converters.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit6]
|
|
||||||
FileName=..\..\pa_common\pa_cpuload.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_cpuload.c -o ./pa_cpuload.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit7]
|
|
||||||
FileName=..\..\pa_common\pa_dither.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_dither.c -o ./pa_dither.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit8]
|
|
||||||
FileName=..\..\pa_common\pa_front.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_front.c -o ./pa_front.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit9]
|
|
||||||
FileName=..\..\pa_common\pa_process.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_process.c -o ./pa_process.o $(CFLAGS)
|
|
||||||
|
|
||||||
[VersionInfo]
|
|
||||||
Major=0
|
|
||||||
Minor=1
|
|
||||||
Release=1
|
|
||||||
Build=1
|
|
||||||
LanguageID=1033
|
|
||||||
CharsetID=1252
|
|
||||||
CompanyName=
|
|
||||||
FileVersion=
|
|
||||||
FileDescription=Developed using the Dev-C++ IDE
|
|
||||||
InternalName=
|
|
||||||
LegalCopyright=
|
|
||||||
LegalTrademarks=
|
|
||||||
OriginalFilename=
|
|
||||||
ProductName=
|
|
||||||
ProductVersion=
|
|
||||||
AutoIncBuildNr=0
|
|
||||||
|
|
||||||
[Unit10]
|
|
||||||
FileName=..\..\pa_asio\pa_asio.cpp
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CPP) -c pa_asio.cpp -o ./pa_asio.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
[Unit11]
|
|
||||||
FileName=..\pa_win_util.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_util.c -o ./pa_win_util.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit12]
|
|
||||||
FileName=..\pa_win_hostapis.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_hostapis.c -o ./pa_win_hostapis.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit13]
|
|
||||||
FileName=..\..\pa_win_ds\pa_win_ds.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_ds.c -o ./pa_win_ds.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit14]
|
|
||||||
FileName=..\..\pa_win_ds\dsound_wrapper.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c dsound_wrapper.c -o ./dsound_wrapper.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit15]
|
|
||||||
FileName=..\..\pa_win_wmme\pa_win_wmme.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_wmme.c -o ./pa_win_wmme.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit16]
|
|
||||||
FileName=..\..\pa_asio\iasiothiscallresolver.cpp
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=
|
|
||||||
|
|
@ -1,209 +0,0 @@
|
|||||||
[Project]
|
|
||||||
FileName=portaudio-static.dev
|
|
||||||
Name=portaudio-static
|
|
||||||
UnitCount=16
|
|
||||||
Type=2
|
|
||||||
Ver=1
|
|
||||||
ObjFiles=
|
|
||||||
Includes=..\..\..\asiosdk2;..\..\..\asiosdk2\common;..\..\..\asiosdk2\host;..\..\..\asiosdk2\host\pc;..\..\pa_common
|
|
||||||
Libs=
|
|
||||||
PrivateResource=
|
|
||||||
ResourceIncludes=
|
|
||||||
MakeIncludes=
|
|
||||||
Compiler=-O3_@@_
|
|
||||||
CppCompiler=-O3_@@_
|
|
||||||
Linker=-O3 -s_@@_
|
|
||||||
IsCpp=1
|
|
||||||
Icon=
|
|
||||||
ExeOutput=.
|
|
||||||
ObjectOutput=.
|
|
||||||
OverrideOutput=0
|
|
||||||
OverrideOutputName=portaudio.a
|
|
||||||
HostApplication=
|
|
||||||
Folders=
|
|
||||||
CommandLine=
|
|
||||||
IncludeVersionInfo=0
|
|
||||||
SupportXPThemes=0
|
|
||||||
CompilerSet=0
|
|
||||||
CompilerSettings=0000000000000000000
|
|
||||||
UseCustomMakefile=0
|
|
||||||
CustomMakefile=
|
|
||||||
|
|
||||||
[Unit1]
|
|
||||||
FileName=..\..\pa_common\pa_skeleton.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_skeleton.c -o ./pa_skeleton.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit2]
|
|
||||||
FileName=..\..\pa_common\pa_stream.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_stream.c -o ./pa_stream.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit3]
|
|
||||||
FileName=..\..\pa_common\pa_trace.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_trace.c -o ./pa_trace.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit4]
|
|
||||||
FileName=..\..\pa_common\pa_allocation.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_allocation.c -o ./pa_allocation.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit5]
|
|
||||||
FileName=..\..\pa_common\pa_converters.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_converters.c -o ./pa_converters.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit6]
|
|
||||||
FileName=..\..\pa_common\pa_cpuload.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_cpuload.c -o ./pa_cpuload.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit7]
|
|
||||||
FileName=..\..\pa_common\pa_dither.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_dither.c -o ./pa_dither.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit8]
|
|
||||||
FileName=..\..\pa_common\pa_front.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_front.c -o ./pa_front.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit9]
|
|
||||||
FileName=..\..\pa_common\pa_process.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_process.c -o ./pa_process.o $(CFLAGS)
|
|
||||||
|
|
||||||
[VersionInfo]
|
|
||||||
Major=0
|
|
||||||
Minor=1
|
|
||||||
Release=1
|
|
||||||
Build=1
|
|
||||||
LanguageID=1033
|
|
||||||
CharsetID=1252
|
|
||||||
CompanyName=
|
|
||||||
FileVersion=
|
|
||||||
FileDescription=Developed using the Dev-C++ IDE
|
|
||||||
InternalName=
|
|
||||||
LegalCopyright=
|
|
||||||
LegalTrademarks=
|
|
||||||
OriginalFilename=
|
|
||||||
ProductName=
|
|
||||||
ProductVersion=
|
|
||||||
AutoIncBuildNr=0
|
|
||||||
|
|
||||||
[Unit10]
|
|
||||||
FileName=..\..\pa_asio\pa_asio.cpp
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CPP) -c pa_asio.cpp -o ./pa_asio.o $(CXXFLAGS)
|
|
||||||
|
|
||||||
[Unit11]
|
|
||||||
FileName=..\..\pa_win\pa_win_util.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_util.c -o ./pa_win_util.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit12]
|
|
||||||
FileName=..\..\pa_win\pa_win_hostapis.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_hostapis.c -o ./pa_win_hostapis.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit13]
|
|
||||||
FileName=..\..\pa_win_ds\pa_win_ds.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_ds.c -o ./pa_win_ds.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit14]
|
|
||||||
FileName=..\..\pa_win_ds\dsound_wrapper.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c dsound_wrapper.c -o ./dsound_wrapper.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit15]
|
|
||||||
FileName=..\..\pa_win_wmme\pa_win_wmme.c
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=$(CC) -c pa_win_wmme.c -o ./pa_win_wmme.o $(CFLAGS)
|
|
||||||
|
|
||||||
[Unit16]
|
|
||||||
FileName=..\..\pa_asio\iasiothiscallresolver.cpp
|
|
||||||
CompileCpp=1
|
|
||||||
Folder=portaudio
|
|
||||||
Compile=1
|
|
||||||
Link=1
|
|
||||||
Priority=1000
|
|
||||||
OverrideBuildCmd=0
|
|
||||||
BuildCmd=
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
From: "Peter L Jones"
|
|
||||||
Sent: Wednesday, September 17, 2003 5:18 AM
|
|
||||||
Subject: Dev-C++ project files
|
|
||||||
|
|
||||||
I attach two project files intended for portaudio/pa_win/dev-cpp (i.e. in
|
|
||||||
parallel with the msvc directory), if you want them. One is for a static
|
|
||||||
library build and one for a DLL. I've used the static library (in building
|
|
||||||
a single monolithic DLL) but I can't guarantee the DLL version will build a
|
|
||||||
working library (I think it's mostly there, though!).
|
|
||||||
|
|
||||||
I also attach the resulting makefiles, which may be of use to other MinGW
|
|
||||||
users.
|
|
||||||
|
|
||||||
They're rooted in the directory given above and drop their object and
|
|
||||||
library files in the same place. They assume the asiosdk2 files are in the
|
|
||||||
same directory as portaudio/ in a sub-directory called asiosdk2/. Oh! The
|
|
||||||
DLL is built against a static asiosdk2.a library... maybe not the best way
|
|
||||||
to do it... I ought to figure out how to link against a "home made" dll in
|
|
||||||
Dev-C++, I guess ;-)
|
|
||||||
|
|
||||||
Cheers,
|
|
||||||
|
|
||||||
-- Peter
|
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user