Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / A question of sound

Author
Message
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 13th Nov 2002 08:03
I've been looking at Make Memblock From Sound and have read that the first 12 bytes discribe bits per second, frequency and duration but then comes the sound data.

How should you read and understand this data?
"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 13th Nov 2002 22:06
The sound data depends on the sample rate of the sound. You read it as you would a normal memblock. I don't understand how it works yet, all I've figured out how to do is produce random white noise. I'm guessing the sound values are points on a sine wave or component of, since that is how sounds really are, digital representations are just a series of values from the wave.

Login to post a reply

Server time is: 2024-04-27 02:16:14
Your offset time is: 2024-04-27 02:16:14