19 May '13 - 17:05 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Wrong channel order when writing to WAV  (Read 1148 times)
The Mask
Posts: 97


« on: 15 Mar '09 - 18:30 »
Reply with quoteQuote

Hi,

When I convert the multichannel sample from this website (6 channel.ogg) to normal .wav then the channel order is incorrect (See pictures below). When I save the 6 channel.ogg file to 6 mono wav files then the channel order is correct. Is this normal?

Channel order of 6 channel ogg file:

Channel order of 6 channel wav file:

You can download the code I used from the changed version of WriteWav (delphi) at: http://rapidshare.com/files/209619652/WriteWav.rar.html
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 16 Mar '09 - 14:28 »
Reply with quoteQuote

Please check what result you get with the pre-compiled WRITEWAV.EXE example (in the C\BIN directory).
Logged
The Mask
Posts: 97


« Reply #2 on: 16 Mar '09 - 19:32 »
Reply with quoteQuote

Ok,

Seams that the problem lies in the fact that I use Float samples and not 16bit samples like the standard writewav example. So there must be something wrong with my creation of a 32 bit float wav header.

Can someone tell me how to write a 32 bit float wave header for multichannel wave files? Preferably in Delphi Grin
Logged
radio42
Posts: 4012


« Reply #3 on: 16 Mar '09 - 20:06 »
Reply with quoteQuote

Why don't you use BASSenc - see BASS_Encode_Start together with the BASS_ENCODE_PCM flag.
Guess that will do all you need.
Logged
The Mask
Posts: 97


« Reply #4 on: 16 Mar '09 - 20:41 »
Reply with quoteQuote

Yep that did it.  Smiley

Didn't know about that feature.

Thank you.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines