Searched refs:FastMixerState (Results 1 – 11 of 11) sorted by relevance
35 FastMixerState::FastMixerState() : FastThreadState(), in FastMixerState() function in android::FastMixerState46 FastMixerState::~FastMixerState() in ~FastMixerState()51 unsigned FastMixerState::sMaxFastTracks = kDefaultFastTracks;54 pthread_once_t FastMixerState::sMaxFastTracksOnce = PTHREAD_ONCE_INIT;57 const char *FastMixerState::commandToString(Command command) in commandToString()64 case FastMixerState::MIX: return "MIX"; in commandToString()65 case FastMixerState::WRITE: return "WRITE"; in commandToString()66 case FastMixerState::MIX_WRITE: return "MIX_WRITE"; in commandToString()72 void FastMixerState::sMaxFastTracksInit() in sMaxFastTracksInit()
48 /*static*/ const FastMixerState FastMixer::sInitial;81 for (i = 0; i < FastMixerState::sMaxFastTracks; ++i) { in FastMixer()116 mPreIdle = *(const FastMixerState *)mCurrent; in onIdle()129 switch ((FastMixerState::Command) command) { in isSubClassCommand()130 case FastMixerState::MIX: in isSubClassCommand()131 case FastMixerState::WRITE: in isSubClassCommand()132 case FastMixerState::MIX_WRITE: in isSubClassCommand()143 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onStateChange()144 const FastMixerState * const previous = (const FastMixerState *) mPrevious; in onStateChange()195 mMixer = new AudioMixer(frameCount, mSampleRate, FastMixerState::sMaxFastTracks); in onStateChange()[all …]
30 typedef StateQueue<FastMixerState> FastMixerStateQueue;57 static const FastMixerState sInitial;59 FastMixerState mPreIdle; // copy of state before we went into idle60 int mFastTrackNames[FastMixerState::kMaxFastTracks];62 int mGenerations[FastMixerState::kMaxFastTracks];
53 struct FastMixerState : FastThreadState { struct54 FastMixerState();55 /*virtual*/ ~FastMixerState();
61 if (mCommand == FastMixerState::INITIAL) { in dump()72 FastMixerState::commandToString(mCommand), mWriteSequence, mFramesWritten, in dump()170 FastMixerState::sMaxFastTracks, trackMask); in dump()172 for (uint32_t i = 0; i < FastMixerState::sMaxFastTracks; ++i, trackMask >>= 1) { in dump()
26 template class StateQueue<FastMixerState>; // typedef FastMixerStateQueue
76 FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
74 FastMixerState.cpp \
1670 mFastTrackAvailMask(((1 << FastMixerState::sMaxFastTracks) - 1) & ~1), in PlaybackThread()2227 ALOG_ASSERT(0 < index && index < (int)FastMixerState::sMaxFastTracks); in removeTrack_l()3713 FastMixerState *state = sq->begin(); in MixerThread()3727 state->mCommand = FastMixerState::COLD_IDLE; in MixerThread()3776 FastMixerState *state = sq->begin(); in ~MixerThread()3777 if (state->mCommand == FastMixerState::COLD_IDLE) { in ~MixerThread()3783 state->mCommand = FastMixerState::EXIT; in ~MixerThread()3831 FastMixerState *state = sq->begin(); in threadLoop_write()3832 if (state->mCommand != FastMixerState::MIX_WRITE && in threadLoop_write()3834 if (state->mCommand == FastMixerState::COLD_IDLE) { in threadLoop_write()[all …]
1074 ALOG_ASSERT(fastIndex < FastMixerState::sMaxFastTracks); in getFastTrackUnderruns()
442 ALOG_ASSERT(0 < i && i < (int)FastMixerState::sMaxFastTracks); in Track()