pub fn add_send_track(
		&mut self,
		settings: SendTrackSettings,
	) -> Result<SendTrackHandle, AddSendTrackError> {
		let id = settings.id.unwrap_or(SendTrackId::new());
		self.active_ids.add_send_track_id(id)?;
		let handle = SendTrackHandle::new(
			id,
			&settings,
			self.command_producer.clone(),
			self.sample_rate,
			Arc::downgrade(self.resource_collector_handle.as_ref().unwrap()),
		);
		let track = Owned::new(
			&self.resource_collector().handle(),
			Track::new_send_track(id, settings),
		);
		self.command_producer
			.push(MixerCommand::AddTrack(track).into())?;
		Ok(handle)
	}
/// Creates a mixer send track.
Creates a mixer send track.
Creates a mixer send track .
pub fn add_send_track(
		&mut self,
		settings: SendTrackSettings,
	) -> Result<SendTrackHandle, AddSendTrackError> {
		let id = settings.id.unwrap_or(SendTrackId::new());
		self.active_ids.add_send_track_id(id)?;
		let handle = SendTrackHandle::new(
			id,
			&settings,
			self.command_producer.clone(),
			self.sample_rate,
			Arc::downgrade(self.resource_collector_handle.as_ref().unwrap()),
		);
		let track = Owned::new(
			&self.resource_collector().handle(),
			Track::new_send_track(id, settings),
		);
		self.command_producer
			.push(MixerCommand::AddTrack(track).into())?;
		Ok(handle)
	}
pub fn add_send_track ( & mut self , settings : SendTrackSettings , ) -> Result < SendTrackHandle , AddSendTrackError > { let id = settings . id . unwrap_or ( SendTrackId :: new ( ) ) ; self . active_ids . add_send_track_id ( id ) ? ; let handle = SendTrackHandle :: new ( id , & settings , self . command_producer . clone ( ) , self . sample_rate , Arc :: downgrade ( self . resource_collector_handle . as_ref ( ) . unwrap ( ) ) , ) ; let track = Owned :: new ( & self . resource_collector ( ) . handle ( ) , Track :: new_send_track ( id , settings ) , ) ; self . command_producer . push ( MixerCommand :: AddTrack ( track ) . into ( ) ) ? ; Ok ( handle ) }
Creates a mixer send track.
Creates a mixer send track .
&mut self
settings
SendTrackSettings
&mut self
settings
SendTrackSettings