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 

Sound output

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



Joined: 13 Jan 2005
Posts: 73

PostPosted: Sun May 15, 2005 5:27 am    Post subject: Sound output Reply with quote

A demo program to output sound can be downloaded from:
http://anon.ug.to/sec/index.html

Enjoy! :)

API's not yet documented... Briefly,

sceAudio_2 sceAudio/0x13F592BC Output sound, blocking
sceAudio_3 sceAudio/0x5EC81C55 Initialize channel and allocate buffer
sceAudio_4 sceAudio/0x6FC46853 Terminate channel and deallocate buffer
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sun May 15, 2005 6:00 am    Post subject: Reply with quote

nice
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun May 15, 2005 6:16 am    Post subject: Reply with quote

word
Back to top
View user's profile Send private message Visit poster's website
Thanhda



Joined: 09 Apr 2005
Posts: 331
Location: Canada

PostPosted: Sun May 15, 2005 6:25 am    Post subject: Reply with quote

damnit. need 1.o_0
_________________
There are 10 types of people in the world: Those who understand binary, and those who don't...
Back to top
View user's profile Send private message Visit poster's website
PinkPeach



Joined: 02 Mar 2005
Posts: 23

PostPosted: Sun May 15, 2005 6:26 am    Post subject: Reply with quote

nice nice nice Nem, i cannot try it sadly (T_T)
Don t you have problems (like sound playing with static and such) ?

きゃ~~~ (( ( (ヽ(;^^)/


Last edited by PinkPeach on Sun May 15, 2005 6:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Orion_



Joined: 27 Jan 2005
Posts: 69

PostPosted: Sun May 15, 2005 6:27 am    Post subject: Reply with quote

can't test but seems nice :)
nem > from where come the bg1.wav sound ?!
edit: ok I saw the sources ^^


Last edited by Orion_ on Sun May 15, 2005 6:35 am; edited 1 time in total
Back to top
View user's profile Send private message
omlette



Joined: 16 Mar 2005
Posts: 5

PostPosted: Sun May 15, 2005 6:28 am    Post subject: Reply with quote

I want 1.0... :(
Keep up the great work, nem.
Back to top
View user's profile Send private message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Sun May 15, 2005 6:38 am    Post subject: Reply with quote

Nice work nem, just tested it and it works great.... keep it up!

Jeff
Back to top
View user's profile Send private message
Thanhda



Joined: 09 Apr 2005
Posts: 331
Location: Canada

PostPosted: Sun May 15, 2005 9:53 am    Post subject: Reply with quote

damn crashes pspe.
_________________
There are 10 types of people in the world: Those who understand binary, and those who don't...
Back to top
View user's profile Send private message Visit poster's website
Awhite



Joined: 23 Feb 2005
Posts: 55

PostPosted: Sun May 15, 2005 11:25 am    Post subject: Reply with quote

grr i used to have a psp 1.0 :'( Keep up the good work.
_________________
Ioannis KarAvas
Back to top
View user's profile Send private message
nem



Joined: 13 Jan 2005
Posts: 73

PostPosted: Sun May 22, 2005 9:56 pm    Post subject: Reply with quote

Found function names of sceAudio.
Code:
API name for sceAudio
        STUB_FUNC       0xCB2E439E,sceAudioSetChannelDataLen
        STUB_FUNC       0x13F592BC,sceAudioOutputPannedBlocking
        STUB_FUNC       0x95FD0C2D,sceAudioChangeChannelConfig
        STUB_FUNC       0x136CAF51,sceAudioOutputBlocking
        STUB_FUNC       0xE9D97901,sceAudioGetChannelRestLen
        STUB_FUNC       0x6FC46853,sceAudioChRelease
        STUB_FUNC       0x5EC81C55,sceAudioChReserve
        STUB_FUNC       0xE2D56B2D,sceAudioOutputPanned
        STUB_FUNC       0xB7E1D8E7,sceAudioChangeChannelVolume
Back to top
View user's profile Send private message Visit poster's website
squiggle



Joined: 26 Jun 2005
Posts: 9

PostPosted: Sun Jun 26, 2005 8:42 pm    Post subject: Reply with quote

sorry to revive such an old thread, but I've been messing around with some code based off of nems sample, and whenever I use Sound1 for effects and the unit dims or I press the home button the first sample (regardless of if its done playing or not) starts playing in a quick loop. Am I doing something wrong?


Update: this doesn't seem to be an issue with the sound code, this has to deal with how I'm handling input.
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