X-Git-Url: http://nitlanguage.org diff --git a/lib/app/audio.nit b/lib/app/audio.nit index 1b5eff4..7f22c78 100644 --- a/lib/app/audio.nit +++ b/lib/app/audio.nit @@ -15,6 +15,8 @@ # limitations under the License. # App audio abstraction +# Default behaviour is loading the audio from the `assets` folder of the project with its name and extension +# Platforms implementations can modify this comportement # # Once the application has started (after `App.setup`) # use `App.load_sound` to get a sound @@ -22,7 +24,11 @@ module audio import app_base -import standard::error +import core::error + +# Platform variations +import linux::audio is conditional(linux) +import android::audio is conditional(android) # Abstraction of a playable Audio abstract class PlayableAudio @@ -36,7 +42,7 @@ abstract class PlayableAudio # Is this already loaded ? protected var is_loaded = false is writable - # load this playable audio + # Load this playable audio fun load is abstract # Plays the sound