[CM] snd - right channel only silence when loading files

Jonas Berlin xkr47@outerspace.dyndns.org
Mon, 16 May 2005 09:04:00 +0000


Hello..

I have a problem with snd that if I open a stereo .wav file into snd,
only the left channel has audio, the right channel is only silence (with
the correct length).

I tried also to convert the .wav to .au using sox, but the result was
the same when loading the .au file.

Also, when hitting "sync" and then "play" from the lower right corner,
only the left channel plays.

Then I converted the audio file to mono (sox file.wav -c 1 monofile.wav)
and it loaded fine, and also played fine on both speakers.

Thus it seems it's a bug in the file loading part.

Some info about my system:

distribution: Gentoo Linux
cpu:          AMD Athlon 64
sizeof(int):  4
sizeof(long): 8

$ snd --version
This is Snd version 7.10 of 11-Feb-05:
    no embedded language
    ALSA 1.0.8
    Sndlib 19.9 (7-Feb-05, float samples)
    CLM 3.10 (7-Feb-05)
    Gtk+ 2.4.13, Glib 2.4.8, Pango 1.6.0
    LADSPA 1.1
    with large file support
    with gettext:
LC_CTYPE=fi_FI@euro;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C
    Compiled Mar 14 2005 11:40:56
    C: 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
    Libc: 2.3.4.20041102

    configured via: ./configure --prefix=/usr --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib
--with-ladspa --with-float-samples --with-float-sample-width --with-alsa
--without-esd --with-gtk --without-guile --without-ruby --with-x

$ ldd /usr/bin/snd
    libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0
    libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0
    libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0
    libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0
    libm.so.6 => /lib/tls/libm.so.6
    libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0
    libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0
    libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0
    libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
    libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
    libdl.so.2 => /lib/libdl.so.2
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
    libasound.so.2 => /usr/lib/libasound.so.2
    libc.so.6 => /lib/tls/libc.so.6
    libX11.so.6 => /usr/lib/libX11.so.6
    libXrandr.so.2 => //usr/lib/libXrandr.so.2
    libXi.so.6 => //usr/lib/libXi.so.6
    libXinerama.so.1 => //usr/lib/libXinerama.so.1
    libXft.so.2 => //usr/lib/libXft.so.2
    libfreetype.so.6 => //usr/lib/libfreetype.so.6
    libfontconfig.so.1 => //usr/lib/libfontconfig.so.1
    libXfixes.so.3 => //usr/lib/libXfixes.so.3
    libXcursor.so.1 => //usr/lib/libXcursor.so.1
    libXrender.so.1 => //usr/lib/libXrender.so.1
    libXext.so.6 => //usr/lib/libXext.so.6
    libpangoft2-1.0.so.0 => //usr/lib/libpangoft2-1.0.so.0
    /lib64/ld-linux-x86-64.so.2
    libpthread.so.0 => /lib/tls/libpthread.so.0
    libexpat.so.0 => /usr/lib/libexpat.so.0
    libz.so.1 => /lib/libz.so.1

I'm a programmer, so I could maybe have a shot at debugging the program
if you could give me some pointers what to do and where.. or maybe try
switching some libraries it uses, if you suspect that to be the problem.

Thanks for your time,

-- 
- xkr47