A question regarding the PCM
Posted: Sun Oct 07, 2012 12:40 am
Hey guys, I have been trying to play a song in PCM (yes, in PCM; I'm preparing an "easter egg", and of course, can't be in CDDA).
The song takes actually 1024 KB.
I tried to get rid of this by loading a 32kb portion to somewhere in RAM, and another 32kb portion to other place; once a portion finished playing, I try to play the other portion, meanwhile the first one reloads other data, and once it finish playing the second, goes back to the first portion while the second reloads new data.
I tried to do this using an example code a friend gave me, which he told is taken from the 32xDdk.
The first times I tried it, had a lag when going from one portion to another.
After I thought I fixed it, the transitions between the two portions failed in gens.
Any idea about how to do this?
The code (most of the uncommented code before InitPCM is unknown for me):
http://pastebin.com/a8mqCZqk
Thank you very much, and excuse my terrible english.
The song takes actually 1024 KB.
I tried to get rid of this by loading a 32kb portion to somewhere in RAM, and another 32kb portion to other place; once a portion finished playing, I try to play the other portion, meanwhile the first one reloads other data, and once it finish playing the second, goes back to the first portion while the second reloads new data.
I tried to do this using an example code a friend gave me, which he told is taken from the 32xDdk.
The first times I tried it, had a lag when going from one portion to another.
After I thought I fixed it, the transitions between the two portions failed in gens.
Any idea about how to do this?
The code (most of the uncommented code before InitPCM is unknown for me):
http://pastebin.com/a8mqCZqk
Thank you very much, and excuse my terrible english.