Issue with TLiveAudioPlayer

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Issue with TLiveAudioPlayer

Postby junglejet » January 3rd, 2014, 6:24 pm

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
junglejet
Member
Member
 
Posts: 1
Joined: January 3rd, 2014, 6:16 pm

Re: Issue with TLiveAudioPlayer

Postby Kambiz » January 12th, 2014, 6:57 pm

Hi,

I suggest to increase the number of buffers (BufferCount property). Usually it prevents the delay.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron