Hi All,
I have created an audio streaming application for iphone.- I have used the code from this link idevkit.com/forums/general-sdk/225-streaming-audio-class.html
They are using a logic to find the end of file by keep tracking the number of buffers enqueued and emptied. when these two values become equal it assumes that we are at the end of the file.But this logic is not working properly.
The method we need to modify is - (void)outputCallbackWithBufferReference:(AudioQueueBufferRef)buffer;
I have tried another logic to find the end of file, by tracking the number of bytes en queued and after enqueuing check with the content-length of the stream data. But the content length size includes the header size and actual file size.So it is difficult to move on this way.
I need to know any other methods to find the end of file or modify above methods to sort out the issue?
Any one please help,
Its really urgent,
Thanks in advance Syam S