Div by zero bug in driver_alsa.c:364, count = 0
This happens with all mp3s and oggs. mplayer/aplay play them fine. Let me know if you need any other info!
---
moogman@gribblitz:~/sweep-0.9.2/src$ gdb --args ./sweep ~/Dan\ Marshall\ -\ Jungle\ Jazz.mp3
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /home/moogman/sweep-0.9.2/src/sweep /home/moogman/Dan\ Marshall\ -\ Jungle\ Jazz.mp3
[Thread debugging using libthread_db enabled]
[New Thread -1209325904 (LWP 10897)]
[New Thread -1212839024 (LWP 10900)]
[Thread -1212839024 (LWP 10900) exited]
[New Thread -1222849648 (LWP 10920)]
sweep: alsa_setup: audio interface does not support host endian 32 bit float samples (Invalid argument)
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1222849648 (LWP 10920)]
0x0805d0bc in alsa_device_write (handle=0x8329028, buf=0x0, count=0, offset=-1) at driver_alsa.c:364
364 uframes = count / handle->driver_channels;
(gdb) bt
#0 0x0805d0bc in alsa_device_write (handle=0x8329028, buf=0x0, count=0, offset=-1) at driver_alsa.c:364
#1 0x0806fa53 in play_active_heads () at play.c:896
#2 0x4da7f46b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#3 0x4d9fb6de in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) print count
$1 = 0
(gdb) print handle->driver_channels
$2 = 0
(gdb) print *handle
$5 = {driver_flags = 1, driver_fd = 0, driver_channels = 0, driver_rate = 0, custom_data = 0x83438a8}
Logged In: YES
user_id=855557
Originator: YES
moogman@gribblitz:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ICH6 [Intel ICH6], device 0: Intel ICH [Intel ICH6]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: ICH6 [Intel ICH6], device 4: Intel ICH - IEC958 [Intel ICH6 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
moogman@gribblitz:~$ aplay -L
default:CARD=ICH6
Intel ICH6, Intel ICH6
Default Audio Device
front:CARD=ICH6,DEV=0
Intel ICH6, Intel ICH6
Front speakers
surround40:CARD=ICH6,DEV=0
Intel ICH6, Intel ICH6
4.0 Surround output to Front and Rear speakers
surround41:CARD=ICH6,DEV=0
Intel ICH6, Intel ICH6
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=ICH6,DEV=0
Intel ICH6, Intel ICH6
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=ICH6,DEV=0
Intel ICH6, Intel ICH6
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
null
Discard all samples (playback) or generate zero samples (capture)