[Top][All Lists]

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

Re: [Linphone-users] Support for big-endian architectures is missing?

From: Simon MORLAT
Subject: Re: [Linphone-users] Support for big-endian architectures is missing?
Date: Thu, 16 Sep 2004 14:50:44 +0200
User-agent: Mozilla Thunderbird 0.7.3 (X11/20040830)

Thanks for reporting this problem.
I guess the problem also happens for voice from a remote sip-phone ?

Paavo Hartikainen wrote:

On PowerPC workstations (for example), audio that is played through
"mediastreamer" is played in wrong byte order.  Playing default
ringtone causes terrible grinding noise.

I do not understand the code too well, but I tried changing file
"linphone-0.12.2/mediastreamer/alsacard.c" line "64" to contain
"SND_PCM_FORMAT_S16_BE" instead of "SND_PCM_FORMAT_S16_LE".  Listening
to ringtone at configuration dialog after the modification sounds
normal again.  No doubt this breaks audio byte order in little-endian
systems, so it needs some conditional logic around.

And of course this only has effect on ALSA, OSS needs something else.
Audio input supposedly needs byte order fixes as well.

I think "#include <endian.h>" might be useful as part of solution.

reply via email to

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