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

Side by Side Diff: talk/app/webrtc/mediastreaminterface.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile 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
« no previous file with comments | « no previous file | talk/app/webrtc/rtpsender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 protected: 144 protected:
145 virtual ~VideoTrackInterface() {} 145 virtual ~VideoTrackInterface() {}
146 }; 146 };
147 147
148 // Interface for receiving audio data from a AudioTrack. 148 // Interface for receiving audio data from a AudioTrack.
149 class AudioTrackSinkInterface { 149 class AudioTrackSinkInterface {
150 public: 150 public:
151 virtual void OnData(const void* audio_data, 151 virtual void OnData(const void* audio_data,
152 int bits_per_sample, 152 int bits_per_sample,
153 int sample_rate, 153 int sample_rate,
154 int number_of_channels, 154 size_t number_of_channels,
155 size_t number_of_frames) = 0; 155 size_t number_of_frames) = 0;
156 156
157 protected: 157 protected:
158 virtual ~AudioTrackSinkInterface() {} 158 virtual ~AudioTrackSinkInterface() {}
159 }; 159 };
160 160
161 // AudioSourceInterface is a reference counted source used for AudioTracks. 161 // AudioSourceInterface is a reference counted source used for AudioTracks.
162 // The same source can be used in multiple AudioTracks. 162 // The same source can be used in multiple AudioTracks.
163 class AudioSourceInterface : public MediaSourceInterface { 163 class AudioSourceInterface : public MediaSourceInterface {
164 public: 164 public:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; 267 virtual bool RemoveTrack(AudioTrackInterface* track) = 0;
268 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; 268 virtual bool RemoveTrack(VideoTrackInterface* track) = 0;
269 269
270 protected: 270 protected:
271 virtual ~MediaStreamInterface() {} 271 virtual ~MediaStreamInterface() {}
272 }; 272 };
273 273
274 } // namespace webrtc 274 } // namespace webrtc
275 275
276 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ 276 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/rtpsender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698