Quote:
Originally posted by soundsys
Hi
Most of the code is a replacement for the start() code.
The while(playing) code should stand in the process().
The updated code is a standalone code that play the whole file.
You can't interact with it as in orginal code.
The huge change is the castservice<> use instead of c styled cast.
Another correction is to delAllchunks() in the reading loop
Have fun
|
cool.
just a few questions and comments though.
SoundsysCore.In, SoundsysCore.Out, svc_fileReaderI *R should be set to NULL because they contain garbage data at the time of creation If they are not NULL, calls to api->service_release() will cause an assertion failure - "got release with no lock record" (unless of course they contain valid data).
also, how do i assign an output converter to SoundsysCore.Out? I want to redirect the output to my soundcard and I assume I should use the same technique as assigning a FileReader and Input converter but I'm not sure what the correct flags are and how to check if the converter is valid for the data.