I know that i can import in "wav" format dts/ac3 soundtracks and keeping the 5.1 format.

I ripped a dvd (the music part) and i have an .ac3/.dts file

How do i convert it to wav so that i can burn it to cd keeping the 5.1 sound?