FMOD.Sound.getLength C# (CSharp) Method

getLength() public method

public getLength ( uint &length, TIMEUNIT lengthtype ) : RESULT
length uint
lengthtype TIMEUNIT
return RESULT
        public RESULT getLength               (out uint length, TIMEUNIT lengthtype)
        {
            return FMOD_Sound_GetLength(rawPtr, out length, lengthtype);
        }
        public RESULT getFormat               (out SOUND_TYPE type, out SOUND_FORMAT format, out int channels, out int bits)

Usage Example

示例#1
0
        public void SetProgress(float Value)
        {
            if (_channel == null || _sound == null)
            {
                return;
            }

            uint len = 0;

            _sound.getLength(out len, TIMEUNIT.MS);
            _channel.setPosition((uint)(len * Value), TIMEUNIT.MS);
        }
All Usage Examples Of FMOD.Sound::getLength
Sound