Lines Matching refs:state
22 static SLresult IPlay_SetPlayState(SLPlayItf self, SLuint32 state)
26 switch (state) {
40 if (state != oldState) {
44 // We are comparing the old state (left) vs. new state (right).
45 // Note that the old state is 3 bits wide, but new state is only 2 bits wide.
46 // That is why the old state is on the left and new state is on the right.
47 switch ((oldState << 2) | state) {
52 // no-op, and unreachable due to earlier "if (state != oldState)"
58 // set enqueue attribute if queue is non-empty and state becomes PLAYING
69 thiz->mState = state;
88 // unexpected state
99 thiz->mState = state;
104 // SL_LOGD("set play state %d", state);
126 SLuint32 state = thiz->mState;
130 switch (state) {
136 state = SL_PLAYSTATE_STOPPED;
140 state = SL_PLAYSTATE_STOPPED;
145 *pState = state;
161 // even though this is a getter, it can modify state due to caching