I Don't get iT! AUdio Programming help needed
I'v been stuck on this one all day. I have some code that will play WAV Files but the WAV files always play faster than what i have told them too.
In a Wav file, you have a "Samples per second" field. I try using the Samples per second with the:
sceAudioChReserve(PSP_AUD IO_NEXT_CHANNEL, Channel[channel].format.dwSamplesPerSec, formatch);
But the PSP is reading the samples about 1/3 of a second, not a second! How do i set how many samples should be played per sec, i don't understand.
Even changing the [channel].format.dwSamplesPerSec to be lower causes the PSP to request PCM data faster. I don't want this. I want it to equally play the amount of samples i specify over the 1 second time period. For example, passing sceAudioChReserve(PSP_AUD IO_NEXT_CHANNEL, 5000, formatch); to request 5000 samples PER SECOND, not per 1/8 SECOND.
Maybe i'm getting freq confused with samples, are they two different things?