🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #129

Re: wave playback headers

#129
From: Mark Jacobs
Date: Thu, 12 May 2005 11:15
19 lines
1589 bytes
Sorry, you mean output not input. Here is what I use for clickless output :-

//---------------------------------------------------------------------------
void CALLBACK WaveOutProc(HWAVEOUT waveOut,UINT uMsg,DWORD dwInstance,DWORD 
dwParam1,DWORD dwParam2)
{
   if (dwParam1==0) return;
   WAVEHDR *mh=(WAVEHDR *)dwParam1;
   if (uMsg==MM_WOM_DONE)
   {
     waveOutUnprepareHeader(waveOut,mh,sizeof(WAVEHDR));
     mh->dwFlags=WHDR_DONE;
   }
}

HTH
-- 
Mark Jacobs
http://www.dkcomputing.co.uk
Technical Details
Message-ID: <42833a8a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42826d8d$1@newsgroups.borland.com> <42830f37$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,771a0fcea1e567d2
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 12 May 2005 12:15:00 +0100
From: Mark Jacobs <http://www.jacobsm.com/mjmsg.htm?mj@critical>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: wave playback headers
References: <42826d8d$1@newsgroups.borland.com> <42830f37$1@newsgroups.borland.com>
In-Reply-To: <42830f37$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.144.157.8
Message-ID: <42833a8a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115896458 81.144.157.8 (12 May 2005 04:14:18 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail