[][src]Function music::start_context

pub fn start_context<M: Eq + Hash + 'static + Any, S: Eq + Hash + 'static + Any, F: FnOnce()>(
    sdl: &Sdl,
    num_sound_channels: i32,
    f: F
)

Initializes audio and sets up current objects

  • num_sound_channels: The number of concurrent sound channels to allocate. This limits the number of sounds that can be played simultaneously.