[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-users] Support for big-endian architectures is missing?
From: |
Paavo Hartikainen |
Subject: |
[Linphone-users] Support for big-endian architectures is missing? |
Date: |
Wed, 15 Sep 2004 16:12:04 +0300 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
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.
--
"pienena / Paavo "Rainbow Rat" Hartikainen
minusta / E-mail: address@hidden
tulee / URL: http://www.sci.fi/~pahartik/
rotta" / EFnet: pahartik at #Atari and #LionKing
- [Linphone-users] Support for big-endian architectures is missing?,
Paavo Hartikainen <=