linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Msfileplayer patch for 8 bit wave


From: Micha Nelissen
Subject: [Linphone-developers] Msfileplayer patch for 8 bit wave
Date: Thu, 19 Oct 2006 16:42:03 +0200

Hi,

Small patch to improve reading from 8 bit files:

In waveheader.h add following define:

#define wave_header_get_bpsmpl(header)
le_uint16((header)->format_chunk.blockalign)

In msfileplayer.c replace d->swap=TRUE with:

        if (wave_header_get_bpsmpl(&wav) ==
wave_header_get_channel(&wav) * 2)
                d->swap=TRUE;

It prevents swapping of 8 bit audio samples.

Regards,

Micha




reply via email to

[Prev in Thread] Current Thread [Next in Thread]