Class Rubygame::Mixer::Sample
In: ext/rubygame/rubygame_mixer.c
Parent: Object

Stores audio data to play with Mixer.play()

Methods

Public Class methods

Load an audio sample (a "chunk", to use SDL_mixer‘s term) from a file. Only WAV files are supported at this time.

Raises SDLError if the sample could not be loaded.

[Validate]