Home | Forums | What's new | Resources | |
Best way to play an on-the-fly generated PCM stream |
hkzlab - Jul 27, 2009 |
vbt | Jul 28, 2009 | ||||||||||
welcome to this board hkzlab first you can check if you have loaded the sound driver :
Code:
to init pcm parameters, it looks like this :
Code:
about sound size, pcm has to be over 0x900 to be played with sl_pcm, the hint is to set chunk->alen to 0x900 when it under this value. there is another way to play sound in loop with sbl, i used it on a sms emu for saturn. There is a sample in SBL 6
Code:
hope it helps |
hkzlab | Jul 29, 2009 | |||
Thanks for the help! Now i know why slPCMOn did not play the sound in the buffer filled by Sarien: it is a lot smaller than 0x900 bytes. As for the SBL code, i'll have to read through it using my manuals to understand it. I'll let you know I was thinking to release a "preview" version of my port, without sound, after i received my keyboard adapter and added support for it (playing Leisure Suit Larry without kb is a bit impossible)... but it seems that italian postal system lost my package and i'll have to reorder another one when i'll have the money >:-( Thanks again! |
hkzlab | Jul 29, 2009 | ||||
I've been trying the SBL code in a test program, but i'm unable to get any audio output. Can that
Code:
edit: ok, i can get some sound now. I forgot to set the data type |
hkzlab | Jul 30, 2009 | |||
Thanks vbt! I finally got near-perfect audio in sarien using SBL seamless branching! Now i need to do some cleanup to the code, add keyboard support and then the Saturn will have its own AGI interpreter |