1. Wav files

I'm wondering if anyone would know how I could use Euphoria to make a .WAV
file?
Not to play one, just to make one. (For example, take a sequence of numbers
and compile them into a xxxxx.wav (such that each number in the sequence
represented the value of succesive samples in the wave) which could then be
played with any .wav player.
Does this code exist? If not, could it? If so, where could I find it?
Thanks,
Andrew

new topic     » topic index » view message » categorize

2. Re: Wav files

>I'm wondering if anyone would know how I could use Euphoria to make a .WAV
>file?
>Not to play one, just to make one. (For example, take a sequence of numbers
>and compile them into a xxxxx.wav (such that each number in the sequence
>represented the value of succesive samples in the wave) which could then be
>played with any .wav player.
>Does this code exist? If not, could it? If so, where could I find it?
>Thanks,
>Andrew


Andrew,

The code that you want has been written into WINMM.DLL.  The only function
in there that I've ever used is PlaySound, but as I understand, all the MIDI
and WAV functions are there, too.

Brian Jackson

new topic     » goto parent     » topic index » view message » categorize

3. Re: Wav files

>I'm wondering if anyone would know how I could use Euphoria to make a .WAV
>file?
>Not to play one, just to make one. (For example, take a sequence of numbers
>and compile them into a xxxxx.wav (such that each number in the sequence
>represented the value of succesive samples in the wave) which could then be
>played with any .wav player.
>Does this code exist? If not, could it? If so, where could I find it?
>Thanks,
>Andrew

I have a wave file writer somewhere. It's pretty easy. I can look for it if
you want. I think it needs a little adjusting tho. Do you want it to recieve
the sample data in byte form or floating point to be converted?

-Mark

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu