🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DirectSound Focus Problem

#758
From: Francesco Fabrini
Date: Thu, 21 Nov 2002 10:51
25 lines
1798 bytes
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: <3ddcba7c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,370e44ad8a7389a,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2002-11-21 02:52:47 PST
Reply-To: "Francesco Fabrini" <fabrini@ebneuro.com>
From: "Francesco Fabrini" <fabrini@ebneuro.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: DirectSound Focus Problem
Date: Thu, 21 Nov 2002 11:51:15 +0100
Lines: 29
Organization: EBNeuro
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 81.113.88.26
Message-ID: <3ddcba7c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037875836 81.113.88.26 (21 Nov 2002 02:50:36 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail