nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app::audio: drop the old load_sound and load_music
[nit.git]
/
contrib
/
mnit_test
/
src
/
test_audio.nit
diff --git
a/contrib/mnit_test/src/test_audio.nit
b/contrib/mnit_test/src/test_audio.nit
index
9ef5d92
..
ae94e70
100644
(file)
--- a/
contrib/mnit_test/src/test_audio.nit
+++ b/
contrib/mnit_test/src/test_audio.nit
@@
-22,10
+22,10
@@
import android::audio
redef class App
# Sound
redef class App
# Sound
- var soundsp: Sound
+ var soundsp: Sound is noinit
# Music
# Music
- var soundmp: Music
+ var soundmp: Music is noinit
# Sound
var easy_soundsp = new Sound("testsound")
# Sound
var easy_soundsp = new Sound("testsound")
@@
-47,8
+47,8
@@
redef class App
super
default_mediaplayer.looping = true
if test_assets then
super
default_mediaplayer.looping = true
if test_assets then
- soundsp = load_sound("testsound.og")
- soundmp = load_music("xylofon.og")
+ soundsp = new Sound("testsound.og")
+ soundmp = new Music("xylofon.og")
soundmp.play
end
if test_ressources then
soundmp.play
end
if test_ressources then