Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: talk/media/webrtc/fakewebrtcvoiceengine.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase onto cleanup change Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 WEBRTC_STUB(Initialize, ( 70 WEBRTC_STUB(Initialize, (
71 const webrtc::ProcessingConfig& processing_config)); 71 const webrtc::ProcessingConfig& processing_config));
72 72
73 WEBRTC_VOID_FUNC(SetExtraOptions, (const webrtc::Config& config)) { 73 WEBRTC_VOID_FUNC(SetExtraOptions, (const webrtc::Config& config)) {
74 experimental_ns_enabled_ = config.Get<webrtc::ExperimentalNs>().enabled; 74 experimental_ns_enabled_ = config.Get<webrtc::ExperimentalNs>().enabled;
75 } 75 }
76 76
77 WEBRTC_STUB_CONST(input_sample_rate_hz, ()); 77 WEBRTC_STUB_CONST(input_sample_rate_hz, ());
78 WEBRTC_STUB_CONST(proc_sample_rate_hz, ()); 78 WEBRTC_STUB_CONST(proc_sample_rate_hz, ());
79 WEBRTC_STUB_CONST(proc_split_sample_rate_hz, ()); 79 WEBRTC_STUB_CONST(proc_split_sample_rate_hz, ());
80 WEBRTC_STUB_CONST(num_input_channels, ()); 80 size_t num_input_channels() const override { return 0; }
perkj_webrtc 2016/01/07 09:32:32 I am not sure I understand the purpose of WEBRTC_S
Peter Kasting 2016/01/07 09:47:50 AFAICT it's just to reduce verbosity. I don't see
the sun 2016/01/07 12:27:59 Don't worry; this is going away. Don't create any
81 WEBRTC_STUB_CONST(num_output_channels, ()); 81 size_t num_output_channels() const override { return 0; }
82 WEBRTC_STUB_CONST(num_reverse_channels, ()); 82 size_t num_reverse_channels() const override { return 0; }
83 WEBRTC_VOID_STUB(set_output_will_be_muted, (bool muted)); 83 WEBRTC_VOID_STUB(set_output_will_be_muted, (bool muted));
84 WEBRTC_STUB(ProcessStream, (webrtc::AudioFrame* frame)); 84 WEBRTC_STUB(ProcessStream, (webrtc::AudioFrame* frame));
85 WEBRTC_STUB(ProcessStream, ( 85 WEBRTC_STUB(ProcessStream, (
86 const float* const* src, 86 const float* const* src,
87 size_t samples_per_channel, 87 size_t samples_per_channel,
88 int input_sample_rate_hz, 88 int input_sample_rate_hz,
89 webrtc::AudioProcessing::ChannelLayout input_layout, 89 webrtc::AudioProcessing::ChannelLayout input_layout,
90 int output_sample_rate_hz, 90 int output_sample_rate_hz,
91 webrtc::AudioProcessing::ChannelLayout output_layout, 91 webrtc::AudioProcessing::ChannelLayout output_layout,
92 float* const* dest)); 92 float* const* dest));
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 int playout_fail_channel_; 814 int playout_fail_channel_;
815 int send_fail_channel_; 815 int send_fail_channel_;
816 int recording_sample_rate_; 816 int recording_sample_rate_;
817 int playout_sample_rate_; 817 int playout_sample_rate_;
818 FakeAudioProcessing audio_processing_; 818 FakeAudioProcessing audio_processing_;
819 }; 819 };
820 820
821 } // namespace cricket 821 } // namespace cricket
822 822
823 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_ 823 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698