forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading the audio volume

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Mon Dec 19, 2005 7:31 am    Post subject: Reading the audio volume Reply with quote

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
View user's profile Send private message
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Dec 21, 2005 3:19 am    Post subject: Reply with quote

Anyone ? I really could use some hints here, if anyone knows how to do this.
_________________
Br, Sandberg
Back to top
View user's profile Send private message
weak



Joined: 13 Jan 2005
Posts: 114
Location: Vienna, Austria

PostPosted: Wed Dec 21, 2005 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed Dec 21, 2005 9:34 am    Post subject: Reply with quote

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
View user's profile Send private message
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Dec 21, 2005 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Thu Dec 22, 2005 9:40 pm    Post subject: Reply with quote

i guess the idea is that an app generally doesnt alter the global volume, which makes sense actually.
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
raf



Joined: 13 Oct 2005
Posts: 57

PostPosted: Fri Dec 23, 2005 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Mon Jan 02, 2006 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Sun Feb 05, 2006 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group