breve Documentation: version 1.9 | ||
---|---|---|
<< previous | Chapter 6. Graphics and Sound | next >> |
Sounds can be loaded and played using the class Sound.
Supported file formats for sounds are AIFF and WAV. To load a sound file, created a new instance
of the Sound class, and load in the file using the method
load. You can then play the sound using the method
play. Sound instances can play multiple overlapping
copies of the same sound simultaneously, meaning that one sound need not finish before another
call to play
is made.
![]() | Bad Sound Files |
---|---|
Though AIFF and WAV are well-defined standards, it is not uncommon to find AIFF or WAV files which play fine in some programs, but which cannot be read by others. If you have an AIFF or WAV file that does not seem to play correctly in breve, try loading it into a good quality sound editor (such as QuickTime Player on Mac OS X), and re-exporting the sound. |
<< previous | breve Documentation table of contents | next >> |
Displaying Objects as "Lightmaps" | up | Sounds Included With breve |