WaveSoundResource(filepath, in_ram)
Holds audio data from a .wav file. `.wav` files can be 8 or 16-bit PCM and only samples rates equal to or less than 22050Hz. Recommended sample rates are: 22050Hz, 11025Hz, 5512Hz, 2756Hz, and 1378Hz
Parameters:
filepath
[value: string, type: string]
in_ram
[value: True or False (default: False), type: boolean]
Attributes:
data
[value: value of bytearray containing the audio samples, type: bytearray]
duration
[value: length of wave file in seconds (read-only), type: float]
sample_rate
[value: rate that samples are played in Hz (read-only), type: int]
file: src/resources/engine_wave_sound_resource.c