• Home
  • Raw
  • Download

Lines Matching refs:AudioProtocol

32       mDownloadHandler(new CommandHandler(*this, (int)AudioProtocol::ECmdDownload)),  in RemoteAudio()
33 mPlaybackHandler(new CommandHandler(*this, (int)AudioProtocol::ECmdStartPlayback)), in RemoteAudio()
34 mRecordingHandler(new CommandHandler(*this, (int)AudioProtocol::ECmdStartRecording)), in RemoteAudio()
35 mDeviceInfoHandler(new CommandHandler(*this, (int)AudioProtocol::ECmdGetDeviceInfo)), in RemoteAudio()
38 mCmds[AudioProtocol::ECmdDownload - AudioProtocol::ECmdStart] = new CmdDownload(socket); in RemoteAudio()
39 mCmds[AudioProtocol::ECmdStartPlayback - AudioProtocol::ECmdStart] = in RemoteAudio()
41 mCmds[AudioProtocol::ECmdStopPlayback - AudioProtocol::ECmdStart] = in RemoteAudio()
43 mCmds[AudioProtocol::ECmdStartRecording - AudioProtocol::ECmdStart] = in RemoteAudio()
45 mCmds[AudioProtocol::ECmdStopRecording - AudioProtocol::ECmdStart] = in RemoteAudio()
47 mCmds[AudioProtocol::ECmdGetDeviceInfo - AudioProtocol::ECmdStart] = in RemoteAudio()
53 for (int i = 0; i < (AudioProtocol::ECmdLast - AudioProtocol::ECmdStart); i++) { in ~RemoteAudio()
105 uint32_t data[AudioProtocol::REPLY_HEADER_SIZE/sizeof(uint32_t)]; in handlePacket()
106 AudioProtocol::CommandId id; in handlePacket()
107 if (!AudioProtocol::handleReplyHeader(mSocket, data, id)) { in handlePacket()
111 if (id == AudioProtocol::ECmdDownload) { in handlePacket()
113 } else if (id == AudioProtocol::ECmdStartPlayback) { in handlePacket()
115 } else if (id == AudioProtocol::ECmdStartRecording) { in handlePacket()
117 } else if (id == AudioProtocol::ECmdGetDeviceInfo) { in handlePacket()
124 bool result = mCmds[id - AudioProtocol::ECmdStart]->handleReply(data, param); in handlePacket()
179 AudioProtocol::CommandId id) in doStop()
268 doStop(mPlaybackHandler, AudioProtocol::ECmdStopPlayback); in stopPlayback()
308 doStop(mRecordingHandler, AudioProtocol::ECmdStopRecording); in stopRecording()
346 case AudioProtocol::ECmdDownload: in handleMessage()
347 case AudioProtocol::ECmdStartPlayback: in handleMessage()
348 case AudioProtocol::ECmdStopPlayback: in handleMessage()
349 case AudioProtocol::ECmdStartRecording: in handleMessage()
350 case AudioProtocol::ECmdStopRecording: in handleMessage()
351 case AudioProtocol::ECmdGetDeviceInfo: in handleMessage()
353 mResult = (mThread.mCmds[message.what - AudioProtocol::ECmdStart]) \ in handleMessage()
356 if ((message.what != AudioProtocol::ECmdDownload) && in handleMessage()
357 (message.what != AudioProtocol::ECmdGetDeviceInfo) ) { in handleMessage()