Advertising (This ad goes away for registered users. You can Login or Register)

[LIB] Playing .wav and .ogg files

Rejuvenate is a native homebrew platform for PS Vita. Read more about Rejuvenate here.
Locked
Drakon
Posts: 97
Joined: Thu Mar 17, 2011 8:17 pm
Location: Poland
Contact:

[LIB] Playing .wav and .ogg files

Post by Drakon »

Hey. To anyone still active here :D

Here https://github.com/DrakonPL/VitaSound is very very simple example of playing wav. and .ogg files on vita.

It's my test code. For some strange reason streaming from file is working but loading from memory not... It's strange because the same code works fine in my bigger project... I just wanted to share it. I had some problems with Vita and will try to find today why loading from memory is not working.

Cheers :)
Advertising
Ruben_Wolfe
Posts: 158
Joined: Sat Aug 09, 2014 9:33 pm

Re: [LIB] Playing .wav and .ogg files

Post by Ruben_Wolfe »

As always, nice work! :)
Advertising
MisterAlex
Posts: 13
Joined: Mon Jul 30, 2012 7:29 am
Location: Paris
Contact:

Re: [LIB] Playing .wav and .ogg files

Post by MisterAlex »

Thanks for your sharing !
--------------------------------------------------------
https://twitter.com/MisterAl3x follow me !
Drakon
Posts: 97
Joined: Thu Mar 17, 2011 8:17 pm
Location: Poland
Contact:

Re: [LIB] Playing .wav and .ogg files

Post by Drakon »

Fixed.... Took some time but it was one of this nasty copy/paste errors that are hart to find.
Camxpspx123
Banned
Posts: 261
Joined: Sun Jul 15, 2012 6:23 pm

Re: [LIB] Playing .wav and .ogg files

Post by Camxpspx123 »

Could you add volume support ? thanks ! :idea:
romain337
Posts: 219
Joined: Wed Feb 29, 2012 10:42 am
Location: France
Contact:

Re: [LIB] Playing .wav and .ogg files

Post by romain337 »

Well, this message is kind of useless, but anyway:

I don't think I'll find the time to use it in Flood-It (I have to setup the PSVITA and computer from zero to dev again), but thank you. Your work is appreciated. I hope you spent some good time developping on vita :)
MyLegGuy
Posts: 140
Joined: Sat May 16, 2015 10:40 pm
Location: United States

Re: [LIB] Playing .wav and .ogg files

Post by MyLegGuy »

How do I play the same sound twice?
After I've played a sound (using PlayAudio) once I can't play it again, even after calling StopAudio.

Here's my code:
http://pastebin.com/RQQkB5V7
please reply
Locked

Return to “Rejuvenate”