🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Changing lpData

#1247
From: Mike
Date: Thu, 12 Apr 2001 17:11
20 lines
1250 bytes
Hi!

I'am using waveOut for outputing sounds. But how can I change LPSTR
lpData?

I prepare header and than I can with

for (int i = 0; int < ulSize; ++int) {
lpData[i] = something
}

change it. But how can I change it to something useful (like 100 Hz
sound)?

I think that it should be some sin function, but i am not sure. Can
enybody
help? Wave should be in 48 kHz, 16 bit, stereo format.


Mike
Technical Details
Message-ID: <3AD5E1BA.AB66ADB2@yahoo.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,a6c554e820be8e0e,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-04-12 11:14:04 PST
Message-ID: <3AD5E1BA.AB66ADB2@yahoo.com>
Date: Thu, 12 Apr 2001 19:11:22 +0200
From: Mike <ppagee@yahoo.com>
Organization: Anonymous
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en,sl
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Changing lpData
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 194.249.11.18
X-Trace: dnews 987095542 194.249.11.18 (12 Apr 2001 10:12:22 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews