| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 : DecisionLogic(fs_hz, | 33 : DecisionLogic(fs_hz, |
| 34 output_size_samples, | 34 output_size_samples, |
| 35 playout_mode, | 35 playout_mode, |
| 36 decoder_database, | 36 decoder_database, |
| 37 packet_buffer, | 37 packet_buffer, |
| 38 delay_manager, | 38 delay_manager, |
| 39 buffer_level_filter, | 39 buffer_level_filter, |
| 40 tick_timer) {} | 40 tick_timer) {} |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 // Returns the operation that should be done next. |sync_buffer| and |expand| | |
| 44 // are provided for reference. |decoder_frame_length| is the number of samples | |
| 45 // obtained from the last decoded frame. If there is a packet available, the | |
| 46 // packet header should be supplied in |packet_header|; otherwise it should | |
| 47 // be NULL. The mode resulting form the last call to NetEqImpl::GetAudio is | |
| 48 // supplied in |prev_mode|. If there is a DTMF event to play, |play_dtmf| | |
| 49 // should be set to true. The output variable |reset_decoder| will be set to | |
| 50 // true if a reset is required; otherwise it is left unchanged (i.e., it can | |
| 51 // remain true if it was true before the call). | |
| 52 Operations GetDecisionSpecialized(const SyncBuffer& sync_buffer, | 43 Operations GetDecisionSpecialized(const SyncBuffer& sync_buffer, |
| 53 const Expand& expand, | 44 const Expand& expand, |
| 54 size_t decoder_frame_length, | 45 size_t decoder_frame_length, |
| 55 const RTPHeader* packet_header, | 46 const Packet* next_packet, |
| 56 Modes prev_mode, | 47 Modes prev_mode, |
| 57 bool play_dtmf, | 48 bool play_dtmf, |
| 58 bool* reset_decoder, | 49 bool* reset_decoder, |
| 59 size_t generated_noise_samples) override; | 50 size_t generated_noise_samples) override; |
| 60 | 51 |
| 61 private: | 52 private: |
| 62 RTC_DISALLOW_COPY_AND_ASSIGN(DecisionLogicFax); | 53 RTC_DISALLOW_COPY_AND_ASSIGN(DecisionLogicFax); |
| 63 }; | 54 }; |
| 64 | 55 |
| 65 } // namespace webrtc | 56 } // namespace webrtc |
| 66 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECISION_LOGIC_FAX_H_ | 57 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECISION_LOGIC_FAX_H_ |
| OLD | NEW |