🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by Roelof Steyn Thu, 12 Jun 2003 15:46
Sampled waveform to mediaplayer
#720
Author: Roelof Steyn
Date: Thu, 12 Jun 2003 15:46
17 lines
1324 bytes
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?
Maybe with MediaPlayer?
Alternatively, I could build a wav-file. Does anybody know the format of a
wav-file or where I could get it?

Thanks!
Roelof
Re: Sampled waveform to mediaplayer
#721
Author: 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.
Re: Sampled waveform to mediaplayer
#724
Author: Ted Lyngmo
Date: Fri, 13 Jun 2003 22:28
16 lines
1528 bytes
Ted Lyngmo wrote:
 >
 > 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/

The last couple of hours, I rewrote much of the class so you might want to 
check our the new version.

Kind regards,
Ted Lyngmo

-- 
Replace MY_FIRST_NAME in my email address with my first name to send a private
email to me.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads