Environment: Siren
A PortAudioPort is an interface to the external PortAudio library. It is simple, supports playback only, and does not use callbacks from C into Smalltalk. For a fancier version that supports input as well , see SmartAudioPort.
Instance Variables:
Shared Variables:
open/close
device
rate
format
outChannels
interface
isOpen
isRunning
bufferSize
Devices
open
Open the receiver sound port
start
Start the receiver sound port
stop
Stop the receiver sound port
terminate
Shut down the receiver.
accessing
format: aValue
outChannels
outChannels: aValue
rate
rate: aValue
initialize/release
Answer an initialized version of the receiver.
play/record
Play the argument on the receiver over the DACs.
play: aSound from: start to: stop
Play the argument on the receiver over the DACs.
MetaClass: PortAudioPort class
initialize/release
Stop and close the running instance
examples
Play a swept sine wave using the simple output-only port audio port.
playSweepLong
Play a *long* swept sine wave using the simple output-only port audio port.