public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { ISoundDataSourceBase v = value as ISoundDataSourceBase; if (v == null || v.FilePath == null) { return(""); } return(v.FilePath); }
public ISoundVoice StartPlay3D(ISoundDataSourceBase soundSource, Vector3 position, bool playLooped = false, uint minDefferedStart = 0, uint maxDefferedStart = 0) { return(StartPlay3D(AddSoundSourceFromFile(soundSource.FilePath, soundSource.Alias, soundSource.Category, soundSource.isStreamed, soundSource.Power, soundSource.Priority), position, soundSource.Volume, playLooped, minDefferedStart, maxDefferedStart)); }
public ISoundVoice StartPlay2D(ISoundDataSourceBase soundSource, bool playLooped = false, uint fadeIn = 0, uint minDefferedStart = 0, uint maxDefferedStart = 0) { return(StartPlay2D(AddSoundSourceFromFile(soundSource.FilePath, soundSource.Alias, soundSource.Category, soundSource.isStreamed, soundSource.Power), soundSource.Volume, playLooped, fadeIn, minDefferedStart, maxDefferedStart)); }