FMOD.Sound.getOpenState C# (CSharp) Method

getOpenState() public method

public getOpenState ( OPENSTATE &openstate, uint &percentbuffered, bool &starving, bool &diskbusy ) : RESULT
openstate OPENSTATE
percentbuffered uint
starving bool
diskbusy bool
return RESULT
        public RESULT getOpenState            (out OPENSTATE openstate, out uint percentbuffered, out bool starving, out bool diskbusy)
        {
            return FMOD_Sound_GetOpenState(rawPtr, out openstate, out percentbuffered, out starving, out diskbusy);
        }
        public RESULT readData                (IntPtr buffer, uint lenbytes, out uint read)

Usage Example

示例#1
0
 // Update is called once per frame
 void Update()
 {
     r = radioStream.getOpenState(out state, out percentbuffered, out starving, out diskbusy);
     Debug.Log("State: " + state + ", %buffered: " + percentbuffered + ", starving?: " + starving + ", diskbusy?: " + diskbusy + " " + r);
     if (r == FMOD.RESULT.ERR_FILE_COULDNOTSEEK)
     {
         Destroy(gameObject);
     }
 }
All Usage Examples Of FMOD.Sound::getOpenState
Sound