Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ | 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ |
| 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ | 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void StopPlayback(); | 51 void StopPlayback(); |
| 52 void StopRecording(); | 52 void StopRecording(); |
| 53 | 53 |
| 54 // Execute the next active transmit instruction. | 54 // Execute the next active transmit instruction. |
| 55 void ExecuteNextTransmit(); | 55 void ExecuteNextTransmit(); |
| 56 // Execute the next active receive instruction. | 56 // Execute the next active receive instruction. |
| 57 void ExecuteNextReceive(); | 57 void ExecuteNextReceive(); |
| 58 | 58 |
| 59 AudioDirectiveList directive_list_; | 59 AudioDirectiveList directive_list_inaudible_; |
|
Charlie
2014/08/08 22:24:14
Call them just inaudible_directives_ and audible_d
rkc
2014/08/09 06:58:54
That is an incorrect description. These aren't ina
| |
| 60 AudioDirectiveList directive_list_audible_; | |
| 60 | 61 |
| 61 // The next two pointers are self-deleting. When we call Finalize on them, | 62 // The next two pointers are self-deleting. When we call Finalize on them, |
| 62 // they clean themselves up on the Audio thread. | 63 // they clean themselves up on the Audio thread. |
| 63 AudioPlayer* player_; | 64 AudioPlayer* player_; |
| 64 AudioRecorder* recorder_; | 65 AudioRecorder* recorder_; |
| 65 | 66 |
| 66 AudioRecorder::DecodeSamplesCallback decode_cb_; | 67 AudioRecorder::DecodeSamplesCallback decode_cb_; |
| 67 | 68 |
| 68 base::OneShotTimer<AudioDirectiveHandler> stop_playback_timer_; | 69 base::OneShotTimer<AudioDirectiveHandler> stop_playback_timer_; |
| 69 base::OneShotTimer<AudioDirectiveHandler> stop_recording_timer_; | 70 base::OneShotTimer<AudioDirectiveHandler> stop_recording_timer_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); | 72 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace copresence | 75 } // namespace copresence |
| 75 | 76 |
| 76 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ | 77 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ |
| OLD | NEW |