🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sampled waveform to mediaplayer

#721
From: Ted Lyngmo
Date: Thu, 12 Jun 2003 16:50
34 lines
1999 bytes
Roelof Steyn wrote:
 > Hi
 >
 > I need to send data from an IO Card (with Analogue-to-Digital ports) to the
 > PC's sound card. I have sampled analogue data and I have the following
 > "inputs":
 > int    NumberOfSamples
 > double AudioData[NumberOfSamples];
 > double SampleFrequency;
 > The sampled data is speech.
 >
 > How can I play/record this?

Take a look at the waveIn* and waveOut* WinAPI functions. If you need a 
wrapper class for the waveOut* functions, you can download my TWaveOut class 
from here:
http://217.215.147.98/software/cppbuilder/

 > Maybe with MediaPlayer?

Don't know...

 > Alternatively, I could build a wav-file. Does anybody know the format of a
 > wav-file or where I could get it?

Just search for  RIFF WAVE file spec  with http://www.Google.com and you'll 
get tons of hits.

Kind regards,
Ted Lyngmo

-- 
Replace MY_FIRST_NAME in my email address with my first name to send a private
email to me.
Technical Details
Message-ID: <3EE8AF53.2000107@lyncon.se>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee8a063@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,6414ceb1282d980e
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-06-12 10:03:52 PST
Message-ID: <3EE8AF53.2000107@lyncon.se>
Date: Thu, 12 Jun 2003 18:50:27 +0200
From: Ted Lyngmo <MY_FIRST_NAME@lyncon.se>
Organization: Lyncon - Computer & Music consulting
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: sv,en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Sampled waveform to mediaplayer
References: <3ee8a063@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.215.147.98
X-Trace: newsgroups.borland.com 1055436677 217.215.147.98 (12 Jun 2003 09:51:17 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail