Reference soundFormats()

soundFormats()

List the SoundFile formats that you will include. LoadSound will search your directory for these extensions, and will pick a format that is compatable with the client's web browser. Here is a free online file converter.

Examples

Syntax

soundFormats([formats])

Parameters

formats
String:

i.e. 'mp3', 'wav', 'ogg'

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References