Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

how big is your HEADER

  • 03-02-2010 8:49am
    #1
    Closed Accounts Posts: 6,408 ✭✭✭


    Hi, trying to find a quick answer for these. Can anyone tell me how big the headers are for .WAV and .AIFF files.

    I have a bit of code running at the moment but I need to convert audio to RAW before I play the files. If I knew the size of the header I could just skip over it. I'm asking here because I've got 2 different answers online already.


Comments

  • Registered Users, Registered Users 2 Posts: 3,810 ✭✭✭dasdog


    studiorat wrote: »
    Hi, trying to find a quick answer for these. Can anyone tell me how big the headers are for .WAV and .AIFF files.

    I have a bit of code running at the moment but I need to convert audio to RAW before I play the files. If I knew the size of the header I could just skip over it. I'm asking here because I've got 2 different answers online already.

    I hope this isnt the 3rd different answer but a quick search for WAV points to it being 44 bytes from a few different sources. This has a breakdown:

    https://ccrma.stanford.edu/courses/422/projects/WaveFormat/


  • Registered Users, Registered Users 2 Posts: 3,945 ✭✭✭Anima


    Yeah its 44 bytes if I remember correctly. Could use libsndfile to extract the audio from a load of different file types as well. http://www.mega-nerd.com/libsndfile/


  • Closed Accounts Posts: 6,408 ✭✭✭studiorat


    44 it is so. I had got 42 somewhere else.

    Two excellent links there lads thanks.

    I realize I'll need to stick a library in there at some stage to do exactly what libsndfile does.

    Thanks again.

    back just remember being recommended this http://www.un4seen.com/ little better than libsndfile I'm told


  • Registered Users, Registered Users 2 Posts: 3,945 ✭✭✭Anima


    Actually, your right. I think it can very between two sizes. I cant remember the reason though. I think one of the fields of the header can be either 2 or 4 or something like that.

    That does seem like a decent library but it doesnt get much simpler than libsndfile and its highly portable. Although that library seems to run on Win, Linux and OSX. Might try it sometime.


Advertisement