Page 1 of 1

Issue with TLiveAudioPlayer

PostPosted: January 3rd, 2014, 6:24 pm
by junglejet
Hi,
thanks for the great package.
I have a problem with Liveaudioplayer. I want to play endless buffers, each buffer is 500 ms long. Buffers are provided so I use no internal buffers and OnDataPtr. Buffers are assured to be available when OnDataPtr occurs.

What happens is that there is a clear gap of sound when OnDataPtr occurs, about 50 ms long. I looked at the code and it seems that buffers are reallocated only after the MM_WOM_DONE was raised by MMSYSTEM, if I understand it correctly.

It appears to me that the underlying MMSYSTEM has closed the output file and then reopens it instead of keeping it open.
Any help or alternative is appreciated.

-- Andy

Re: Issue with TLiveAudioPlayer

PostPosted: January 12th, 2014, 6:57 pm
by Kambiz
Hi,

I suggest to increase the number of buffers (BufferCount property). Usually it prevents the delay.