예제 #1
0
			// --- constructors ---
			/// <summary>Creates a new raw data origin.</summary>
			/// <param name="sound">The sound raw data.</param>
			internal RawOrigin(OpenBveApi.Sounds.Sound sound) {
				this.Sound = sound;
			}
예제 #2
0
파일: Hosts.cs 프로젝트: ian2009/OpenBVE
 /// <summary>Registers a sound and returns a handle to the sound.</summary>
 /// <param name="sound">The sound data.</param>
 /// <param name="handle">Receives a handle to the sound.</param>
 /// <returns>Whether loading the sound was successful.</returns>
 public override bool RegisterSound(OpenBveApi.Sounds.Sound sound, out OpenBveApi.Sounds.SoundHandle handle)
 {
     //handle = Sounds.RegisterBuffer(sound, 0.0); // TODO
     handle = null;
     return(true);
 }
예제 #3
0
 /// <summary>Gets the sound from this origin.</summary>
 /// <param name="sound">Receives the sound.</param>
 /// <returns>Whether the sound could be obtained successfully.</returns>
 public override bool GetSound(out OpenBveApi.Sounds.Sound sound)
 {
     sound = this.Sound;
     return(true);
 }
예제 #4
0
 /// <summary>Registers a sound and returns a handle to the sound.</summary>
 /// <param name="sound">The sound data.</param>
 /// <param name="handle">Receives a handle to the sound.</param>
 /// <returns>Whether loading the sound was successful.</returns>
 public override bool RegisterSound(OpenBveApi.Sounds.Sound sound, out OpenBveApi.Sounds.SoundHandle handle)
 {
     handle = Program.Sounds.RegisterBuffer(sound, 0.0);
     return(true);
 }
 // --- functions ---
 /// <summary>Gets the sound from this origin.</summary>
 /// <param name="sound">Receives the sound.</param>
 /// <returns>Whether the sound could be obtained successfully.</returns>
 internal abstract bool GetSound(out OpenBveApi.Sounds.Sound sound);
 // --- constructors ---
 /// <summary>Creates a new raw data origin.</summary>
 /// <param name="sound">The sound raw data.</param>
 internal RawOrigin(OpenBveApi.Sounds.Sound sound)
 {
     this.Sound = sound;
 }