|
From: David W. <da...@da...> - 2014-02-08 14:50:36
|
On (08/02/14 14:25), Dave Woodfall <da...@da...> put forth the proposition: >On (08/02/14 13:59), Dave Woodfall <da...@da...> put forth the proposition: >>On (08/02/14 11:50), Ralf Jung <po...@ra...> put forth the proposition: >>>Hi, >>> >>>> Hi, I'm trying to build on slackware 14.1 and I've tried building >>>> against fuse 2.8.5 and 2.9.3. These are my build options/command: >>>> >>>> OSSPD_CFLAGS="$SLKCFLAGS -D_FILE_OFFSET_BITS=64" \ >>>> OSSPD_LDFLAGS="-I/usr/include/fuse" \ >>>> make osspd >>>This does not make much sense, why do you pass "-I" to the linker? I >>>suppose this should rather be "-lfuse" or similar. >>>However, none of this should be necessary, osspd uses pkg-config to find >>>the libraries. >>> >>>$ pkg-config --libs fuse >>>-pthread -lfuse >> >>For some reason it wasn't picking up where the fuse files were located. >> >>I managed to get it to build and run now (I had to change the #include >>lines that reference fuse to fuse/fuse_whatever.h). >> >>Now I can play sounds as root but as user I'm getting permission >>denied: >> >>gst-launch-0.10 filesrc location=/home/david/sounds/chat2.wav ! decodebin2 ! audioconvert ! audioresample ! osssink device=/dev/dsp >>Setting pipeline to PAUSED ... >>ERROR: Pipeline doesn't want to pause. >>ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. You don't have permission to open the device. >>Additional debug info: >>gstosssink.c(408): gst_oss_sink_open (): /GstPipeline:pipeline0/GstOssSink:osssink0: >>system error: Permission denied >>Setting pipeline to NULL ... >>Freeing pipeline ... >> >>I've been following this: >> >>https://fedoraproject.org/wiki/Features/OSSProxy >> >>I'm in the audio and cuse groups and I even tried chmoding /dev/dsp etc a+rw, >>then chowning as david:users but nothing seems to work. > >Ok. I managed to fix it by running osspd asmy user rather than root. > >Problem now is that the sound cuts off 1/2 second or so from the >end with that gst-launch command. When running Unreal Tournament (1999 >version) the sound only comes through at intervals and is very choppy. Also fixed by switching to generic audio from ALAudio in UT. Seems to work great. Thanks for a nice application. I've been looking for a solution to this since I got my T420. Cheers |