[Android] AudioFormat.CHANNEL_CONFIGURATION_STEREO is deprecated

Sébastien Toque git at videolan.org
Fri Jun 22 07:04:57 CEST 2012


android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Jun 22 06:59:44 2012 +0200| [f4a214fdd236ad65138a4f4f2bf2477c05ef3ad5] | committer: Sébastien Toque

AudioFormat.CHANNEL_CONFIGURATION_STEREO is deprecated

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=f4a214fdd236ad65138a4f4f2bf2477c05ef3ad5
---

 vlc-android/src/org/videolan/vlc/Aout.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/Aout.java b/vlc-android/src/org/videolan/vlc/Aout.java
index 257af5e..2e040c6 100644
--- a/vlc-android/src/org/videolan/vlc/Aout.java
+++ b/vlc-android/src/org/videolan/vlc/Aout.java
@@ -42,11 +42,11 @@ public class Aout {
     public void init(int sampleRateInHz, int channels, int samples) {
         Log.d(TAG, sampleRateInHz + ", " + channels + ", " + samples + "=>" + channels * samples);
         int minBufferSize = AudioTrack.getMinBufferSize(sampleRateInHz,
-                                                        AudioFormat.CHANNEL_CONFIGURATION_STEREO,
+                                                        AudioFormat.CHANNEL_OUT_STEREO,
                                                         AudioFormat.ENCODING_PCM_16BIT);
         mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,
                                      sampleRateInHz,
-                                     AudioFormat.CHANNEL_CONFIGURATION_STEREO,
+                                     AudioFormat.CHANNEL_OUT_STEREO,
                                      AudioFormat.ENCODING_PCM_16BIT,
                                      Math.max(minBufferSize, channels * samples * 2),
                                      AudioTrack.MODE_STREAM);



More information about the Android mailing list