pub fn play_in_channel(&self, audio_source: Handle<AudioSource>, channel_id: &AudioChannel) {
        self.commands.write().push_front((
            AudioCommands::Play(PlayAudioSettings {
                source: audio_source,
                looped: false,
            }),
            channel_id.clone(),
        ));
    }
/// Play audio in the given channel
///
/// ```edition2018
/// # use bevy::prelude::*;
/// # use bevy_kira_audio::{Audio, AudioChannel};
///
/// fn my_system(asset_server: Res<AssetServer>, audio: Res<Audio>) {
///     audio.play_in_channel(asset_server.load("audio.mp3"), &AudioChannel::new("my-channel".to_owned()));
/// }
/// ```
Play audio in the given channel
```edition2018
Play audio in the given channel ` ` ` edition2018
pub fn play_in_channel(&self, audio_source: Handle<AudioSource>, channel_id: &AudioChannel) {
        self.commands.write().push_front((
            AudioCommands::Play(PlayAudioSettings {
                source: audio_source,
                looped: false,
            }),
            channel_id.clone(),
        ));
    }
pub fn play_in_channel ( & self , audio_source : Handle < AudioSource > , channel_id : & AudioChannel ) { self . commands . write ( ) . push_front ( ( AudioCommands :: Play ( PlayAudioSettings { source : audio_source , looped : false , } ) , channel_id . clone ( ) , ) ) ; }
Play audio in the given channel
```edition2018
Play audio in the given channel ` ` ` edition2018
&self
audio_source
Handle<AudioSource>
channel_id
&AudioChannel
&self
audio_source
Handle<AudioSource>
channel_id
&AudioChannel
use bevy::prelude::*;
None
use bevy_kira_audio::{audio, audiochannel};
fn my_system(asset_server: Res, audio: Res) {
audio.play_in_channel(asset_server.load("audio.mp3"), &AudioChannel::new("my-channel".to_owned()));
}
```
fn my_system ( asset_server : Res audio : Res ) { audio . play_in_channel ( asset_server . load ( " audio . mp3 " ) &AudioChannel :: new ( " my - channel " . to_owned () )) ; } ` ` `