sdlLoadWav function

Pointer<SdlAudioSpec> sdlLoadWav(
  1. String file,
  2. Pointer<SdlAudioSpec> spec,
  3. Pointer<Pointer<Uint8>> audioBuf,
  4. Pointer<Uint32> audioLen,
)

Implementation

Pointer<SdlAudioSpec> sdlLoadWav(String file, Pointer<SdlAudioSpec> spec,
    Pointer<Pointer<Uint8>> audioBuf, Pointer<Uint32> audioLen) {
  return sdlLoadWavRw(sdlRwFromFile(file, 'rb'), 1, spec, audioBuf, audioLen);
}