Previous Up Next

28.2.3  Reading wav files from disk

The readwav command loads a wav file.

Example

Assuming that the file example.wav is stored in the directory sounds, input:

s:=readwav("/path/to/sounds/example.wav")

You can now play the audio clip object s:

playsnd(s)

Output: The sound of the audio file example.wav.


Previous Up Next