Ejemplo n.º 1
0
 //
 // @fn SILVER_ERROR silverGetState(SilverPlayer* p, SILVER_STATE* pState)
 // @brief Return current internal state of player
 // @param \pPlayer Pointer to player object
 // @param \pState enumeration that contains current state
 // @return SILVER_SUCCESS on function success, other error code on failure.
 // Note:
 // currentState is only valid between calls to silverUpdate(), after calling silverUpdate()
 // you must retrieve new state.
 public SILVER_ERROR GetState(out SILVER_STATE State)
 {
     State = SILVER_STATE.SILVER_STATE_UNKNOWN;
     if (m_Instance == IntPtr.Zero)
     {
         return(SILVER_ERROR.SILVER_NOT_EXIST);
     }
     return(silverGetState(m_Instance, out State));
 }
Ejemplo n.º 2
0
 private static extern SILVER_ERROR silverGetState(IntPtr s, out SILVER_STATE state);