new Sound(filename)
Load a WAV (11025Hz, 8bit, mono). Different sample rates are accepted (and create a warning in the log), but are not converted and will sound weird.
Parameters:
| Name | Type | Description |
|---|---|---|
filename |
string |
Members
-
static channels
-
Number of channels.
-
static filename
-
Name of the WAV.
-
static format
-
Sound format.
-
static length
-
Sound length.
-
static num_bits
-
Number of bits / sample.
-
static rate
-
Sampling rate.
Methods
-
Play()
-
Play the WAV once.