WAVE Data Format Data Packing Document

Discussion in 'Windows Media Player' started by venmad, Dec 24, 2003.

  1. venmad

    venmad Guest

    Hi,
    I am looking for the link to the document where wave
    audio data packing is explained.

    For example, if I have encoded Data in GAM610, How do I
    pack it so that Media Player can Play it.

    thanks
     
    venmad, Dec 24, 2003
    #1
    1. Advertisements

  2. If you mean you want to know the structure of a .wav file,
    it's very easy: it's a 'RIFF' file of type 'WAVE' which
    contains a WAVEFORMATEX in the header and the audio stream
    in the 'data' chunk. You can get the details from
    www.wotsit.org.



    --

    /**
    * Alessandro Angeli
    *
    * MVP::DigitalMedia
    *
    * a dot angeli at biosys dot net
    */
     
    Alessandro Angeli [MVP::DigitalMedia], Dec 24, 2003
    #2
    1. Advertisements

  3. venmad

    Guest Guest

    Thanks
    I am not sure, but the Data Looks to be OLD as there are
    more Registered WAVE Format codecs.
     
    Guest, Dec 24, 2003
    #3
  4. I can't follow you. The codecs' format tags have nothing to
    do with the WAVE file structure. A WAVE is just a container
    for whatever audio data you want to put in there as long as
    you provide a correct header and you have a suitable
    software to decode it (for example an ACM codec or a
    DirectShow filter or a DMO or a custom decoder...).

    --

    /**
    * Alessandro Angeli
    *
    * MVP::DigitalMedia
    *
    * a dot angeli at biosys dot net
    */
     
    Alessandro Angeli [MVP::DigitalMedia], Dec 25, 2003
    #4
  5. venmad

    venmad Guest

    Each coder takes raw audio data and encodes it. After
    encoding it need to pack the data. For example, ADPCM
    takes one audio sample and converts into a 5/4/3/2 bit
    sample depending upon the output rate. These bits needs
    to be packed to make a audio file. After packing we put
    the WAVE Header.

    What I was saying was that document has packing format
    for few coders only, where as Media Player codec tag file
    as lot more coders.
     
    venmad, Dec 29, 2003
    #5
  6. The document on www.wotsit.org only describes the RIFF/WAVE
    file format (the system stream) and, as an example, the data
    format for LPCM audio. The data format is not an inherent
    part of the file structure and can actually be any arbitrary
    binary data stream stored in the 'data' chunk(s). For each
    data format, you need the specifications of that particular
    format if you want to understand it. Some can be found and
    are more or less publicly available, others are strictly
    proprietary. On Windows, anyway, you have 3 system
    registries of codecs (ACM, DirectShow filters, DMOs) that
    can handle the various formats. Unless you want to
    understand the data yourself, you can query those registries
    using the informations in the WAVEFORMATEX header to find a
    codec that can handle that data and provide you with a
    canonical representation of it (usually LPCM).


    --

    /**
    * Alessandro Angeli
    *
    * MVP::DigitalMedia
    *
    * a dot angeli at biosys dot net
    */
     
    Alessandro Angeli [MVP::DigitalMedia], Dec 29, 2003
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.