henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef MODULES_AUDIO_CODING_NETEQ_DECISION_LOGIC_FAX_H_ |
| 12 | #define MODULES_AUDIO_CODING_NETEQ_DECISION_LOGIC_FAX_H_ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 13 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 14 | #include "modules/audio_coding/neteq/decision_logic.h" |
| 15 | #include "rtc_base/constructormagic.h" |
Mirko Bonadei | 7120742 | 2017-09-15 13:58:09 +0200 | [diff] [blame^] | 16 | #include "typedefs.h" // NOLINT(build/include) |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | // Implementation of the DecisionLogic class for playout modes kPlayoutFax and |
| 21 | // kPlayoutOff. |
| 22 | class DecisionLogicFax : public DecisionLogic { |
| 23 | public: |
| 24 | // Constructor. |
| 25 | DecisionLogicFax(int fs_hz, |
Peter Kasting | dce40cf | 2015-08-24 14:52:23 -0700 | [diff] [blame] | 26 | size_t output_size_samples, |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 27 | NetEqPlayoutMode playout_mode, |
| 28 | DecoderDatabase* decoder_database, |
| 29 | const PacketBuffer& packet_buffer, |
| 30 | DelayManager* delay_manager, |
Henrik Lundin | 47b17dc | 2016-05-10 10:20:59 +0200 | [diff] [blame] | 31 | BufferLevelFilter* buffer_level_filter, |
| 32 | const TickTimer* tick_timer) |
| 33 | : DecisionLogic(fs_hz, |
| 34 | output_size_samples, |
| 35 | playout_mode, |
| 36 | decoder_database, |
| 37 | packet_buffer, |
| 38 | delay_manager, |
| 39 | buffer_level_filter, |
| 40 | tick_timer) {} |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 41 | |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 42 | protected: |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 43 | Operations GetDecisionSpecialized(const SyncBuffer& sync_buffer, |
| 44 | const Expand& expand, |
Peter Kasting | dce40cf | 2015-08-24 14:52:23 -0700 | [diff] [blame] | 45 | size_t decoder_frame_length, |
ossu | 7a37761 | 2016-10-18 04:06:13 -0700 | [diff] [blame] | 46 | const Packet* next_packet, |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 47 | Modes prev_mode, |
| 48 | bool play_dtmf, |
henrik.lundin | b1fb72b | 2016-05-03 08:18:47 -0700 | [diff] [blame] | 49 | bool* reset_decoder, |
| 50 | size_t generated_noise_samples) override; |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 51 | |
| 52 | private: |
henrikg | 3c089d7 | 2015-09-16 05:37:44 -0700 | [diff] [blame] | 53 | RTC_DISALLOW_COPY_AND_ASSIGN(DecisionLogicFax); |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | } // namespace webrtc |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 57 | #endif // MODULES_AUDIO_CODING_NETEQ_DECISION_LOGIC_FAX_H_ |