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'

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References