- fun default_mediaplayer: MediaPlayer is cached do return new MediaPlayer
- fun default_soundpool: SoundPool is cached do return new SoundPool
+ # Sounds handled by the application, when you load a sound, it's added to this list.
+ # This array is used in `pause` and `resume`
+ private var sounds = new Array[Sound]
+
+ # Returns the default MediaPlayer of the application.
+ # When you load a music, it goes in this MediaPlayer.
+ # Use it for advanced sound management
+ var default_mediaplayer: MediaPlayer is lazy do return new MediaPlayer
+
+ # Returns the default MediaPlayer of the application.
+ # When you load a short sound (not a music), it's added to this soundpool.
+ # Use it for advanced sound management.
+ var default_soundpool: SoundPool is lazy do return new SoundPool