| View previous topic :: View next topic |
| Author |
Message |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Mon Dec 19, 2005 7:31 am Post subject: Reading the audio volume |
|
|
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 |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Dec 21, 2005 3:19 am Post subject: |
|
|
Anyone ? I really could use some hints here, if anyone knows how to do this. _________________ Br, Sandberg |
|
| Back to top |
|
 |
weak
Joined: 13 Jan 2005 Posts: 114 Location: Vienna, Austria
|
Posted: Wed Dec 21, 2005 8:31 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Wed Dec 21, 2005 9:34 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Dec 21, 2005 3:01 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
groepaz

Joined: 01 Sep 2005 Posts: 305
|
|
| Back to top |
|
 |
raf
Joined: 13 Oct 2005 Posts: 57
|
Posted: Fri Dec 23, 2005 1:40 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
groepaz

Joined: 01 Sep 2005 Posts: 305
|
Posted: Mon Jan 02, 2006 11:46 am Post subject: |
|
|
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". _________________ http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/ |
|
| Back to top |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Sun Feb 05, 2006 10:11 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
|