Log in or register to post comments

Audio broken when tracking

November 18, 2012 - 6:07pm #1

Hi,

I have a 3D scene with audio encoded as ogg.  The audio is sampled as 22.05KHz, 16bit PCM, mono.  When the scene is rendered without turning on tracking ( call stopCamera ), it works ok.  The audio is continuous and clear.   When I turn on tracking ( call startCamera ), the audio starts broken and has noises. I  notice that QCAR enables MediaPlayer.  I would like to know how to disable the Mediaplayer in QCAR.

Thanks,

Jason

Audio broken when tracking

November 20, 2012 - 3:14am #6

I further investigated the issue with our engineering team; the only realistic explanation of this behaviour is that there is a high CPU load caused by the simultaneous activation of Vuforia tracking and Audio playback; 

the different behaviour that you see on ICS can be explained by one of these two reasons (or a combination of both):

- your devices running on ICS have faster CPUs than the ones on Gingerbread;

- ICS has a significantly better support for multi-threading and also for multi-cores processing (this is likely to be the most reasonable cause of your issue on Gingerbread);

 

Audio broken when tracking

November 19, 2012 - 10:16am #5

Hi Jason, Vuforia is not using Mediaplayer as far as I know, but only the Android Camera API; the MediaPlayer is used in the VideoPlayback sample, but that's  sample code specific usage, not from Vuforia.

Therefore I don't see any means of disabling it.

On the other hand, if you are using the MediaPlayer for you audio file playback, there might be some kind of resource contention between Vuforia and the MediaPlayer that you use.

Audio broken when tracking

November 19, 2012 - 8:53am #4

Thanks Jason

I have notified the Android team and they will investigate and revert back when there is more info.

cheers

N

Audio broken when tracking

November 19, 2012 - 6:49am #3

Hi Nalin,

 

This happens on Dell Streak 5 and HTC Desire HD, both are running Gingerbread.

I tested on other platform such as Dell Streak 10 with HoneyComb and Samsung GT-P6800 with ICS, both are ok.

 

Thanks,

Jason

Audio broken when tracking

November 19, 2012 - 6:01am #2

Hi Jason,

Could you please tell us which platform and which device this is on?

Are there any other devices you can try this with?

 

N

Log in or register to post comments