🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages Started by Tim Reago Sun, 02 Mar 2003 15:44
Record is choppy, multiple/single buffer problem
#859
Author: Tim Reago
Date: Sun, 02 Mar 2003 15:44
14 lines
1396 bytes
Part of my program records audio using <mmsystem.h> functions,
waveInPrepareHeader and such.

The client record works and allows my other threads to continue functioning
when I prepare only one buffer.

However, when I prepare two or more buffers, I loose all other thread
functionality on the client.  I think???  Or something like that.

And when I record with only one buffer, I get a choppy break between each
recorded buffer.  So that is no good.

Thanks,
Tim
Re: Record is choppy, multiple/single buffer problem
#860
Author: Maynard Philbrook
Date: Mon, 03 Mar 2003 06:39
31 lines
2257 bytes
you load the buffer.
then prepare it
then send it.
then do the same for the next..
you prepare one at a time and then send it, repeat this until your buffers
run out then return from the code and let the call back respond to
buffers being returned.
 you can either call the same code again at that point or send a custom
message to your app from the call back..
 P.S.
   you do not want to do hardly any API calls in the callback if the callback
is not Message events.
  you can only use things like PostMessage, Timer functions ect..


Tim Reago wrote:

> Part of my program records audio using <mmsystem.h> functions,
> waveInPrepareHeader and such.
>
> The client record works and allows my other threads to continue functioning
> when I prepare only one buffer.
>
> However, when I prepare two or more buffers, I loose all other thread
> functionality on the client.  I think???  Or something like that.
>
> And when I record with only one buffer, I get a choppy break between each
> recorded buffer.  So that is no good.
>
> Thanks,
> Tim
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads