コード例 #1
0
ファイル: SoundPlayer.cs プロジェクト: gucongyi/SoundDemo
        /// <summary>
        /// Gets the volume of the specified sound.
        /// </summary>
        public float GetVolume(int soundEventID)
        {
            float result = -1f;

            if (CurrentlyPlayingSoundEvent(soundEventID))
            {
                SoundEvent soundEvent = GetSoundEventFromID(soundEventID);
                result = soundEvent.GetVolume();
            }

            return(result);
        }