#48 endian distortion with oss driver


I am using powerpc linux on a powerbook g4 rev A.

$ uname -rom
2.4.20-ben102lowlatzaurus ppc GNU/Linux

using alsa Driver Version 1.0.2

When i use the OSS driver, the audio output from
rezound is highly distorted, characteristic of an
endian problem.

When i use the jack driver (incidentally rezound will
only talk to jack if jackd and rezound are running as
root ) the audio output is perfect.

rezound is version 0.9.0beta-1, from a debian package.
( http://packages.debian.org/unstable/sound/rezound )


  • matt yee-king

    matt yee-king - 2004-04-14

    Logged In: YES

    The jackd issue alluded to above was caused by my being
    stupid and having 2 versions of jackd installed. Working
    great with jackd as any user now.

  • Davy Durham

    Davy Durham - 2004-04-15

    Logged In: YES

    Ok.. good to have someone actually use it... I've never been
    able to actually test the audio output on big endian machine
    (because they've always been remote).

    Could you look at the code in
    rezound/src/backend/COSSSoundPlayer.cpp about lines 100 and
    following. That's where it decides how to initialize OSS as
    far as sample format goes (btw- one of the strings about 24
    bit might be mis-labeled).

    Play with out and let me know what you find out if you're
    comfortable with that.. If you not I'll send you a patch to

  • Davy Durham

    Davy Durham - 2004-04-15
    • assigned_to: nobody --> ddurham
  • matt yee-king

    matt yee-king - 2004-04-15

    Logged In: YES

    I have not as yet been able to to build rezound so cannot
    try out your suggestion. I used the patch from that other
    bug you directed me to. That got me past the first build
    error but now I have this:
    (putting this here rather than starting another bug... hope
    thats ok)

    g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../src/misc
    nerated -I../../src/PoolFile -INONE/include -INONE/include
    -INONE/include -INONE/includ
    e -g -Wall -Wno-unused-function -Wno-unused-variable
    -Wno-unused -INONE/include -INONE/
    include -INONE/include -MT CSound.lo -MD -MP -MF
    .deps/CSound.Tpo -c CSound.cpp
    ../../src/PoolFile/TPoolFile.cpp: In copy constructor
    _p_addr_t>::TPoolFile(const TPoolFile<_l_addr_t,
    _p_addr_t>&) [with
    _l_addr_t = sample_pos_t, _p_addr_t = uint64_t]':
    CSound.cpp:2256: instantiated from here
    ../../src/PoolFile/TPoolFile.cpp:160: error: uninitialized
    member '
    TPoolFile<sample_pos_t, uint64_t>::maxBlockSize' with
    'const' type 'const
    ../../src/PoolFile/TPoolFile.cpp:160: error: uninitialized
    member '
    TPoolFile<sample_pos_t, uint64_t>::maxLogicalAddress'
    with 'const' type '
    const sample_pos_t'
    ../../src/PoolFile/TPoolFile.cpp:160: error: uninitialized
    member '
    TPoolFile<sample_pos_t, uint64_t>::maxPhysicalAddress'
    with 'const' type '
    const uint64_t'
    make[3]: *** [CSound.lo] Error 1
    make[3]: Leaving directory
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory
    make: *** [all-recursive] Error 1

  • Davy Durham

    Davy Durham - 2004-04-16

    Logged In: YES

    That's weird... you can look on line 160 of
    src/PoolFile/TPoolFile.cpp and see that it's quite clearly

    What version of gcc are you using?

  • matt yee-king

    matt yee-king - 2004-04-16

    Logged In: YES

    I have tried with

    g++ -v
    Reading specs from /usr/lib/gcc-lib/powerpc-linux/2.95.4/specs
    gcc version 2.95.4 20011002 (Debian prerelease)


    g++ -v
    Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.3/specs
    Configured with: ../src/configure -v
    --prefix=/usr --mandir=/usr/share/man
    --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
    --with-system-zlib --enable-nls --without-included-gettext
    --enable-__cxa_atexit --enable-clocale=gnu
    --enable-java-gc=boehm --enable-java-awt=xlib
    --enable-objc-gc --disable-multilib powerpc-linux
    Thread model: posix
    gcc version 3.3.3 (Debian 20040401)


    same effect both times.

  • Davy Durham

    Davy Durham - 2005-05-01
    • status: open --> closed-out-of-date

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks