Hi,
I browsed around the forum but I couldn't find the information I am looking for si I post the questions. I am using CCS 3.3 Platinum with SR12, BIOS 5.33.05, PSP 1.30. I was able to modify C:\Program Files\Texas Instruments\pspdrivers_01_30_01\packages\ti\pspiom\examples\evm6747\audio\src\audioSample_io.c to play a wave file continuously. I don't care for the incoming audio sampling for now. The Audio_echo_Task() is running in a forever loop with the followings:
1. Get the transmit buffer from SIO_reclaim from outStream: nmadus = SIO_reclaim(outStream, (Ptr *)&xmt, NULL);
2. Fill the transmit buffer, xmt.
3. Issue full buffer SIO_issue to outstream: SIO_issue(outStream, xmt, BUFSIZE * TX_NUM_SERIALIZER, NULL)
The example repeats these 3 steps continuously and stub with silence. My questions for my application SW are:
1. Please direct me to documentations on the application level for SIO audio interface. I found some audio driver information from C67647 BIOS PSP User Guide but it has the lower layers.
2. What would SIO_reclaim(outStream, (Ptr *)&xmt, NULL) does when my audio task continuously call this function every 5msec without issue the full buffer SIO_issue when there is no audio to be played. I think there is a problem here and I would like to know if this is a wrong approach. This way I have no playing audio.
If questions 2 is a wrong approach. I will try a small state machine to do step 1, 2 and then step 3 when a file to be played. Otherwise, it will stay in a different state that do nothing.
Thanks,
Dennis