Click luaforrephonexxx.zip to download. Set your RePhone into storage mode by plugging in the battery and connect it to PC with a Micro USB cable. Unzip the luaforrephonexxx.zip file into the 5MB disk of RePhone, you can also put some music files (mp3 format) into the disk. Here I've put the 'music1.mp3' and 'music2.mp3. Import your existing (C, C, Java or Obj-C) code, bind to Lua and interpret them directly. Dozens of open-source plugins are already developed and ready to use. Clean OOP approach − Gideros provides its own class system with all the basic OOP standards, enabling you to write clean and reusable code for any of your future games. Store: a VPN: advanced version can be found here: https://teksyndicate.co.
In LÖVE, audio is the domain of the love.audio module, which uses OpenAL for playback. love.audio has only one type of audio object - a Source. You can load audio and play it like so:
Formats
LÖVE supports a lot of audio formats, thanks to the love.sound module, which handles all the decoding. Supported formats include:
MP3
Ogg Vorbis
WAVE
and just about every tracker format you can think of - XM, MOD, and over twenty others.
Ogg Vorbis and 16-bit WAVE are the recommended formats. Others may have minor quirks. For example, the MP3 decoder may pad a few samples depending on what encoder was used. These issues come from the libraries LÖVE uses to decode the audio files and can't be fixed in LÖVE directly.
Static vs. Streaming
Keep in mind that, if you pass love.audio.newSource 'static' as a second argument, the sound file will be expanded into memory, so if you load a 5MB compressed .ogg file that way, it would consume ~50MB RAM when fully decompressed. Consider not using 'static' in such cases.
If you omit the 'static', the audio will be streamed from the file as it's played, something that saves a lot of memory when you're dealing with massive files.
Audio control
To pause, stop, change volume, looping, pitch, etc., simply call the relevant method of a Source.
Example
Further details can be found in the Source documentation.
See Also
TEsound - A sound manager which makes it easier to use sound effects and music
Minimalist Sound Manager - A snippet that makes usage of love.audio easier and automatically manages sources
Lua C Play Music App
Other Languages
Dansk –Deutsch –English – Español –Français –Indonesia –Italiano –Lietuviškai –Magyar –Nederlands –Polski –Português –Română –Slovenský –Suomi –Svenska –Türkçe –Česky –Ελληνικά –Български –Русский –Српски –Українська –עברית –ไทย –日本語 –正體中文 –简体中文 –Tiếng Việt –한국어 More info