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

Side by Side Diff: webrtc/modules/audio_mixer/include/audio_mixer_defines.h

Issue 2221443002: Changed mixing api and removed resampler (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Described Mix args in comments. Created 4 years, 4 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 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 28 matching lines...) Expand all
39 // classes are allowed to return the same AudioFrame pointer on 39 // classes are allowed to return the same AudioFrame pointer on
40 // different calls. The pointer must stay valid until the next 40 // different calls. The pointer must stay valid until the next
41 // mixing call or until this audio source is disconnected from the 41 // mixing call or until this audio source is disconnected from the
42 // mixer. 42 // mixer.
43 virtual AudioFrameWithMuted GetAudioFrameWithMuted(int32_t id, 43 virtual AudioFrameWithMuted GetAudioFrameWithMuted(int32_t id,
44 int sample_rate_hz) = 0; 44 int sample_rate_hz) = 0;
45 45
46 // Returns true if the participant was mixed this mix iteration. 46 // Returns true if the participant was mixed this mix iteration.
47 bool IsMixed() const; 47 bool IsMixed() const;
48 48
49 // This function specifies the sampling frequency needed for the AudioFrame
50 // for future GetAudioFrame(..) calls.
51 virtual int32_t NeededFrequency(int32_t id) const = 0;
52
53 NewMixHistory* _mixHistory; 49 NewMixHistory* _mixHistory;
54 50
55 protected: 51 protected:
56 MixerAudioSource(); 52 MixerAudioSource();
57 virtual ~MixerAudioSource(); 53 virtual ~MixerAudioSource();
58 }; 54 };
59 } // namespace webrtc 55 } // namespace webrtc
60 56
61 #endif // WEBRTC_MODULES_AUDIO_MIXER_INCLUDE_AUDIO_MIXER_DEFINES_H_ 57 #endif // WEBRTC_MODULES_AUDIO_MIXER_INCLUDE_AUDIO_MIXER_DEFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_mixer/audio_mixer.cc ('k') | webrtc/modules/audio_mixer/include/new_audio_conference_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698