Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

mixer.openAudio

Open the audio system.

Function

SYNOPSIS

ret, err = function mixer.openAudio(frequency, format, channels, chunksize)

ARGUMENTS

  • frequency, the frequency
  • format, the format (see SDL.audioFormat)
  • channels, the number of channels
  • chunksize, the chunksize

RETURNS

  • ret, true on success or nil on failure
  • err, the error message
Clone this wiki locally