static private PlaySound ( SoundBuffer buffer, double pitch, double volume, OpenBveApi position, TrainManager train, int car, bool looped ) : SoundSource | ||
buffer | SoundBuffer | The sound buffer. |
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 the sound is attached to, or a null reference. |
car | int | The car in the train the sound is attached to. |
looped | bool | Whether to play the sound in a loop. |
return | SoundSource |