pub struct ChannelId(/* private fields */);
Expand description
A pointer to a currently playing channel.
This is used to modify a channel that is already playing.
Example
let mut channel = SoundChannel::new_high_priority(MY_BGM);
let bgm_channel_id = mixer.play_sound(channel).unwrap(); // will always be Some if high priority
// Later, stop that particular channel
mixer.channel(&bgm_channel_id).expect("Expected to still be playing").stop();