Siren sound objects can be read from and written to sound files using an external interface to Eric DeCastro's libSndFile library. This supports all popular (and many very obscure) sound file formats.
Store a swept sine to a file
[(SampledSound sweepDur: 2.0 rate: 44100 from: 30 to: 300 chans: 1)
storeOnFileNamed: 'sweep.aiff']
Look at the fuile using your favitors snd file editor.
Read various file formats
[(SampledSound fromFile: 'Data/unbelichtet.aiff') edit]
[(SampledSound fromFile: 'Data/kombination1a.snd') edit]
To support real-time streaming sound recording and playback, an external interface is provided to the cross-platform PortAudio library. An instance of SoundPort communicates with the external driver.
This example plays a 3-second sine wave sweep (BROKEN in 7.2 beta)
[PortAudioPort playSweep]