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

Unified Diff: webrtc/modules/audio_device/android/audio_track_jni.h

Issue 2499613002: Adds stereo support for Java-based input and output audio on Android (Closed)
Patch Set: Adds support for separate settings for input and output Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/android/audio_track_jni.h
diff --git a/webrtc/modules/audio_device/android/audio_track_jni.h b/webrtc/modules/audio_device/android/audio_track_jni.h
index 2c78a5901c5cad77c64c1fc025c99aefb9625870..23dfe8eea355a41be711b012c8a37a7949be8c1d 100644
--- a/webrtc/modules/audio_device/android/audio_track_jni.h
+++ b/webrtc/modules/audio_device/android/audio_track_jni.h
@@ -139,6 +139,11 @@ class AudioTrackJni {
// Example: 480 for 48000 Hz or 441 for 44100 Hz.
size_t frames_per_buffer_;
+ // Number of bytes per audio frame assuming that all sampels are 16-bit linear
+ // PCM samples.
+ // Example: 4 bytes for stereo and 2 bytes for mono.
+ size_t bytes_per_frame_;
magjed_webrtc 2016/11/16 13:42:09 Do we need to store this as a member variable, or
henrika_webrtc 2016/11/16 13:56:38 Done.
+
bool initialized_;
bool playing_;
« no previous file with comments | « webrtc/modules/audio_device/android/audio_record_jni.cc ('k') | webrtc/modules/audio_device/android/audio_track_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698