Threads for ongoing processes

From: Bram Bos (bram_at_mindless.com)
Date: 01/31/05


Date: 31 Jan 2005 02:27:37 -0800

I'm working on an application that processes audio and plays
it back using common MME functions. The process looks like this:

1. send buffer to playback output
2. prepare new buffer with sound data
3. callback: "playback is done" > go to step 1.

I wish to do this using a separate thread, because the user
is messing around in lots of graphical GUI things in the main
thread. I can't really figure out how to assign this
callback/process to a thread though. I know how to create
a thread for a one-time job, but not how to do it for an
ongoing process (using a callback mechanism)...

can one of the Delphi gurus around here shed some light?

Thanks!

Bram



Relevant Pages

  • Re: Do I need a WdfDmaTransaction before accessing a Common Buffer?
    ... You shouldn't need to be performing DMA transactions to use the ... CommonBuffer, that is the purpose of using a Common Buffer. ... have four circular buffers in memory. ...
    (microsoft.public.development.device.drivers)
  • Re: Do I need a WdfDmaTransaction before accessing a Common Buffer?
    ... CommonBuffer, that is the purpose of using a Common Buffer. ... and WdfCommonBufferGetAlignedLogicalAddress match up? ... Also are you running driver verifier with DMA verification against your ...
    (microsoft.public.development.device.drivers)
  • Re: Do I need a WdfDmaTransaction before accessing a Common Buffer?
    ... the data set is written to a _circular_ buffer (in user ... The start address of the last data-set is written to a location ... I am experiencing difficulties getting my device to write to a common ... First, data-set to circular buffer, 1 to 255 words. ...
    (microsoft.public.development.device.drivers)
  • Do I need a WdfDmaTransaction before accessing a Common Buffer?
    ... I am experiencing difficulties getting my device to write to a common ... to a circular buffer in system memory. ... First, data-set to circular buffer, 1 to 255 words. ... -3- Writing this address to the DMA machine in my device ...
    (microsoft.public.development.device.drivers)
  • Re: DMA adapters vs Map registers and Contiguous memory
    ... It depends on your chipset. ... If the chipset is not so smart - then the common ... registers ONLY, WHITHOUT ALLOCATING ... If your device can handle the buffer physically scattered - then yes, ...
    (microsoft.public.development.device.drivers)