LEADTOOLS Support
General
General Questions
Is the compression delay in ltmmCapture object?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, March 15, 2010 10:19:08 AM(UTC)
Groups: Registered
Posts: 14
Hi,
I have now successfully implmemented record and playback of audio and all is working well, except...
The audio playback stops just short of the capture session. It's almost like the capture object stops all processing the instant i call the StopCapture method. Causing the recorded data which is still uncompressed to be discarded.
This seems happens sporadically, as sometimes it works fine but other times I get my recording truncated to 1-2 seconds before I stop the capture. Note that this does not seem to happen to the same extent or regularity when storing to WAVE rather than MP3 which i do.
Do you have any idea what causes this and hopefully also how to fix it?
best regards,
Yngve
#2
Posted
:
Tuesday, March 16, 2010 4:20:50 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
To resolve the problem, try to set the ltmmCaptureCtrl1.AudioBufferSize property to a small value (such as 0.01) before setting the TargetFormat, and retry the same issue.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, March 16, 2010 6:51:00 AM(UTC)
Groups: Registered
Posts: 14
Thanks again,
This did the trick. I have one follow-up question though. If this buffer is too small, will I potentially loose audio if the mp3 converter is unable to handle the data stream? For example in the case of the CPU being temporarily occupied with other tasks (in other processes)
regards,
- Yngve
#4
Posted
:
Wednesday, March 17, 2010 5:28:54 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Yngve,
With modern processors, this probably won't happen unless the PC is really overworked. However, if it turns out to be a real problem, send an email to
support@leadtools.com with full problem details and steps on how to reproduce it and we will investigate it further.
If you send an email, please mention this post, include your serial number (do not post it here) and if you include any attachments put them in a ZIP or RAR file.
#5
Posted
:
Wednesday, March 17, 2010 10:10:57 PM(UTC)
Groups: Registered
Posts: 14
Great!
Thanks for the info.
- Yngve
LEADTOOLS Support
General
General Questions
Is the compression delay in ltmmCapture object?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.