Discussion:
squeezeplay + ubuntu 9.04 / Alsa / Pulseaudio
deverne
2009-10-28 21:11:48 UTC
Permalink
Hello,

I build squeezeplay from SVN (version 7947) on my Ubuntu 8.04
installation with Alsa and PulseAudio sound server.

It took a lot of tries to understand that it was better to run in bin
directory (not in parent) otherwise I got some execve failed...

Without being root, I took a:
audio.codec - decode_alsa_init:218 shmget error Permission denied

When being root, I got:
20091028 21:01:41.147 DEBUG pcm_test:676 max sample rate 192000
20091028 21:01:41.147 DEBUG audio_thread_execute:702
audio_thread_execute
20091028 21:01:41.149 ERROR _pcm_open:517 Access type not available:
Invalid argument
20091028 21:01:41.149 ERROR audio_thread_execute:718 Playback open
failed: Invalid argument
20091028 21:01:41.149 ERROR audio_thread_execute:916 Audio thread
exited

After looking at the code and searching on Internet, it appears that
using Pulse Audio, it is not possible to assert that sound card pcm
access is done through MMAP (SND_PCM_ACCESS_MMAP_INTERLEAVED). More
information on this here: www . pulseaudio.org / ticket / 94
and here: svn.mythtv.org/trac/ticket/3598 (MythTV had the same issue)
(I remove the http part because it is my first post...)

To be honest, I'm quite motivated to find a solution. It looks like SVN
activity is low... Hope I will get an answer.

Deverne
--
deverne
------------------------------------------------------------------------
deverne's Profile: http://forums.slimdevices.com/member.php?userid=33915
View this thread: http://forums.slimdevices.com/showthread.php?t=70548
ralphy
2009-10-29 10:42:05 UTC
Permalink
You need to update the portaudio_v19_1360 directory under src with a
newer snapshot of libportaudio.
The current svn revision 1420 supports the pulseaudio MMAP audio
devices.

Grab a current snapshot from 'here'
(http://www.portaudio.com/archives/pa_snapshot.tgz).

# Extract the tarball in the src directory
tar -xzf pa_snapshot.tgz

# Rename the directories
mv portaudio_v19_1360 portaudio_v19_1360.old
mv portaudio portaudio_v19_1360

# Build
make -f Makefile.linux
--
ralphy
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=70548
Loading...