×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    64

    Sound Mixer Example

    Hello,

    I have a question about the sound format used in the Sound Mixer Example...

    There are files with .wav endings but they are not genuine .wav files. If you look at the file loading procedure in the Sound Mixer Example, you see that these files only contain pure sound data ( no file headers whatsoever ). This is why they can't be played with some media player...

    Now, does somebody know how to make such files from "usual" .wav's OR how to extract a sound file's pure sound data in a program ( sort of like getting access to pure image data of a CFbsBitmap via 'DataAddress()' )??

    This is really important to me so maybe even some Nokia Expert could help?!

    Thanks for any suggestions/help!

    Victor

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328
    Hi Victor

    A properly constructed wav file has a well-document header which may be stripped off leaving just the raw sound data. Ideally what you would want to do is read in the header to extract the settings of the wav file (eg sample frequency, sample length). Once you have the settings, set up the CMdaOutputStream to support those settings.

    If my memory serves me correctly, and you don't care too much about the settings, you should be able to read in and discard the first 44 bytes of a standard wav file to leave you with just the raw sound data.

  3. #3
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    64
    Hi template60,

    thanks a lot for the help! That information was exactly what I was looking for...

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    7

    Re: Sound Mixer Example

    Hi Victor,

    can you explain how exactly you managed to get the sound mixer work with genuine wav files?
    I have the same problem you had and struggling to get it to work
    Thanks in advance.

    Vincent.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    7

    Re: Sound Mixer Example

    Hi,

    Victor kindly mailed me with a solution an dI thought I could share it here...

    He pointed a free soft called SOX that can get rid of a wav header.
    I must say I haven't tested it (I found another solution).

    Many thanks to Victor.
    Vincent.

  6. #6
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Sound Mixer Example

    The format supported by the mixer example is:
    * Format: PCM Uncompressed
    * Attributes: 16000Hz, 16 Bits, Mono

    You should be able to convert your own wave file to that format by using a tool like Switch for instance.

    See Slion.net for more details.

Posting Permissions

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