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 

Audio files in PSP

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



Joined: 27 Jul 2006
Posts: 5

PostPosted: Thu Jul 27, 2006 6:35 am    Post subject: Audio files in PSP Reply with quote

Hello,

i would like to know how to set the position of a stream using libmad:

how to rewind, go forward, set position etc..

I would like also how to load a wave file and play it! Thanks much for the help!
Back to top
View user's profile Send private message
ADePSP



Joined: 13 Jul 2006
Posts: 58

PostPosted: Thu Jul 27, 2006 6:53 am    Post subject: Reply with quote

So would I... If anyone knows how to control the volume so you could do fade out effects that would be great too...
Back to top
View user's profile Send private message
katsumoto



Joined: 27 Jul 2006
Posts: 5

PostPosted: Thu Jul 27, 2006 7:42 am    Post subject: Reply with quote

the volume is simple to manage, just use

the max value of volume is 0x8000

in pspaudiolib.h

pspAudioSetVolume(channel, volume left, volume right);
Back to top
View user's profile Send private message
ADePSP



Joined: 13 Jul 2006
Posts: 58

PostPosted: Thu Jul 27, 2006 9:08 am    Post subject: Reply with quote

katsumoto wrote:
the volume is simple to manage, just use

the max value of volume is 0x8000

in pspaudiolib.h

pspAudioSetVolume(channel, volume left, volume right);


Cool, I imagine there is a pspAudioGetVolume too so I can set the volume back to the user's preference when I exit...

Thanks man...
ADe
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Jul 27, 2006 10:59 pm    Post subject: Reply with quote

ADePSP wrote:
katsumoto wrote:
the volume is simple to manage, just use

the max value of volume is 0x8000

in pspaudiolib.h

pspAudioSetVolume(channel, volume left, volume right);


Cool, I imagine there is a pspAudioGetVolume too so I can set the volume back to the user's preference when I exit...

Thanks man...
ADe


Well, actually there isn't any volume getting function...
Look at:
http://forums.ps2dev.org/viewtopic.php?t=4394&highlight=
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