android
  #1  
Old 04-28-2010, 06:43 PM
x130844 x130844 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 11
Help Bug in the API doc?

Hi Guys,
the developer doc says to use
1) Stereo
2) 16bit microsoft PCM wav
3) 44.1khz

Yet their sample apps provided with the ADK use samples that don't follow their own specs.
What gives?

PS: I am experiencing the Audio bug where the audio works, then diseapear step by step until totally mute. (via headphones)
(this was reported by someone else too).
(I use the firmware 1.20.08)
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 04-29-2010, 05:43 AM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

You're right, the wave from the app "sounddemo" is 11025Hz mono.
I guess that app will crash the player. (didn't try it)

It's true that the player only supports 44.1KHz 16 bit stereo waves, I've found that out the hard way a few times already

To avoid the audiobug, maybe this helps:
Set the volume to a specific level in the loop, so that is is executed all the time:
Code:
if audio.volume()~=25 then audio.volume(25) end
or if that doesn't help, just:
Code:
audio.volume(25)
Reply With Quote

  #3  
Old 04-29-2010, 01:00 PM
x130844 x130844 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 11
Default bug in firmware 1.20.08 with audio

Actually, i did some tests.

volume setting at 25 is BAD in the latest firmware. The sound will lower until pretty much mute. (the behavior is only through the headphones).

I found that the threshold for volume with headphones is 14.
It then works as documented.
Starting at 15 and up. the headphones will drop the volume exponentially. it's weird and it's a bug in the firmware. (latest one, 1.20.08)

As far as sounds that aren't 16bit PCM, 44khz stereo. They actually work, so i am thinking that the API doc is "recommended" and not absolutely necessary for it to work. i got some 11khz MONO sound to work fine witout crashing.


Quote:
Originally Posted by Brett_val View Post
You're right, the wave from the app "sounddemo" is 11025Hz mono.
I guess that app will crash the player. (didn't try it)

It's true that the player only supports 44.1KHz 16 bit stereo waves, I've found that out the hard way a few times already

To avoid the audiobug, maybe this helps:
Set the volume to a specific level in the loop, so that is is executed all the time:
Code:
if audio.volume()~=25 then audio.volume(25) end
or if that doesn't help, just:
Code:
audio.volume(25)
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:30 PM.