[PD] pd & alsa 0.9.0b9

CK x at meta.lo-res.org
Wed Nov 28 02:53:13 CET 2001


hi,

I'm finally moving towards the alsa drivers and got the latest (0.9.0beta9)
release, aplay and amixer work fine, oss emulation is also ok but pd when
started with the -alsa flag gives me :

.
.
> opened 0 MIDI input device(s) and 0 MIDI output device(s).
> audio buffer set to 40
> opening sound input...
> snd_pcm_hw_params_set_access (input): Invalid argument
> Sample width set to 2 bytes
> opening sound output...
> input channels = 2, output channels = 2
> port 5401
> TCL_LIBRARY=./tcl/library TK_LIBRARY=./tk/library ./bin/pd-gui 5401
> priority 96 scheduling enabled.
> memory locking enabled.
> Waiting for connection request... 
> priority 98 scheduling enabled.
> memory locking enabled.
> ./bin/pd-watchdog
> ... connected
> pd: pcm.c:472: snd_pcm_readi: Assertion `pcm->access == SND_PCM_ACCESS_RW_INTERLEAVED' failed.
> Pd: signal 6
> ALSA lib pcm_hw.c:145:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE failed: File descriptor in bad state
> snd_pcm_close (input): File descriptor in bad state
> test:/home/x/audio/sw/pd/pd-0.34-4# stdout: Broken pipe

could well be a bug in libasound, I was just wondering if anyone else already
messed around with that, 

if I use -noadc OTOH (since the above is a read access problem) everything 
works fine ...

card is ESS maestro 2e with snd-card-es1968 driver


BTW, I had to make the following changes to s_linux.c:

#ifdef ALSA01
#include <alsa/asoundlib.h>   /* The include file path changed .... */
#endif
#ifdef ALSA99
#include <sys/asoundlib.h>   /* honestly ... */
#endif



regards,

x


-- 
chris at lo-res.org	Postmodernism is german romanticism with better
http://pilot.fm/	special effects. (Jeff Keuss / via ctheory.com)



More information about the Pd-list mailing list