You are not logged in.
https://github.com/i-rinat/apulse
$ apulse <programmname> [parameters]
That's it. Haven't tried it myself, but people reports that it works at least with skype, mpv, mplayer and avconv. May be useful for skype42 users.
And message from it's developer: https://www.youtube.com/watch?v=U5_Bc8ixvv8
// May be interesting too: https://github.com/waterlaz/skype_oss_wrapper
Last edited by jasonwryan (2014-09-21 00:35:24)
Offline
Really great news to Skype users. I just tested it (no specs given at author side so I assumed libpulse is required):
- Sound is working ok (after pulseaudio removed comletly from computer - just libpulse left)
- No microfon working as mine is with webcam and connectet with usb (visible as another sound card) - just curious if it is possible to configure it now
- One time Skype hangs after restart.
Hope it can be developed and let use Skype without Pulseaudio
Edit: Can anybody provide the PKGBUILD?
Last edited by nbvcxz (2014-09-20 11:54:15)
Lenovo G50 | LXQT-git | compton | conky
Offline
I just tested a git checkout of apulse, with skype (with pulseaudio completely removed):
Edit: The microphone needs capture.pcm "dsnoop", rather than capture.pcm "hw:0", then everything works in a test Skype call
Last edited by brebs (2014-09-20 20:58:03)
Offline
sorry, this is just stupid. just use pulseaudio. in some rare cases it might need some manual setup, but all in all it just works...
Last edited by Rasi (2014-09-20 20:08:47)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Rasi,
There are those who don't care for Pulseaudio. I see no reason why a reasonable discussion as to working around the issue needs to be derided.
Last edited by ewaller (2014-09-20 20:49:16)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Rasi,
There are those who don't care for Pulseaudio. I see no reason why a reasonable discussion as to working around the issue needs to be derided.
which issues? "i dont like pulseaudio, because poettering" is not a valid statement
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
ewaller wrote:Rasi,
There are those who don't care for Pulseaudio. I see no reason why a reasonable discussion as to working around the issue needs to be derided.which issues? "i dont like pulseaudio, because poettering" is not a valid statement
Neither is installing a whole sound server system with capabilities only few use, to run one application, "because it works"*. How is that KISS?
* with few exceptions.
Edit: Fine, I removed that analogy, although it is accurate. Both are an overkill and an absurd application for the problem.
Last edited by emeres (2014-09-21 00:39:36)
Offline
Really great news to Skype users. I just tested it (no specs given at author side so I assumed libpulse is required):
- Sound is working ok (after pulseaudio removed comletly from computer - just libpulse left)
- No microfon working as mine is with webcam and connectet with usb (visible as another sound card) - just curious if it is possible to configure it now
- One time Skype hangs after restart.
Hope it can be developed and let use Skype without PulseaudioEdit: Can anybody provide the PKGBUILD?
Done:
https://aur.archlinux.org/packages/apulse-git/
EDIT: Doesn't appear to depend on libpulse (just glib2), further testing would be appreciated.
Last edited by WorMzy (2014-09-21 00:29:54)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Rasi wrote:ewaller wrote:Rasi,
There are those who don't care for Pulseaudio. I see no reason why a reasonable discussion as to working around the issue needs to be derided.which issues? "i dont like pulseaudio, because poettering" is not a valid statement
Neither is installing a whole sound server system with capabilities only few use, to run one application, "because it works"*. That reminds me of US sheriffs driving around in armored [ex]military vehicles. How is that KISS?
* with few exceptions.
And we are done on this topic; likening PA to the militarisation of the police is just absurd. Please refrain from any further comments that are not directly concerned with this emulation tool.
Offline
If using apparmor, then be aware that the env cannot be scrubbed, because apulse sets LD_LIBRARY_PATH, so use e.g.:
/usr/bin32/skype px,
Instead of a capital p.
Edit: I take the easy route, of installing apulse's libs directly into /usr/lib32/ (ensuring the compilation is for 32-bit):
sed -e "s:/lib/apulse:/lib32:" -e "s:DESTINATION bin:DESTINATION /usr/bin32:" -i CMakeLists.txt &&
mkdir build &&
cd build &&
PATH="/usr/bin32:$PATH" CFLAGS="-m32 -O2 -march=core2" CXXFLAGS="-m32 -O2 -march=core2" cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release $OPTS ..
Last edited by brebs (2014-09-21 10:32:05)
Offline
Teamspeak3 seems to ignore it, only alsa is available for playback/capture. When looped back through alsa to pulse run with the wrapper, it just loops with no sound output and ts3 stops reacting. Settings were set and ts3 restarted also.
1411326997.590 [apulse 3425] F pa_mainloop_iterate m=0x2fae160, block=1
1411326997.590 [apulse 3425] P pa_mainloop_prepare m=0x2fae160, timeout=1000
1411326997.590 [apulse 3425] F pa_mainloop_poll m=0x2fae160
1411326998.591 [apulse 3425] F pa_mainloop_dispatch m=0x2fae160
1411326998.591 [apulse 3425] F pa_mainloop_iterate m=0x2fae160, block=1
1411326998.591 [apulse 3425] P pa_mainloop_prepare m=0x2fae160, timeout=1000
1411326998.591 [apulse 3425] F pa_mainloop_poll m=0x2fae160
1411326999.592 [apulse 3425] F pa_mainloop_dispatch m=0x2fae160
1411326999.592 [apulse 3425] F pa_mainloop_iterate m=0x2fae160, block=1
1411326999.592 [apulse 3425] P pa_mainloop_prepare m=0x2fae160, timeout=1000
1411326999.592 [apulse 3425] F pa_mainloop_poll m=0x2fae160
Offline
tano70, check that LD_LIBRARY_PATH is taking effect, which is exactly what the "apulse" command does
Also - skype is a 32-bit app, so you must compile apulse for 32-bit, NOT 64-bit. See my previous post in this read, regarding -m32.
Offline
can you tell me what to change in the PKGBUILD to make a correct compilation ?
this is the original PKGBUILD:
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=apulse-git
pkgver=0.15_1a74ba1
pkgrel=1
pkgdesc="Pulseaudio emulation for ALSA"
arch=('i686' 'x86_64')
url="http://github.com/i-rinat/apulse"
license=('MIT')
depends=('alsa-lib' 'glib2')
makedepends=('cmake' 'git')
source=(git+"https://github.com/i-rinat/apulse.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
_commits="$(git rev-list --count HEAD)"
_sha="$(git rev-parse --short HEAD)"
printf "0.%s_%s" $_commits $_sha
}
build() {
cd "$srcdir/${pkgname%-git}"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
install -Dm644 LICENSE.MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
please write me the correct lines
where should I put these lines?
sed -e "s:/lib/apulse:/lib32:" -e "s:DESTINATION bin:DESTINATION /usr/bin32:" -i CMakeLists.txt &&
mkdir build &&
cd build &&
PATH="/usr/bin32:$PATH" CFLAGS="-m32 -O2 -march=core2" CXXFLAGS="-m32 -O2 -march=core2" cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release $OPTS ..
Last edited by tano70 (2014-09-22 20:58:49)
Offline
I just tested a git checkout of apulse, with skype (with pulseaudio completely removed):
Edit: The microphone needs capture.pcm "dsnoop", rather than capture.pcm "hw:0", then everything works in a test Skype call smile
I'm unable to make the mic to work.
Installed lib32-apulse-git, then started skype with:
apulse32 skype
...and it looks like LD_PRELOAD is working:
# lsof -n|grep -i skype|grep -i pulse
skype 8363 koko mem REG 8,3 96040 4208883 /usr/lib32/apulse/libpulse.so.0
my ~.asoundrc looks like this:
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.asymed {
type asym
playback.pcm {
@func getenv
vars [ ALSAPCM ]
default "dmix"
}
capture.pcm "dsnooped"
}
pcm.dsnooped {
ipc_key 1027
type dsnoop
slave.pcm "hw:0,0"
}
-EDIT-
While the previous .asoundrc didn't worked, this one did:
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.asymed {
type asym
playback.pcm {
@func getenv
vars [ ALSAPCM ]
default "dmix"
}
capture.pcm "dsnoop"
}
But why dsnoop works, while dsnooped didnt?
Last edited by kokoko3k (2014-09-23 11:22:23)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
can you tell me what to change in the PKGBUILD to make a correct compilation ?
this is the original PKGBUILD:# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com> pkgname=apulse-git pkgver=0.15_1a74ba1 pkgrel=1 pkgdesc="Pulseaudio emulation for ALSA" arch=('i686' 'x86_64') url="http://github.com/i-rinat/apulse" license=('MIT') depends=('alsa-lib' 'glib2') makedepends=('cmake' 'git') source=(git+"https://github.com/i-rinat/apulse.git") md5sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" _commits="$(git rev-list --count HEAD)" _sha="$(git rev-parse --short HEAD)" printf "0.%s_%s" $_commits $_sha } build() { cd "$srcdir/${pkgname%-git}" cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release make } package() { cd "$srcdir/${pkgname%-git}" make DESTDIR="$pkgdir/" install install -Dm644 LICENSE.MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }
please write me the correct lines
where should I put these lines?
sed -e "s:/lib/apulse:/lib32:" -e "s:DESTINATION bin:DESTINATION /usr/bin32:" -i CMakeLists.txt && mkdir build && cd build && PATH="/usr/bin32:$PATH" CFLAGS="-m32 -O2 -march=core2" CXXFLAGS="-m32 -O2 -march=core2" cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release $OPTS ..
As you're using 64-bit, you need ]lib32-apulse-git.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
But why dsnoop works, while dsnooped didnt?
Try without the ipc_key line.
Offline
it doesn't like it:
# arecord -vv -f cd|aplay
ALSA lib pcm_direct.c:1707:(snd1_pcm_direct_parse_open_conf) Unique IPC key is not defined
arecord: main:722: audio open error: Argomento non valido
aplay: playback:2715: read error
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
As you're using 64-bit, you need ]lib32-apulse-git.
compilation error:
[tano70@archlinux ~]$ yaourt -S lib32-apulse-git
==> Scaricamento del PKGBUILD di lib32-apulse-git da AUR...
x .AURINFO
x PKGBUILD
lib32-apulse-git 0.15_1a74ba1-1 (sab 20 set 2014, 10.13.44, CEST)
( Pacchetto non supportato: Potenzialmente pericoloso! )
==> Modificare PKGBUILD [S/n] ("A" per annullare)
==> ----------------------------------------------
==> n
==> Dipendenze di lib32-apulse-git
- lib32-glib2 (già installato)
- lib32-alsa-lib (già installato)
- cmake (già installato)
- git (già installato)
==> Continuare la compilazione di lib32-apulse-git [S/n]
==> ----------------------------------------------------
==>
==> Compilazione e installazione del pacchetto
==> Creazione del pacchetto: lib32-apulse-git 0.15_1a74ba1-1 (mar 23 set 2014, 17.15.12, CEST)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
==> Estrazione dei sorgenti in corso...
==> Avvio di pkgver() in corso...
/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/./PKGBUILD: riga 25: cd: /tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build: File o directory non esistente
==> Avvio di build() in corso...
==> Connecting to GIT server....
Cloning into 'apulse'...
remote: Counting objects: 126, done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 126 (delta 51), reused 123 (delta 48)
Ricezione degli oggetti: 100% (126/126), 133.60 KiB | 0 bytes/s, done.
Risoluzione dei delta: 100% (51/51), done.
Checking connectivity... fatto.
==> GIT checkout done or server timeout
==> Starting build...
Cloning into '/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build'...
fatto.
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3441341515/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3441341515.dir/build.make
CMakeFiles/cmTryCompileExec3441341515.dir/build
make[1]: ingresso nella directory
"/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeTmp"
/usr/bin/cmake -E cmake_progress_report
/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec3441341515.dir/testCCompiler.c.o
/usr/bin/cc -m32 -o
CMakeFiles/cmTryCompileExec3441341515.dir/testCCompiler.c.o -c
/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec3441341515
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3441341515.dir/link.txt --verbose=1
/usr/bin/cc -m32 -Wl,-O1,--sort-common,--as-needed,-z,relro
CMakeFiles/cmTryCompileExec3441341515.dir/testCCompiler.c.o -o
cmTryCompileExec3441341515 -rdynamic
/usr/bin/ld: saltato /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/libgcc.a
incompatibile durante la ricerca di -lgcc
/usr/bin/ld: impossibile trovare -lgcc
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libgcc_s.so
incompatibile durante la ricerca di -lgcc_s
/usr/bin/ld: saltato /lib/../lib/libgcc_s.so incompatibile durante la
ricerca di -lgcc_s
/usr/bin/ld: saltato /usr/lib/../lib/libgcc_s.so incompatibile durante la
ricerca di -lgcc_s
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libgcc_s.so
incompatibile durante la ricerca di -lgcc_s
/usr/bin/ld: saltato /usr/lib/libgcc_s.so incompatibile durante la ricerca
di -lgcc_s
/usr/bin/ld: impossibile trovare -lgcc_s
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libc.so
incompatibile durante la ricerca di -lc
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libc.a
incompatibile durante la ricerca di -lc
/usr/bin/ld: saltato /lib/../lib/libc.so incompatibile durante la ricerca
di -lc
/usr/bin/ld: saltato /lib/../lib/libc.a incompatibile durante la ricerca di
-lc
/usr/bin/ld: saltato /usr/lib/../lib/libc.so incompatibile durante la
ricerca di -lc
/usr/bin/ld: saltato /usr/lib/../lib/libc.a incompatibile durante la
ricerca di -lc
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libc.so incompatibile
durante la ricerca di -lc
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libc.a incompatibile
durante la ricerca di -lc
/usr/bin/ld: saltato /usr/lib/libc.so incompatibile durante la ricerca di
-lc
/usr/bin/ld: saltato /usr/lib/libc.a incompatibile durante la ricerca di
-lc
/usr/bin/ld: impossibile trovare -lc
/usr/bin/ld: saltato /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/libgcc.a
incompatibile durante la ricerca di -lgcc
/usr/bin/ld: impossibile trovare -lgcc
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libgcc_s.so
incompatibile durante la ricerca di -lgcc_s
/usr/bin/ld: saltato /lib/../lib/libgcc_s.so incompatibile durante la
ricerca di -lgcc_s
/usr/bin/ld: saltato /usr/lib/../lib/libgcc_s.so incompatibile durante la
ricerca di -lgcc_s
/usr/bin/ld: saltato
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libgcc_s.so
incompatibile durante la ricerca di -lgcc_s
/usr/bin/ld: saltato /usr/lib/libgcc_s.so incompatibile durante la ricerca
di -lgcc_s
/usr/bin/ld: impossibile trovare -lgcc_s
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec3441341515.dir/build.make:88: set di istruzioni
per l'obiettivo "cmTryCompileExec3441341515" non riuscito
make[1]: *** [cmTryCompileExec3441341515] Errore 1
make[1]: uscita dalla directory
"/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeTmp"
Makefile:118: set di istruzioni per l'obiettivo
"cmTryCompileExec3441341515/fast" non riuscito
make: *** [cmTryCompileExec3441341515/fast] Errore 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/yaourt-tmp-tano70/aur-lib32-apulse-git/src/apulse-build/CMakeFiles/CMakeError.log".
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
==> ERRORE: Makepkg non è riuscito a compilare lib32-apulse-git.
Offline
At a guess, you need to install gcc-multilib. I'd install the whole multilib-devel group just to be on the safe side though.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
At a guess, you need to install gcc-multilib. I'd install the whole multilib-devel group just to be on the safe side though.
[root@archlinux tano70]# pacman -S gcc-multilib
risoluzione delle dipendenze in corso...
ricerca dei conflitti in corso...
:: gcc-libs-multilib e gcc-libs vanno in conflitto. Vuoi rimuovere gcc-libs?
Offline
Si.
For future reference, please use code tags for all terminal output, and prepend commands with LANG=C to get English messages for the forum. It'll help people help you.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Si.
For future reference, please use code tags for all terminal output, and prepend commands with LANG=C to get English messages for the forum. It'll help people help you.
ok sorry, excuse me. i can remove gcc-libs without problems?
Offline
WorMzy wrote:Si.
For future reference, please use code tags for all terminal output, and prepend commands with LANG=C to get English messages for the forum. It'll help people help you.
ok sorry, excuse me. i can remove gcc-libs without problems?
It's fine in this case because you're replacing them with the multilib versions (which are needed to compile 32-bit programs on a 64-bit host). Read up on multilib here if you want to know more.
EDIT: wrong link. This is the right one: https://wiki.archlinux.org/index.php/Ar … repository
Last edited by WorMzy (2014-09-23 16:47:51)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline