getOpenState() public method

public getOpenState ( OPENSTATE &openstate, uint &percentbuffered, bool &starving, bool &diskbusy ) : RESULT
openstate OPENSTATE
percentbuffered uint
starving bool
diskbusy bool
return RESULT
示例#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);
     }
 }
示例#2
0
        public OpenStateInfo?GetOpenState()
        {
            OPENSTATE oState;
            uint      percentBuffered;
            bool      starving;
            bool      diskBusy;

            if (!_fmodSound.getOpenState(out oState, out percentBuffered, out starving, out diskBusy).Check(Suppressions()))
            {
                return(null);
            }

            return(new OpenStateInfo(
                       EquivalentEnum <OPENSTATE, OpenState> .Cast(oState),
                       percentBuffered,
                       starving,
                       diskBusy
                       ));
        }