// --- 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; }
/// <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); }
/// <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); }
/// <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);