Audio files in PSP

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

Moderators: cheriff, TyRaNiD

Post Reply
katsumoto
Posts: 5
Joined: Thu Jul 27, 2006 6:30 am

Audio files in PSP

Post by katsumoto »

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!
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

Post by ADePSP »

So would I... If anyone knows how to control the volume so you could do fade out effects that would be great too...
katsumoto
Posts: 5
Joined: Thu Jul 27, 2006 6:30 am

Post by katsumoto »

the volume is simple to manage, just use

the max value of volume is 0x8000

in pspaudiolib.h

pspAudioSetVolume(channel, volume left, volume right);
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

Post by ADePSP »

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
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

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? ... highlight=
Post Reply