FMOD.Sound.getFormat C# (CSharp) Method

getFormat() public method

public getFormat ( SOUND_TYPE &type, SOUND_FORMAT &format, int &channels, int &bits ) : RESULT
type SOUND_TYPE
format SOUND_FORMAT
channels int
bits int
return RESULT
        public RESULT getFormat               (out SOUND_TYPE type, out SOUND_FORMAT format, out int channels, out int bits)
        {
            return FMOD_Sound_GetFormat(rawPtr, out type, out format, out channels, out bits);
        }
        public RESULT getNumSubSounds         (out int numsubsounds)

Usage Example

示例#1
0
        public FormatInfo?GetFormat()
        {
            SOUND_TYPE   t;
            SOUND_FORMAT f;
            int          channels, bits;

            if (!_fmodSound.getFormat(out t, out f, out channels, out bits).Check(Suppressions()))
            {
                return(null);
            }

            return(new FormatInfo(
                       EquivalentEnum <SOUND_TYPE, SoundType> .Cast(t),
                       EquivalentEnum <SOUND_FORMAT, SoundFormat> .Cast(f),
                       channels, bits
                       ));
        }
Sound