Reading the audio volume

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Reading the audio volume

Post by sandberg »

Hi,

Does anybody know if it is possible to read the volume level on the PSP ? I haven't been able to find anything from the pspsdk or otherwhere on the net.
Br, Sandberg
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

Anyone ? I really could use some hints here, if anyone knows how to do this.
Br, Sandberg
weak
Posts: 114
Joined: Thu Jan 13, 2005 8:31 pm
Location: Vienna, Austria

Post by weak »

as far as i know you can't read the volume level. but that's not a problem at all, you just have to set the volume as you like it at the start of your app.

the volume buttons on the psp only adjust the overall volume level and you can still set the volume for each hardware channel as you like.
you can set the volume with sceAudioChangeChannelVolume(int channel, int leftvol, int rightvol). 32768 (0x8000) is the max volume.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

also worth noting on a 2.0 psp
the overall audio is always reset to max (0x8000)
on psp startup so you should stray away
from using the maximum volume for your
app on boot ....16,384 (0x4000) is a good base volume
per channel

OT: on 2.0 psp when an app is put into
sleep mode a number of problem are present
including the sound driver not even initializing
have any others experienced sound problems
on 2.0 as well?

thanx in advance
cheers ;)
10011011 00101010 11010111 10001001 10111010
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

Thanks,

I was interested in also being able to read the volume level being set from the volume buttons. It is done on the home menu, so I just guessed that it was possible somehow.

If I just display the volume set by the application, it will not be shown correct when the user, starts to set it by using the volume buttons.
Br, Sandberg
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

i guess the idea is that an app generally doesnt alter the global volume, which makes sense actually.
raf
Posts: 57
Joined: Thu Oct 13, 2005 7:38 am

Post by raf »

groepaz wrote:i guess the idea is that an app generally doesnt alter the global volume, which makes sense actually.
Right, but we don't want to alter the global volume, just display the current volume to the user when they press the volume buttons; this is for PSPRadio, and as being an audio application, it would be natural to be able to give volume feedback to the user; just didn't know how to query it; any ideas?

Raf.
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

no idea.... i *think* that the "proper" way to do this is registering some kind of callback simelar to the home button callback which will then call some kernel/system function that displays the volume "the psp way".
Fanjita
Posts: 217
Joined: Wed Sep 28, 2005 9:31 am

Post by Fanjita »

Possibly something in sceImpose ?
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Post Reply