OpenBve.Sounds.SoundSource.SoundSource C# (CSharp) Méthode

SoundSource() private méthode

Creates a new sound source.
private SoundSource ( SoundBuffer buffer, double radius, double pitch, double volume, OpenBveApi position, TrainManager train, SoundType type, int car, bool looped )
buffer SoundBuffer The sound buffer.
radius double The effective sound radius.
pitch double The pitch change factor.
volume double The volume change factor.
position OpenBveApi The position. If a train and car are specified, the position is relative to the car, otherwise absolute.
train TrainManager The train this sound source is attached to, or a null reference.
type SoundType The type of sound
car int The car this sound source is attached to, or a null reference.
looped bool Whether this sound source plays in a loop.
			internal SoundSource(SoundBuffer buffer, double radius, double pitch, double volume, OpenBveApi.Math.Vector3 position, TrainManager.Train train, SoundType type, int car, bool looped)
			{
				this.Buffer = buffer;
				this.Radius = radius;
				this.Pitch = pitch;
				this.Volume = volume;
				this.Position = position;
				this.Train = train;
				this.Car = car;
				this.Looped = looped;
				this.State = SoundSourceState.PlayPending;
				this.OpenAlSourceName = 0;
				//Set sound type manually
				this.Type = type;
			}

Same methods

Sounds.SoundSource::SoundSource ( SoundBuffer buffer, double radius, double pitch, double volume, OpenBveApi position, TrainManager train, int car, bool looped )
Sounds.SoundSource