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 

Change audio volume

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



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Mar 30, 2009 3:27 am    Post subject: Change audio volume Reply with quote

Is is possible to change the audio vollume like when you press one of the vollume buttons?

if Yes: How can i do it?


PS. I searshed this whole forum but the only solution someone said was by emulating key-presses. If that's possible, can someone say how that works?
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Mar 30, 2009 4:39 am    Post subject: Reply with quote

I think the main volume is saved in the registry. Try searching in it.
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
MBx



Joined: 22 Mar 2009
Posts: 35

PostPosted: Mon Mar 30, 2009 6:49 am    Post subject: Reply with quote

an out of topic question,

is it possible to increase the volume more than it is possible by using keys?
Back to top
View user's profile Send private message
steffven



Joined: 19 May 2008
Posts: 28

PostPosted: Tue Mar 31, 2009 10:58 pm    Post subject: Re: Change audio volume Reply with quote

jojojoris wrote:
Is is possible to change the audio vollume like when you press one of the vollume buttons?

if Yes: How can i do it?


PS. I searshed this whole forum but the only solution someone said was by emulating key-presses. If that's possible, can someone say how that works?

http://psp.jim.sh/pspsdk-doc/pspaudiolib_8h.html#a793d0e240f59c0fb97c571fd86a5c77

I think pspAudioSetVolume (int channel, int left, int right) is what you searched for.

This is how to set the volume,
but anyone knows how to get the current volume?
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Apr 01, 2009 12:48 am    Post subject: Reply with quote

I found a solution yesterday.

Simple change the value in the registry.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
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