Example #1
0
        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);
        }
Example #2
0
 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));
 }
Example #3
0
 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));
 }