pub fn add_sub_track(
		&mut self,
		settings: TrackSettings,
	) -> Result<TrackHandle, AddSubTrackError> {
		let id = SubTrackId(
			self.resource_controllers
				.sub_track_controller
				.try_reserve()
				.map_err(|_| AddSubTrackError::SubTrackLimitReached)?,
		);
		let sub_track = Track::new(settings, &self.context);
		let handle = TrackHandle {
			id: TrackId::Sub(id),
			shared: Some(sub_track.shared()),
			command_producer: self.command_producer.clone(),
		};
		self.command_producer
			.push(Command::Mixer(MixerCommand::AddSubTrack(id, sub_track)))?;
		Ok(handle)
	}
/// Creates a mixer sub-track.
Creates a mixer sub-track.
Creates a mixer sub - track .
pub fn add_sub_track(
		&mut self,
		settings: TrackSettings,
	) -> Result<TrackHandle, AddSubTrackError> {
		let id = SubTrackId(
			self.resource_controllers
				.sub_track_controller
				.try_reserve()
				.map_err(|_| AddSubTrackError::SubTrackLimitReached)?,
		);
		let sub_track = Track::new(settings, &self.context);
		let handle = TrackHandle {
			id: TrackId::Sub(id),
			shared: Some(sub_track.shared()),
			command_producer: self.command_producer.clone(),
		};
		self.command_producer
			.push(Command::Mixer(MixerCommand::AddSubTrack(id, sub_track)))?;
		Ok(handle)
	}
pub fn add_sub_track ( & mut self , settings : TrackSettings , ) -> Result < TrackHandle , AddSubTrackError > { let id = SubTrackId ( self . resource_controllers . sub_track_controller . try_reserve ( ) . map_err ( | _ | AddSubTrackError :: SubTrackLimitReached ) ? , ) ; let sub_track = Track :: new ( settings , & self . context ) ; let handle = TrackHandle { id : TrackId :: Sub ( id ) , shared : Some ( sub_track . shared ( ) ) , command_producer : self . command_producer . clone ( ) , } ; self . command_producer . push ( Command :: Mixer ( MixerCommand :: AddSubTrack ( id , sub_track ) ) ) ? ; Ok ( handle ) }
Creates a mixer sub-track.
Creates a mixer sub - track .
&mut self
settings
TrackSettings