nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android: make native audio_manager access private
[nit.git]
/
lib
/
app
/
audio.nit
diff --git
a/lib/app/audio.nit
b/lib/app/audio.nit
index
51c0c12
..
42d90ae
100644
(file)
--- a/
lib/app/audio.nit
+++ b/
lib/app/audio.nit
@@
-15,6
+15,8
@@
# limitations under the License.
# App audio abstraction
# 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
#
# Once the application has started (after `App.setup`)
# use `App.load_sound` to get a sound
@@
-22,7
+24,7
@@
module audio
import app_base
module audio
import app_base
-import standard::error
+import core::error
# Platform variations
# TODO: move on the platform once qualified names are understand in the condition
# Platform variations
# TODO: move on the platform once qualified names are understand in the condition
@@
-41,7
+43,7
@@
abstract class PlayableAudio
# Is this already loaded ?
protected var is_loaded = false is writable
# 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
fun load is abstract
# Plays the sound