Results 1 to 4 of 4

Thread: Any clue how .wav files REALLY work?

  1. #1

    Thread Starter
    Addicted Member krah's Avatar
    Join Date
    Jan 1999
    Location
    Arkansas, her hyuck!
    Posts
    163

    Question

    I was wondering, how does a .wav file get chopped up and made into sound? When I open a .wav in a dos text editor, it is a bunch of ASCII characters in certain patterns.

    To make sound, you need a frequency and a volume level, right? So what in that .wav file is the frequency and what is the volume level?

    Has anyone seen websites that would explain the inner working of file types like this one or others such as .mp3, .avi's even? If I figured this out I thought I could maybe compile a working .wav file from inside my program with different frequency and volume controls. Possible?
    Is it tired in here or is it just me?

    Ryan Williams
    -Using Vb6-

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    It's called file formats.
    Depending on the file type, it can be a very easy subject (example - TXT files) or a harder one (example - ZIP files).
    Excellent reference site: Wotsit's Format - The programmer's resource

  3. #3

    Thread Starter
    Addicted Member krah's Avatar
    Join Date
    Jan 1999
    Location
    Arkansas, her hyuck!
    Posts
    163

    Thumbs up

    Yeah I knew it was called file formats, but anyway the website you listed is awesome! Graciaso Seniorato Yonatano.
    Is it tired in here or is it just me?

    Ryan Williams
    -Using Vb6-

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I made a module once that can be used to manipulate wave files:
    http://209.207.250.147/showthread.php?threadid=14791
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width