🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DirectSound Focus Problem

#515
From: Alec Yu
Date: Thu, 27 Nov 2003 13:34
33 lines
2057 bytes
Are the threads syncronized? You may show your source.


Francesco Fabrini wrote:
>  using direct sound  form my real time application.
> 
> I load input samples to a circular buffer and pass them
> to streming sound secondary buffer via notification
> method (notification separated thread).
> 
> Deriving my code from streming data Microsoft example, I
> can listen quite good sound form audio card from input
> signal at 4096 or 8192 sample rate.
> 
> For my scope I'm using a stay on top form, but when I
> change focus to other application or move form I have
> this 2 problem:
> 
> 1) Play Notification events lost constancy in timing
> versus input samples flow stays constant.
> 
> 2) a strange noise is random introduced in audio, mixed
> to my audio signal. How can I understand if this is
> caused from kmixer mixing disturb from other aplications
> audio, or strange interaction in my load input sample
> function.
> 
> Thanks
> 
> Regard
> Francesco
> 
> 
Technical Details
Message-ID: <3fc5fdac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ddcba7c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,2efe1766c9d7e306,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-11-27 05:40:01 PST
Date: Thu, 27 Nov 2003 21:34:13 +0800
From: Alec Yu <aqhyu@excite.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en, zh-cn, zh, zh-hk, zh-tw
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: DirectSound Focus Problem
References: <3ddcba7c@newsgroups.borland.com>
In-Reply-To: <3ddcba7c@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.176.237.145
Message-ID: <3fc5fdac$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069940140 203.176.237.145 (27 Nov 2003 05:35:40 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail