On 2009/11/10 19:22, Metyl Methylius <the.me...@gmail.com> wrote: > I think WAVe was designed by Micro$oft runining Intel and there is no way to > support other little endian. > I made convesions (glib based) from all possible sample_bits (8/16/24/32) > but i've tested only on little endian architecture.
Your pcm24_to_wave() function is wrong; drop the GUINT32_TO_LE() call! On big endian, "value & 0xff" will give you the most significant byte, because the byte order was reversed by GUINT32_TO_LE(). Since you're picking byte by byte anyway, you don't need GUINT32_TO_LE(). > Anyway 16bit downto 8bit conversion isn't implemented so I haven't tested > this but its trivial case. What do you mean? Btw. if your open() method gets an unsupported audio format, the encoder plugin may modify the audio_format object. MPD will convert automatically then. Just in case that helps you.. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team