Version 4.3.1

This commit is contained in:
Gary Scavone
2009-03-24 23:02:17 -04:00
committed by Stephen Sinclair
parent 27d9b79dc7
commit d199342e86
105 changed files with 3455 additions and 12232 deletions

View File

@@ -43,9 +43,12 @@ public:
//! Overloaded constructor that opens a file during instantiation.
/*!
An StkError will be thrown if the file is not found or its
format is unknown or unsupported.
format is unknown or unsupported. The optional arguments allow a
headerless file type to be supported. If \c typeRaw is false (the
default), the subsequent parameters are ignored.
*/
FileRead( std::string fileName, bool typeRaw = false );
FileRead( std::string fileName, bool typeRaw = false, unsigned int nChannels = 1,
StkFormat format = STK_SINT16, StkFloat rate = 22050.0 );
//! Class destructor.
~FileRead();
@@ -53,11 +56,12 @@ public:
//! Open the specified file and determine its formatting.
/*!
An StkError will be thrown if the file is not found or its
format is unknown or unsupported. An optional parameter is
provided to specify whether the input file is of type STK RAW
(default = false).
format is unknown or unsupported. The optional arguments allow a
headerless file type to be supported. If \c typeRaw is false (the
default), the subsequent parameters are ignored.
*/
void open( std::string fileName, bool typeRaw = false );
void open( std::string fileName, bool typeRaw = false, unsigned int nChannels = 1,
StkFormat format = STK_SINT16, StkFloat rate = 22050.0 );
//! If a file is open, close it.
void close( void );
@@ -97,7 +101,8 @@ public:
protected:
// Get STK RAW file information.
bool getRawInfo( const char *fileName );
bool getRawInfo( const char *fileName, unsigned int nChannels,
StkFormat format, StkFloat rate );
// Get WAV file header information.
bool getWavInfo( const char *fileName );

View File

@@ -42,7 +42,7 @@
\file RtAudio.h
*/
// RtAudio: Version 4.0
// RtAudio: Version 4.0.3
#ifndef __RTAUDIO_H
#define __RTAUDIO_H
@@ -679,20 +679,20 @@ protected:
//
// **************************************************************** //
inline RtAudio::Api RtAudio :: getCurrentApi( void ) throw() { return rtapi_->getCurrentApi(); };
inline unsigned int RtAudio :: getDeviceCount( void ) throw() { return rtapi_->getDeviceCount(); };
inline RtAudio::DeviceInfo RtAudio :: getDeviceInfo( unsigned int device ) { return rtapi_->getDeviceInfo( device ); };
inline unsigned int RtAudio :: getDefaultInputDevice( void ) throw() { return rtapi_->getDefaultInputDevice(); };
inline unsigned int RtAudio :: getDefaultOutputDevice( void ) throw() { return rtapi_->getDefaultOutputDevice(); };
inline void RtAudio :: closeStream( void ) throw() { return rtapi_->closeStream(); };
inline void RtAudio :: startStream( void ) { return rtapi_->startStream(); };
inline void RtAudio :: stopStream( void ) { return rtapi_->stopStream(); };
inline void RtAudio :: abortStream( void ) { return rtapi_->abortStream(); };
inline bool RtAudio :: isStreamOpen( void ) throw() { return rtapi_->isStreamOpen(); };
inline bool RtAudio :: isStreamRunning( void ) throw() { return rtapi_->isStreamRunning(); };
inline long RtAudio :: getStreamLatency( void ) { return rtapi_->getStreamLatency(); };
inline double RtAudio :: getStreamTime( void ) { return rtapi_->getStreamTime(); };
inline void RtAudio :: showWarnings( bool value ) throw() { rtapi_->showWarnings( value ); };
inline RtAudio::Api RtAudio :: getCurrentApi( void ) throw() { return rtapi_->getCurrentApi(); }
inline unsigned int RtAudio :: getDeviceCount( void ) throw() { return rtapi_->getDeviceCount(); }
inline RtAudio::DeviceInfo RtAudio :: getDeviceInfo( unsigned int device ) { return rtapi_->getDeviceInfo( device ); }
inline unsigned int RtAudio :: getDefaultInputDevice( void ) throw() { return rtapi_->getDefaultInputDevice(); }
inline unsigned int RtAudio :: getDefaultOutputDevice( void ) throw() { return rtapi_->getDefaultOutputDevice(); }
inline void RtAudio :: closeStream( void ) throw() { return rtapi_->closeStream(); }
inline void RtAudio :: startStream( void ) { return rtapi_->startStream(); }
inline void RtAudio :: stopStream( void ) { return rtapi_->stopStream(); }
inline void RtAudio :: abortStream( void ) { return rtapi_->abortStream(); }
inline bool RtAudio :: isStreamOpen( void ) throw() { return rtapi_->isStreamOpen(); }
inline bool RtAudio :: isStreamRunning( void ) throw() { return rtapi_->isStreamRunning(); }
inline long RtAudio :: getStreamLatency( void ) { return rtapi_->getStreamLatency(); }
inline double RtAudio :: getStreamTime( void ) { return rtapi_->getStreamTime(); }
inline void RtAudio :: showWarnings( bool value ) throw() { rtapi_->showWarnings( value ); }
// RtApi Subclass prototypes.
@@ -794,6 +794,8 @@ public:
private:
std::vector<RtAudio::DeviceInfo> devices_;
void saveDeviceInfo( void );
bool coInitialized_;
bool probeDeviceOpen( unsigned int device, StreamMode mode, unsigned int channels,
unsigned int firstChannel, unsigned int sampleRate,
@@ -911,7 +913,7 @@ class RtApiDummy: public RtApi
{
public:
RtApiDummy() { errorText_ = "RtApiDummy: This class provides no functionality."; error( WARNING ); };
RtApiDummy() { errorText_ = "RtApiDummy: This class provides no functionality."; error( RtError::WARNING ); };
RtAudio::Api getCurrentApi( void ) { return RtAudio::RTAUDIO_DUMMY; };
unsigned int getDeviceCount( void ) { return 0; };
RtAudio::DeviceInfo getDeviceInfo( unsigned int device ) { RtAudio::DeviceInfo info; return info; };

View File

@@ -8,7 +8,7 @@
RtMidi WWW site: http://music.mcgill.ca/~gary/rtmidi/
RtMidi: realtime MIDI i/o C++ classes
Copyright (c) 2003-2005 Gary P. Scavone
Copyright (c) 2003-2007 Gary P. Scavone
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
@@ -35,7 +35,7 @@
*/
/**********************************************************************/
// RtMidi: Version 1.0.5, in development
// RtMidi: Version 1.0.7
#ifndef RTMIDI_H
#define RTMIDI_H
@@ -121,7 +121,7 @@ class RtMidiIn : public RtMidi
*/
void openPort( unsigned int portNumber = 0 );
//! Create a virtual input port to allow software connections (OS X and ALSA only).
//! Create a virtual input port, with optional name, to allow software connections (OS X and ALSA only).
/*!
This function creates a virtual MIDI input port to which other
software applications can connect. This type of functionality
@@ -261,7 +261,7 @@ class RtMidiOut : public RtMidi
//! Close an open MIDI connection (if one exists).
void closePort();
//! Create a virtual output port to allow software connections (OS X and ALSA only).
//! Create a virtual output port, with optional name, to allow software connections (OS X and ALSA only).
/*!
This function creates a virtual MIDI output port to which other
software applications can connect. This type of functionality

View File

@@ -8,7 +8,21 @@
this class provides error handling and
byte-swapping functions.
by Perry R. Cook and Gary P. Scavone, 1995 - 2007.
The Synthesis ToolKit in C++ (STK) is a set of open source audio
signal processing and algorithmic synthesis classes written in the
C++ programming language. STK was designed to facilitate rapid
development of music synthesis and audio processing software, with
an emphasis on cross-platform functionality, realtime control,
ease of use, and educational example code. STK currently runs
with realtime support (audio and MIDI) on Linux, Macintosh OS X,
and Windows computer platforms. Generic, non-realtime support has
been tested under NeXTStep, Sun, and other platforms and should
work with any standard C++ compiler.
STK WWW site: http://ccrma.stanford.edu/software/stk/
The Synthesis ToolKit in C++ (STK)
Copyright (c) 1995-2007 Perry R. Cook and Gary P. Scavone
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files