Coder Social home page Coder Social logo

apulse's People

Contributors

dscharrer avatar ericonr avatar exaexa avatar hishamhm avatar i-rinat avatar jolange avatar olafhering avatar timgates42 avatar xrevan86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apulse's Issues

Skype [apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято

Привет, Ринат!
У меня опять проблемы со скайпом и с переменной окружения APULSE_PLAYBACK_DEVICE="plughw:0,0".
При загрузке скайпа с этой переменной
LD_LIBRARY_PATH='/usr/lib/apulse' APULSE_CAPTURE_DEVICE="plughw:0,0" APULSE_PLAYBACK_DEVICE="plughw:0,0" skype
получаю эти уведомления

[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято
[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято

При этом сам скайп видит pulse-сервер но не издаёт ни звука.
При этом при дозвоне на echo123 наглухо виснет.

При загрузке скайпа без этой переменной.
LD_LIBRARY_PATH='/usr/lib/apulse' APULSE_CAPTURE_DEVICE="plughw:0,0" skype
Скайп работает условно нормально. (Раньше без неё у меня звук пропадал при разговоре, сейчас пока проверить это не могу.)

При этом я отключил всё, что может захватывать звуковуху, включая mpd, разве-что кроме KDE, в мультимедийных настройках которого, как и раньше, указан Gstreamer-овский default.

Ещё у меня установлен эквалайзер alsaequal и в ~/.asound

ctl.equal {
	type equal;
}

pcm.plugequal {
	type equal;
	slave.pcm "plug:dmix";
}

pcm.equal {
	type plug;
	slave.pcm plugequal;
}

Пробовал переименовать файл и запускать skype, но результат тот же, да и раньше это проблем не вызывало.

В чём может быть проблема? Куда копать и что можно поставить в APULSE_PLAYBACK_DEVICE вместо plughw:0,0?

latest git ( rev g840792f) allows firefox 52 without alsa support to use sound on Arch Linux, when is next release ?

Mozilla decided to deprecate alsa support from firefox 52.
I used arch linux aur apulse-git[1] package, and tested with firefox-52.0-1 .

[2] was used to test things, and apulse-git succesfully made firefox believe pulseaudio was present.
Every test succeeded.

I intend to install apulse on several other AL systems i help maintain, but convincing the owners would be easier with a recent stable release.

Thank you for this program.

[1] https://aur.archlinux.org/packages/apulse-git/
[2] https://hpr.dogphilosophy.net/test/

Thank you for this

With Firefox 52+ dropping ALSA, thank you so much for this! This might be the only way to still use Firefox with ALSA.

interferences with google-chrome

hi
I have an amd64 gentoo system. I have never installed pulseaudio. I have install apulse, and skype is working back again (thanks a lot!). but since google-chrome is mute! firefox, vlc, everything else works, except google-chrome. Could it be because somehow google-chrome believes that I have pulseaudio installed?
any suggestion to fix that?

here is the new error message that popups each time I read a sound in google-chrome
ERROR:audio_manager_base.cc(250)] Invalid audio output parameters received; using fake audio path. Channels: 2, Sample Rate: 0, Bits Per Sample: 16, Frames Per Buffer: 1024

and obviously i'm not the only one ...
http://forums.gentoo.org/viewtopic-p-7649684.html

Need to select device for capture without using dsnoop

Thanks for this project that permit us to get rid of pulseaudio to use Skype.

The only way I get to use apulse with skype is using this .asoundrc:

pcm.duplex {
    type asym
    playback.pcm "dmix"
    capture.pcm "dsnoop"
}
pcm.!default {
    type plug
    slave.pcm "duplex"
}

That works using the Echo/Sound test of skype but that don't work for long in real call:
it works for few minutes and suddenly, no sound is hearing anymore by my voice call mate.

The fact that I use a real audio card with hardware mixing so I don't need dsnoop/dmix combo.
And last point my default output is hw:0,0 but my microphone capture is on hw:0,1.

How can I tell a pulse to use hw0,0 and hw0,1 as respectively my playback/capture device ?

Cant get apulse working on Arch-Linux

Hi there,

i installed apulse to get Skype working on Arch-Linux. But somehow i cant get it working. In the Skype Option Menu the Speakers "Virtual Device" is listed. But neither the testsound or a testcall work.

Also with the command "APULSE_PLAYBACK_DEVICE=hw:0,0 skype" i cant get it working. My "aplay -l" output is:

[indy@WinArch ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

My used Soundcard with Alsa is the HDA Intel PCH.

thanks!

Segfault with spicy

I'm trying to run:

apulse spicy --host=127.0.0.1 --port=5931 --full-screen

And getting this in systemd journal:

Mar 31 14:23:53 arch systemd-coredump[13817]: Process 13810 (spicy) of user 1000 dumped core.
                                              Stack trace of thread 13810:
                                              #0  0x00007f0915fbeb88 main_arena (libc.so.6)
-- Subject: Process 13810 (spicy) dumped core
-- Process 13810 (spicy) crashed and dumped core.
Mar 31 14:23:56 arch kernel: spicy[13824]: segfault at 7fd0c6bfeb58 ip 00007fd0c6bfeb58 sp 00007ffc3ea08f38 error 15 in libc-2.23.so[7fd0c6bfe000+2000]

Here's my .asoundrc (sound works fine):

pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:1,0"
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 44100
    }
    bindings {
        0 0
        1 1
    }
}

Skype doesn't see my mic

I can hear sound from skype, skype can't hear me.
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

audacity records mic from front mic
https://yadi.sk/i/TZ-kYrI3eDzZB - debug output

Cannot answer incoming calls

Skype works well for me in that I can make the standard test call and hear myself back. However, if somebody calls me, and I click to answer, that window disappears but I still hear the ringing and see,

[apulse] [error] do_connect_pcm, snd_pcm_open, Device or resource busy
[apulse] [error] do_connect_pcm, snd_pcm_open, Device or resource busy

I am using the v0.1.5 tag, invoked with,

$ APULSE_CAPTURE_DEVICE=plughw:1,0,0 APULSE_PLAYBACK_DEVICE=plughw:1,0,0 schroot apulse skype

My Skype is 4.3.0.37 under a 32-bit chroot.

On Firefox, muting one tab mutes them all

Using Firefox 52 with apulse 0.1.9 and the dmix ALSA 1.1.3 plugin, Firefox can play audio from multiple tabs simultaneously and it works great.

When playing audio in multiple tabs, each tab gets a mute button. With direct ALSA+dmix in Firefox 51, this worked well, and tabs could be muted individually. With apulse, however, pressing "mute" on one tab is muting them all.

When I disable dmix, Firefox+apulse can't play multiple tabs simultaneously, so mixing is happening at ALSA level, so I assume apulse is sending separate streams for each tab via ALSA. I note also that the device does not get muted, so I believe apulse is muting "via software" (ie, not sending a mute command to the actual device).

This is my ~/.asoundrc to get software mixing via dmix working (but I have no reason to assume the same issue isn't happening with cards that do hardware mixing)

pcm.!default {
   type plug
   slave.pcm "dmix"
}
pcm.dmix  {
    type dmix
    ipc_key 1024
    slave {
      pcm "hw:0,0"
      period_time 0
      period_size 1024
      buffer_size 8192
   }
   bindings {
      0 0
      1 1
   }
}
ctl.dmix {
   type hw
   card 0
}
ctl.!default {
   type hw
   card 0
}

Thank you for apulse, it has become an essential tool in my system!

Apulse fails when an application opens a specially configured record device

I have two audio devices. The first one is a builtin IntelHDA sound card and the second one is a USB microphone. This setup will only work if I have a specially crafted .asoundrc. Here it is:

pcm.logitech
{
    type hw
    card LogitechUSB
}

pcm.usb
{
    type dsnoop
    ipc_key 234884
    ipc_perm 0666
    ipc_gid audio
    slave {
        pcm logitech
    }
}

pcm.!default
{
    type asym
    playback.pcm
    {
        type plug
        slave.pcm "dmix"
    }
    capture.pcm
    {
        type plug
        slave.pcm "usb"
    }
}

This file makes my USB microphone the default recording device. The problem with this set up is that Skype record ~0.5 seconds of audio and then fails.

It can be easily reproduced this way. Run this command, it will work:

$ apulse ffmpeg -f pulse -i default /tmp/pulse.wav

Now run it again (it will ask to overwrite the existing file), and ffmpeg will stall after recording exactly 51,278 bytes of audio. It seems like apulse fails when a recording device is routed via dsnoop and it's quickly reopened.

Capture stops after a while

I have this weird problem with skype, after some time in a conversation microphone just stops working. It could be anything from 30 minutes to 2 hours. I don't know what other information I need to provide at the moment.

Respect libdir suffix

Hi and thank you for a great piece of software allowing us to run skype without pulseaudio on 0Linux,

your cmake file does not allow one to respect an alternate suffix for libdir. Could you add one ? Typically, projects usually provide a -DLIB_SUFFIX="suffix" extra paramater to allow to install in a /usr/lib64 dir, for example.

Moreover, this is quite needed in a mulitlib environment (like 0Linux has). So for now I have to move libs in a temp dir then replace them at each build (I need a 32-bit build and a 64-bit one into the same package).
See: https://github.com/0linux/0linux/blob/master/0Linux/a/apulse/apulse.recette

Thanks!

microphone doesn't work with skype

Skype play sounds ok, but microphone doesn't work in skype at all. While skype test call (echo123) when it tries to play back my recording instead of 10 second (of silence) I get only about 0.5-1 sec between before/after "beeps", which gives me idea it may be related to wrong sample rate.

I've this issue with apulse 0.1.2, 0.1.3 and dev branch.
My system is 64-bit Gentoo Linux, skype-4.3.0.37, sound card SB Audigy 2 ZS [SB0350].
Skype is 32-bit, so I'm running /usr/bin/i686-pc-linux-gnu-apulse skype.
I've tried without ~/.asoundrc and with ~/.asoundrc from issue #14.
I've also tried APULSE_CAPTURE_DEVICE=plughw:0,0 /usr/bin/i686-pc-linux-gnu-apulse skype.

Testing microphone with arecord/aplay and alsamixer show everything is fine (mic volume is ok, wav file recorded and played correctly). With pulseaudio microphone in skype also works ok.

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 1: emu10k1 mic [Mic Capture]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 ZS [SB0350]], device 4: p16v [p16v]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

[apulse] [error] do_connect_pcm, snd_pcm_open, Device or resource busy

Apulse with Skype works perfectly until I put the computer to sleep (S3). When it wakes up, Skype returns:

[apulse] [error] do_connect_pcm, snd_pcm_open, Device or resource busy
[apulse] [error] do_connect_pcm, snd_pcm_open, Device or resource busy

My ~/.asoundrc is very simple:

pcm.!default {
         type asym
         playback.pcm {
                 type plug
                 slave.pcm "dmix:2,0"
         }
         capture.pcm {
                 type plug
                 slave.pcm "dsnoop:0,0"
         }
}

And I start Skype with the following line:

APULSE_PLAYBACK_DEVICE=plughw:2,0 APULSE_CAPTURE_DEVICE=plughw:0,0 /usr/local/bin/apulse /usr/local/skype/skype

So, any hints?

Ps: when this happens, I have to reboot again to make Skype work again.

Add compatibility for Musl C

--- apulse-0.1.5/src/apulse-threaded-mainloop.c
+++ apulse-0.1.5/src/apulse-threaded-mainloop.c.new
@@ -105,7 +105,7 @@
     m->m = pa_mainloop_new();

     pthread_mutexattr_init(&mutex_attr);
-    pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE_NP);
+    pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE);
     pthread_mutex_init(&m->lock, &mutex_attr);
     pthread_mutexattr_destroy(&mutex_attr);

This patch is required for building in Musl C.

sound in skype stops working right after the launch sound

It writes to the console just after the sound ends:

ALSA lib /var/tmp/paludis/media-libs-alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm_dsnoop.c:654:(snd_pcm_dsnoop_open) unable to open slave
[apulse] [error] do_connect_pcm, snd_pcm_open, Дескриптор файла в плохом состоянии
[apulse] [error] do_connect_pcm, snd_pcm_open, Дескриптор файла в плохом состоянии

I'm using apulse-0.1.7 with skype-4.3.0.37 in Gentoo.

Skype виснет когда работает Amarok

Приветствую i-rinat!

Настраивал apulse как описано тут http://habrahabr.ru/post/241045/

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:0,0"
}
}

Если работает Amarok, то вываливается эти сообщения.

[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято
[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято

32bit apulse libraries in /usr/lib64 instead of /usr/lib32

When compiling "32-bit binaries on 64-bit machine" option, we have 32-bit binaries in /usr/lib64 folder:

wiselord lib # file /usr/lib64/apulse/libpulse.so.0
/usr/lib64/apulse/libpulse.so.0: ELF 32-bit LSB shared object, Intel 80386...,

because /usr/lib is usually just a link to /usr/lib64.

Maybe it'd be better to place apulse libraries to /usr/lib32/apulse by default when "CFLAGS=-m32" is used?

Also this can allow to compile both 32/64 apulse binaries at the same time

Не устанавливается через checkinstall -D в Debian

Не проходит checkinstall -D в Debian. Директория build. Пишет следующее:

Installing with make install...
========================= Результаты установки ===========================
make[2]: *** Нет правила для сборки цели «../src/trace.c», требуемой для «CMakeFiles/trace-helper.dir/src/trace.c.o». Останов.
CMakeFiles/Makefile2:165: ошибка выполнения рецепта для цели «CMakeFiles/trace-helper.dir/all»
make[1]: *** [CMakeFiles/trace-helper.dir/all] Ошибка 2
Makefile:117: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
**** Установка неудачна. Отменяется создание пакета.
Очищается...OK
Удачи.

В то же время make install в директории build проходит нормально:

[ 6%] Building C object CMakeFiles/trace-helper.dir/src/trace.c.o
Linking C static library libtrace-helper.a
[ 6%] Built target trace-helper
Linking C shared library libpulse.so
[ 87%] Built target pulse
Linking C shared library libpulse-simple.so
[ 93%] Built target pulse-simple
Linking C shared library libpulsecommon-5.0.so
[100%] Built target pulsecommon-5.0
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/bin/apulse
-- Installing: /usr/lib/apulse/libpulse-simple.so.0
-- Installing: /usr/lib/apulse/libpulse-simple.so
-- Installing: /usr/lib/apulse/libpulsecommon-5.0.so
-- Installing: /usr/lib/apulse/libpulse.so.0
-- Installing: /usr/lib/apulse/libpulse.so

Audio glitchiness in Firefox after its been left open for a while

I don't know if the problem is with Firefox (as it has similar problems on Windows), but I thought I'd try here first.

I tend leave Firefox open for long periods of time. I find that, when I come back after a long period (12 hours or more) and then load a video, the audio is all glitchy and stuttery, as if there is not enough memory and it is having to cache to disk. But my I don't use a swap partition on my Linux distro, so that's not it. I also hear similar problems when a process is running the CPU at 100%, but that is also not the case with this bug.

The Windows issue I mention earlier often clears up as the video continues playing. But, with this bug, only restarting Firefox works to fix it.

If I have left Firefox on a particular video tab, sometimes that video's audio is fine. But any other videos (whether from another tab or loading from somewhere else) is quite glitchy sounding.

So, tl;dr version: Firefox (52.0.2) audio stutters really badly on videos if I have left Firefox open for a long period of time (>12 hours). Restarting Firefox fixes the problem.

The stuttering is similar to what happens when the CPU is overtaxed, or when the computer is running out of memory, but neither is the case for this bug.

sandbox blocks open in firefox 54

open("/dev/snd/controlC0", O_RDWR) is blocked by sandbox. workaround: set security.sandbox.content.write_path_whitelist to /dev/snd/controlC0,/dev/snd/pcmC0D0p.

possible things to do in apulse:

  1. pre-initialize ALSA before forking?
  2. hackaround the sandbox
  3. print better error messages (if possible), document this issue

Captured Sound is too fast (Chipmunk effect)

I am using a Logitech USB webcam with integrated microphone. Before the pulse-only update I had no Problems running Skype. Now I tried the apulse emulator and the recorded sound is way to fast. It seems this is a know bug with pulseaudio and Logitech webcams (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/843431), but for a workaround one has to set the default-sample-rate in the pulse daemon. I tried to set the sample rate in asoundrc but it did not work.
Is there a solution with apulse possible?

apulse no longer be build on openSUSE Tumbleweed (glib-2.48 and alsa-1.1.1)

After the next update openSUSE Tumbleweed apulse no longer be build. (glib-2.48 and alsa-1.1.1)

sudo zypper in gcc-32bit gcc-c++-32bit glib2-devel-32bit alsa-devel-32bit

d=apulse && cd /tmp && git clone git://github.com/i-rinat/$d.git && cd $d && F="-m32 -march=native -msse3 -O3 -fomit-frame-pointer -pipe -DNDEBUG" && cmake -LA -DCMAKE_C_FLAGS_RELEASE="$F" -DCMAKE_CXX_FLAGS_RELEASE="$F" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr && make -j4 && sudo make install && cd .. && rm -rf $d

Клонирование в «apulse»…
remote: Counting objects: 385, done.
remote: Total 385 (delta 0), reused 0 (delta 0), pack-reused 385
Получение объектов: 100% (385/385), 187.25 KiB | 0 bytes/s, готово.
Определение изменений: 100% (244/244), готово.
Проверка соединения… готово.
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for modules 'glib-2.0;alsa'
--   Found glib-2.0, version 2.48.0
--   Found alsa, version 1.1.1
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/apulse
-- Cache values
APULSEPATH:PATH=/usr/lib/apulse
APULSE_SEARCH_PATHS:PATH=/usr/lib/apulse
CMAKE_AR:FILEPATH=/usr/bin/ar
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_COLOR_MAKEFILE:BOOL=ON
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-m32 -march=native -msse3 -O3 -fomit-frame-pointer -pipe -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS_DEBUG:STRING=-g
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-m32 -march=native -msse3 -O3 -fomit-frame-pointer -pipe -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_EXE_LINKER_FLAGS:STRING=
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
CMAKE_INSTALL_PREFIX:PATH=/usr
CMAKE_LINKER:FILEPATH=/usr/bin/ld
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
CMAKE_MODULE_LINKER_FLAGS:STRING=
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_NM:FILEPATH=/usr/bin/nm
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
CMAKE_SHARED_LINKER_FLAGS:STRING=
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
CMAKE_SKIP_RPATH:BOOL=NO
CMAKE_STATIC_LINKER_FLAGS:STRING=
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_STRIP:FILEPATH=/usr/bin/strip
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config
USE_BUNDLED_PULSEAUDIO_HEADERS:STRING=1
WITH_TRACE:STRING=0
Scanning dependencies of target trace-helper
[  5%] Building C object CMakeFiles/trace-helper.dir/src/trace.c.o
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /tmp/apulse/src/trace.h:28,
                 from /tmp/apulse/src/trace.c:30:
/usr/include/glib-2.0/glib/gtypes.h: В функции «_GLIB_CHECKED_ADD_U64»:
/usr/include/glib-2.0/glib/gmacros.h:217:53: ошибка: size of array «_GStaticAssertCompileTimeAssertion_0» is negative
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr)
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:214:47: замечание: in definition of macro «G_PASTE_ARGS»
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:217:44: замечание: in expansion of macro «G_PASTE»
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr)
                                            ^
/usr/include/glib-2.0/glib/gtypes.h:422:3: замечание: in expansion of macro «G_STATIC_ASSERT»
   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
   ^
CMakeFiles/trace-helper.dir/build.make:62: ошибка выполнения рецепта для цели «CMakeFiles/trace-helper.dir/src/trace.c.o»
make[2]: *** [CMakeFiles/trace-helper.dir/src/trace.c.o] Ошибка 1
CMakeFiles/Makefile2:67: ошибка выполнения рецепта для цели «CMakeFiles/trace-helper.dir/all»
make[1]: *** [CMakeFiles/trace-helper.dir/all] Ошибка 2
Makefile:127: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

Failure setting up channels

The call to snd_pcm_hw_params_set_channels in do_connect_pcm may fail, it should probably be replaced by one of it's alternatives, or at least just not abort if it fails.

Project status

Rinat,

Please remove this "Project is in stale state since its proclamation. The main objective, working Skype test call, is reached. I don't have any plans for further development."

It frightens people. Apulse works better than you make it look.

Thank you.

Apulse crashes the application if the chosen device doesn't provide required functions (input/output)

Mozilla developers have lost their mind and made pulseaudio mandatory in Firefox 52. ALSA support was completely removed.

The test page: https://hpr.dogphilosophy.net/test/

$ apulse firefox
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
[apulse] [error] do_connect_pcm, snd_pcm_open, No such file or directory
[apulse] [error] do_connect_pcm, snd_pcm_open, No such file or directory
firefox: pcm.c:693: snd_pcm_close: Assertion `pcm' failed.
ExceptionHandler::GenerateDump cloned child 24092
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

I'm running the git master release (840792f).
Apulse and Firefox are native x86-64 binaries.
Firefox is from: https://ftp.mozilla.org/pub/firefox/releases/52.0/linux-x86_64-EME-free/en-US/firefox-52.0.tar.bz2
Distro: Fedora 25, 64.

segfault with obs-studio

When adding an input or output source from pulseaudio in obs-studio, the whole thing segfaults. A simple test with ffmpeg recording works fine, so I can confirm my setup is properly configured. Trace information shows all this:

1432303328.743 [apulse 23775] F pa_threaded_mainloop_new (void)
1432303328.743 [apulse 23775] F pa_mainloop_new (void)
1432303328.743 [apulse 23775] F pa_mainloop_set_poll_func m=0x3e744f0, poll_func=0x7f2bd83796da, userdata=0x3e74478
1432303328.743 [apulse 23775] F pa_threaded_mainloop_start m=0x3e74470
1432303328.743 [apulse 23823] F pa_mainloop_run
1432303328.743 [apulse 23775] F pa_threaded_mainloop_lock m=0x3e74470
1432303328.743 [apulse 23823] F pa_mainloop_iterate m=0x3e744f0, block=1
1432303328.744 [apulse 23823] P pa_mainloop_prepare m=0x3e744f0, timeout=1000
1432303328.744 [apulse 23823] F pa_mainloop_poll m=0x3e744f0
1432303328.744 [apulse 23775] F pa_proplist_new (void)
1432303328.744 [apulse 23775] F pa_proplist_sets p=0x3e7b260, key=application.name, value=OBS
1432303328.744 [apulse 23775] F pa_proplist_sets p=0x3e7b260, key=application.icon_name, value=obs
1432303328.744 [apulse 23775] F pa_proplist_sets p=0x3e7b260, key=media.role, value=production
1432303328.744 [apulse 23775] F pa_threaded_mainloop_get_api m=0x3e74470
1432303328.744 [apulse 23775] F pa_context_new_with_proplist mainloop_api=0x3e744f0, name=OBS, proplist=0x3e7b260
1432303328.744 [apulse 23775] F pa_context_set_state_callback c=0x3e330d0, cb=0x7f2baceb6660, userdata=(nil)
1432303328.744 [apulse 23775] P pa_context_connect c=0x3e330d0, server=(null), flags=1, api=(nil)
1432303328.744 [apulse 23775] F pa_context_ref c=0x3e330d0
1432303328.744 [apulse 23775] F ml_api_defer_new
1432303328.744 [apulse 23775] F pa_mainloop_wakeup m=0x3e744f0
1432303328.744 [apulse 23775] F pa_proplist_free p=0x3e7b260
1432303328.744 [apulse 23775] F pa_threaded_mainloop_unlock m=0x3e74470
1432303328.744 [apulse 23775] F pa_threaded_mainloop_lock m=0x3e74470
1432303328.744 [apulse 23823] F pa_mainloop_dispatch m=0x3e744f0
1432303328.744 [apulse 23823] F pa_threaded_mainloop_signal m=0x3e74470, wait_for_accept=0
1432303328.744 [apulse 23823] F pa_context_unref c=0x3e330d0
1432303328.744 [apulse 23823] F pa_mainloop_iterate m=0x3e744f0, block=1
1432303328.744 [apulse 23823] P pa_mainloop_prepare m=0x3e744f0, timeout=1000
1432303328.744 [apulse 23823] F pa_mainloop_poll m=0x3e744f0
1432303328.744 [apulse 23775] F pa_context_get_state c=0x3e330d0
1432303328.744 [apulse 23775] F pa_context_get_state c=0x3e330d0
1432303328.744 [apulse 23775] F pa_threaded_mainloop_unlock m=0x3e74470
1432303328.744 [apulse 23775] F pa_threaded_mainloop_lock m=0x3e74470
1432303328.744 [apulse 23775] Z pa_context_get_server_info
1432303328.744 [apulse 23775] F pa_operation_get_state o=(nil)

I'm not really very experienced with all this so I can't really tell what the source of the problem could be. All I see is that line 131 in apulse-operation.c is dereferencing a null pointer.

Debian 7.8 on amd64 won't let me install the i386 prerequisites

thoth:~/proj/misc/apulse/build$ make
...
[ 66%] Building C object CMakeFiles/pulse.dir/src/apulse-threaded-mainloop.c.o
[ 73%] Building C object CMakeFiles/pulse.dir/src/util.c.o
[ 80%] Building C object CMakeFiles/pulse.dir/src/ringbuffer.c.o
[ 86%] Building C object CMakeFiles/pulse.dir/src/notimplemented.c.o
Linking C shared library libpulse.so
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lasound
collect2: error: ld returned 1 exit status
make[2]: *** [libpulse.so.0] Error 1
make[1]: *** [CMakeFiles/pulse.dir/all] Error 2
make: *** [all] Error 2
herman:~/proj/misc/apulse/build$

I suppose this is because it wants glib-2.0 and asound compiled as i386. However, Debian won't let me install them alongside the amd64 versions.

herman:~/proj/misc/apulse/build$ sudo apt-get install libglib2.0-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  comerr-dev gir1.2-gtk-3.0 krb5-multidev libavahi-common-dev libcaca-dev
  libcairo-script-interpreter2 libdirectfb-dev libdirectfb-extra libflac-dev
  libfreetype6-dev libgcrypt11-dev libgnutls-dev libgnutls-openssl27
  libgnutlsxx27 libgpg-error-dev libgssrpc4 libjpeg8-dev libkadm5clnt-mit8
  libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev libp11-kit-dev
  libpcrecpp0 libpixman-1-dev libpng12-dev libreadline-dev libreadline6-dev
  librtmp-dev libslang2-dev libssh2-1-dev libtasn1-3-dev libts-dev
  libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev
  libxdamage-dev libxfixes-dev libxinerama-dev libxml2-dev libxml2-utils
  libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-randr-dev x11proto-render-dev
  x11proto-xinerama-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpcre3-dev:i386 libpcrecpp0:i386 pkg-config:i386 zlib1g-dev:i386
Suggested packages:
  libglib2.0-doc:i386
Recommended packages:
  python:i386
The following packages will be REMOVED:
  libatk1.0-dev libavahi-client-dev libcairo2-dev libcurl4-openssl-dev
  libdbus-1-dev libfluidsynth-dev libfontconfig1-dev libgdk-pixbuf2.0-dev
  libglade2-dev libglib2.0-dev libgtk-3-dev libgtk2.0-dev libidn11-dev
  libjack-dev libmpeg2-4-dev libpango1.0-dev libpcre3-dev libpulse-dev
  libsamplerate0-dev libsdl1.2-dev libsndfile1-dev libxft-dev nvidia-settings
  pkg-config
The following NEW packages will be installed:
  libglib2.0-dev:i386 libpcre3-dev:i386 libpcrecpp0:i386 pkg-config:i386
  zlib1g-dev:i386
0 upgraded, 5 newly installed, 24 to remove and 15 not upgraded.
Need to get 2,768 kB of archives.
After this operation, 51.0 MB disk space will be freed.
Do you want to continue [Y/n]?

[Feature request] Have apulse receive tcp libpulse audio

I'm not sure if it's even possible but it would be neat for a little system I have that has working alsa but not quite enough power to run pulseaudio. Was hoping I could just pipe audio to it with the tcp part of pulseaudio.

Cannot link 32 bit version

I'm trying to compile 32 bit version to run skype without active pulseaudio.
I'm not familiar with cmake, so I cannot find what is wrong.
Looks like linker cannot find 32bit libraries, but they are present, and ldconfig -p shows them too.

Here is the output:

[root@OrcogreCastle apulse-0.1.7]# mkdir build
[root@OrcogreCastle apulse-0.1.7]# cd build/
[root@OrcogreCastle build]# CFLAGS=-m32 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/share/colorgcc/cc
-- Check for working C compiler: /usr/share/colorgcc/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/share/colorgcc/c++
-- Check for working CXX compiler: /usr/share/colorgcc/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for modules 'glib-2.0;alsa'
-- found glib-2.0, version 2.42.1
-- found alsa, version 1.0.28
-- Configuring done
-- Generating done
-- Build files have been written to: /root/work/apulse/apulse-0.1.7/build
[root@OrcogreCastle build]# make
Scanning dependencies of target trace-helper
[ 6%] Building C object CMakeFiles/trace-helper.dir/src/trace.c.o
Linking C static library libtrace-helper.a
[ 6%] Built target trace-helper
Scanning dependencies of target pulse
[ 12%] Building C object CMakeFiles/pulse.dir/src/apulse-channel-map.c.o
[ 18%] Building C object CMakeFiles/pulse.dir/src/apulse-context.c.o
[ 25%] Building C object CMakeFiles/pulse.dir/src/apulse-format-info.c.o
[ 31%] Building C object CMakeFiles/pulse.dir/src/apulse-mainloop.c.o
[ 37%] Building C object CMakeFiles/pulse.dir/src/apulse-misc.c.o
[ 43%] Building C object CMakeFiles/pulse.dir/src/apulse-operation.c.o
[ 50%] Building C object CMakeFiles/pulse.dir/src/apulse-proplist.c.o
[ 56%] Building C object CMakeFiles/pulse.dir/src/apulse-signal.c.o
[ 62%] Building C object CMakeFiles/pulse.dir/src/apulse-stream.c.o
[ 68%] Building C object CMakeFiles/pulse.dir/src/apulse-threaded-mainloop.c.o
[ 75%] Building C object CMakeFiles/pulse.dir/src/util.c.o
[ 81%] Building C object CMakeFiles/pulse.dir/src/ringbuffer.c.o
[ 87%] Building C object CMakeFiles/pulse.dir/src/notimplemented.c.o
Linking C shared library libpulse.so
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.so when searching for -lglib-2.0
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib64/libasound.so when searching for -lasound
/usr/bin/ld: cannot find -lasound
collect2: error: ld returned 1 exit status
CMakeFiles/pulse.dir/build.make:386: recipe for target 'libpulse.so.0' failed
make[2]: *** [libpulse.so.0] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/pulse.dir/all' failed
make[1]: *** [CMakeFiles/pulse.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: * [all] Error 2
[root@OrcogreCastle build]# ll /usr/lib/libgl
libglapi.so.0 libglapi.so.0.0.0 libglib-2.0.so.0 libglib-2.0.so.0.4200.1
[root@OrcogreCastle build]# ll /usr/lib/libgli
libglib-2.0.so.0 libglib-2.0.so.0.4200.1
[root@OrcogreCastle build]# ll /usr/lib/libglib-2.0.so.0
lrwxrwxrwx 1 root root 23 Aug 2 2015 /usr/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.4200.1

[root@OrcogreCastle build]# ll /usr/lib/libasou
libasound.so.2 libasound.so.2.0.0
[root@OrcogreCastle build]# ll /usr/lib/libasound.so.2
lrwxrwxrwx 1 root root 18 Jun 18 2014 /usr/lib/libasound.so.2 -> libasound.so.2.0.0

[root@OrcogreCastle build]# uname -a
Linux OrcogreCastle 4.4.13-desktop-1.mga5 #1 SMP Fri Jun 10 12:16:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Bundled PulseAudio files

Hello Rinat,

First of all thank you for your job and this software.

I'm curious why you bundled pulseaudio headers instead of to require pulseaudio development files as build dependency. In Debian/Ubuntu we have libpulse-dev package (seems this package have all headers you needed), all others have similar.

P.S. I'm trying to package your software and upload it to official Debian repository.

bioshock: infinite crashes with apulse

gdb:

#0  __strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50
#1  0xf7b0e12e in al_string_copy_cstr () from ./libopenal-eon.so.1
#2  0xf7b206ab in ALCpulsePlayback_ALCbackend_open () from ./libopenal-eon.so.1
#3  0xf7afb037 in alcOpenDevice () from ./libopenal-eon.so.1
#4  0x0800e0dc in ?? ()
#5  0x0816fd9d in ?? ()
#6  0x0816f82c in ?? ()
#7  0x00f2f330 in ?? ()

I guess ALCpulsePlayback_ALCbackend_open gets a NULL pointer from apulse, I try to find out which function is called before that crash

Can't build apulse from sources in Linux Mint 17.3 (Mate) 64bit

Hi!

Thank you for making apulse!

I use a pure ALSA/JACK- system for professional A/V-production without Pulseaudio basing on Ubuntu 14.04/Linux Mint 17.3 with MATE-Desktop, 64bit: ( http://mayastudio.tumblr.com/64bit , http://qianastudio.tumblr.com )

Normally i feel really good with this - but to use skype i tried to get apulse with your little install-guide from page working, but i get following error-message while building:


$ CFLAGS=-m32 cmake -DAPULSEPATH=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=trusty
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- checking for modules 'glib-2.0;alsa'
--   package 'glib-2.0' not found
--   package 'alsa' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:8 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/studio/build/CMakeFiles/CMakeOutput.log".
See also "/home/studio/build/CMakeFiles/CMakeError.log".



 ~/build $ PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig CFLAGS=-m32 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=trusty
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- checking for modules 'glib-2.0;alsa'
--   package 'glib-2.0' not found
--   package 'alsa' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:8 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/studio/build/CMakeFiles/CMakeOutput.log".
See also "/home/studio/build/CMakeFiles/CMakeError.log"

Fact is that i have libglib2.0 and alsa installed - so i don't know how to handle with this error!
I read in another issue-report here, that is a "new" problem with glib?!?

Also i need the 32bit-install in usr/lib for skype.

So what to do? Is there an easy way to build apulse in 32bit on a 64bit Ubuntu/LinuxMint in 2017!?

cmake, build-essential, g++ and all dependencies .. i have installed!

Or will be there a 32bit-apulse.deb for Ubuntu-users in the future?!?? (LM and Ubuntu are the most choosen Linux-systems ;-) )

If i read the internet of how many people got problems to build apulse and/or to keep it working with e.g. skype i think it's the best time to offer this!

It's confusing enough to find the right config for .asoundrc for individual soundsettings in the net- because there are soooo many different options with dmix, dsnoop, duplex....

Alternative a good and actual online-manual of how to keep apulse (32bit) with skype working on Ubuntu/LM could make it better for many users.

Before i used the official building from sources, i tried this .deb-file of apulse specially for my Ubuntu- trusty-based distro from untrusted ppas: https://launchpad.net/~kirillshkrogalev/+archive/ubuntu/apulse/+packages

but i think it install itselfs in 64bit-modus!?

  • So it don't works with apulse skype: Skype has just virtual audio-channels like before!
  • with apulse32 skype i just get an error message!

Is there a way to bring this apulse-version to be in 32bit working with skype or another workaround how to fix this building-errors (see above)!???

Thanks for answer!

chalee

Video playback is choppy in Firefox when apulse is used

Video playback is choppy in Firefox when apulse is used. Looks like fps was significantly decreased, with random frame delays.

Reproduced with Firefox 51. When the same Firefox 51 is using ALSA directly, video playback is smooth.

Сегфолт в стиме

Стим по дефолту слинкован и юзает libpulse.so который так же есть в его бинарном рантайме.
Но при попытке использования нативных либ, и использовании apulse (0.1.4) вместо полноценной пульсы, при открытии настроек в стиме он сегфолтится.
Бектрейс:
#0 0xf5d3e048 in pa_operation_get_state () from /usr/lib32/apulse/libpulse.so.0 #1 0xefe8dd65 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #2 0xefe7a8a7 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #3 0xefe7f0e5 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #4 0xf025ae7c in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #5 0xf0115a3a in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #6 0xf0202a32 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #7 0xefd80b59 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #8 0xf0201e0e in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #9 0xefd7fc11 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #10 0xefd834a4 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #11 0xefd84180 in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/steamclient.so #12 0xf6d0d04a in SteamThreadTools::CThread::ThreadExceptionWrapper(void*) () from /home/yukarin/.local/share/Steam/ubuntu12_32/libtier0_s.so #13 0xf6d0b70c in ?? () from /home/yukarin/.local/share/Steam/ubuntu12_32/libtier0_s.so #14 0xf6d0b945 in CatchAndWriteMiniDumpExForVoidPtrFn () from /home/yukarin/.local/share/Steam/ubuntu12_32/libtier0_s.so #15 0xf6d0b997 in CatchAndWriteMiniDumpForVoidPtrFn () from /home/yukarin/.local/share/Steam/ubuntu12_32/libtier0_s.so #16 0xf6d0f740 in SteamThreadTools::CThread::ThreadProc(void*) () from /home/yukarin/.local/share/Steam/ubuntu12_32/libtier0_s.so #17 0xf7d0011f in start_thread () from /lib32/libpthread.so.0 #18 0xf7c34e9e in clone () from /lib32/libc.so.6

С нормальной же пульсой всё работает нормально.

Need to select device for capture without using dsnoop

Thanks for this project that permit us to get rid of pulseaudio to use Skype.

The only way I get to use apulse with skype is using this .asoundrc:

pcm.duplex {
    type asym
    playback.pcm "dmix"
    capture.pcm "dsnoop"
}
pcm.!default {
    type plug
    slave.pcm "duplex"
}

That works using the Echo/Sound test of skype but that don't work for long in real call:
it works for few minutes and suddenly, no sound is hearing anymore by my voice call mate.

The fact that I use a real audio card with hardware mixing so I don't need dsnoop/dmix combo.
And last point my default output is hw:0,0 but my microphone capture is on hw:0,1.

How can I tell a pulse to use hw0,0 and hw0,1 as respectively my playback/capture device ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.