SoundPool playback is inverted?

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

SoundPool playback is inverted?

Postby newpath » Tue Jun 08, 2010 7:36 pm

Hello, I was wondering if anyone else had experienced this problem with SoundPool playback.

According to the SDK, the parameters are:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public final int play (int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate)
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


However, the left/right channels seem to be reversed for me, when I call it like this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. play(idx, 0f, 1f, 1, 0, 1f)
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


the sound plays on the left and if I swap the l/r parameter it plays on the right. I'm not sure if this a bug in the documentation, a bug in the SDK, or a bug in the emulator. Unfortunately I've lost my headphone adapter for my G1 so I can't test it on a real device.

If anybody has any further info it would be greatly appreciated!
newpath
Freshman
Freshman
 
Posts: 3
Joined: Tue Jun 08, 2010 7:23 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 9 guests