Removed undefined clear() functions in FM, Resonate, Simple, and Sampler classes; a few documentation updates in preparation for 4.5.0 release.

This commit is contained in:
Gary Scavone
2014-04-23 12:12:35 -04:00
parent 1c5d42e64c
commit ea52f1f1a8
8 changed files with 11 additions and 15 deletions

View File

@@ -35,6 +35,7 @@ Several options can be passed to configure, including:
--with-core = choose OS-X Core Audio API (macintosh OS-X only)
--with-asio = choose ASIO API support (windows only)
--with-ds = choose DirectSound API support (windows only)
--with-wasapi = choose Windows Audio Session API support (windows only)
It is now possible to specify more than one audio and MIDI API where supported. Note, however, that the ALSA library is required in order to compile the RtMidi class in Linux if the `--with-oss` option is provided (only the OSS audio API will be used, not the OSS MIDI API). Typing `./configure --help` will display all the available options. In addition, it is possible to specify the RAWWAVES and INCLUDE paths to configure as (ex. to set to /home/me/rawwaves and /home/me/include):

View File

@@ -190,7 +190,13 @@ if test $realtime = yes; then
AC_ARG_WITH(ds, [ --with-ds = choose DirectSound API support (windoze only)], [
api="$api -D__WINDOWS_DS__"
AC_MSG_RESULT(using DirectSound)
LIBS="-ldsound -lwinmm $LIBS" ], )
LIBS="-ldsound $LIBS" ], )
# Look for WASAPI flag
AC_ARG_WITH(wasapi, [ --with-wasapi = choose Windows Audio Session API support (windoze only)], [
api="$api -D__WINDOWS_WASAPI__"
AC_MSG_RESULT(using WASAPI)
LIBS="-luuid -lksuser $LIBS" ], )
# If no audio api flags specified, use DirectSound
if [test "$api" == "";] then

View File

@@ -10,7 +10,7 @@ With Windows XP/7, piping works as under unix. Simply fire up the script files
IMPORTANT VC++ NOTE: When compiling "release" versions of STK programs, link to the release multithreaded library. When compiling "debug" versions, link to the debug multithreaded library. Compiler errors will result otherwise.
Both the DirectSound and Steinberg ASIO audio APIs are supported for realtime audio input/output. The Visual C++ project files included with this distribution are configured to use the DirectSound API. In order to use the ASIO API, it is necessary to change the preprocessor definition from __WINDOWS_DS__ to __WINDOWS_ASIO__, as well as include all the files in the /src/include/ directory (i.e. asio.h, asio.cpp, ...). If you have a good quality soundcard and a native ASIO driver (not emulated), you are likely to get much better input/output response using that.
The DirectSound, WASAPI and Steinberg ASIO audio APIs are supported for realtime audio input/output. The Visual C++ project files included with this distribution are configured to use all supported APIs. In order to use the ASIO API, it is necessary to use the preprocessor definition __WINDOWS_ASIO__, as well as include most of the files in the /src/include/ directory (i.e. asio.h, asio.cpp, ...). If you have a good quality soundcard and a native ASIO driver (not emulated), you are likely to get much better input/output response using that.
When using the DirectSound API for audio input, latency can be high. If you experience realtime audio "stuttering", you should experiment with different "buffer size" and "number of buffers" values.

View File

@@ -3,7 +3,8 @@ The Synthesis ToolKit in C++ (STK)
By Perry R. Cook and Gary P. Scavone, 1995--2014.
v4.5.0: (?? April 2014)
- updated versions of RtAudio and RtMidi, with associated renaming of RtError class to either RtAudioError or RtMidiError
- updated versions of RtAudio and RtMidi, with associated renaming of RtError class to either RtAudioError or RtMidiError and addition of WASAPI support in Windows
- added support in FileRead for little-endian AIFC file format
- new iOS project files (thanks to Ariel Elkin)
- bug fix in FreeVerb that could cause crackling for stereo input
- various bug fixes and updates to minimize compiler warnings

View File

@@ -46,9 +46,6 @@ class FM : public Instrmnt
//! Class destructor.
virtual ~FM( void );
//! Reset and clear all wave and envelope states.
void clear( void );
//! Load the rawwave filenames in waves.
void loadWaves( const char **filenames );

View File

@@ -36,9 +36,6 @@ class Resonate : public Instrmnt
//! Class destructor.
~Resonate( void );
//! Reset and clear all internal state.
void clear( void );
//! Set the filter for a resonance at the given frequency (Hz) and radius.
void setResonance( StkFloat frequency, StkFloat radius );

View File

@@ -28,9 +28,6 @@ class Sampler : public Instrmnt
//! Class destructor.
virtual ~Sampler( void );
//! Reset and clear all internal state.
void clear( void );
//! Set instrument parameters for a particular frequency.
virtual void setFrequency( StkFloat frequency ) = 0;

View File

@@ -41,9 +41,6 @@ class Simple : public Instrmnt
//! Class destructor.
~Simple( void );
//! Clear internal states.
void clear( void );
//! Set instrument parameters for a particular frequency.
void setFrequency( StkFloat frequency );