The officially official Devuan Forum!

You are not logged in.

#151 Re: Off-topic » The Joke Thread » 2024-06-20 13:59:17

golinux wrote:

All human perception and the fruit obtained therefrom is bananas!

You seem to be a computer scientist. Try to imagine AI which is thinking how it got its thoughts.

#152 Re: Off-topic » The Joke Thread » 2024-06-19 21:50:24

Yes, it seems obvious. Next step is to think how you got your thoughts.
In a word, pedagogy is also the art of deception (according to Alan Watts).

#153 Re: Off-topic » The Joke Thread » 2024-06-17 16:02:50

Yes, I may help you to "fool yourself", as Feynman put it.

Perhaps, you are missing the point. The victims of science are not able to see the obvious simply because they are intellectual slaves.

Science is a great art, and the great scientists tend to use the same simple trick to fool naive people.
First, they let you swallow a wrong assumption, then they derive a true theory from the wrong assumption.
The best example is, perhaps, "Cargo Cult Science" of Richard Feynman _https://calteches.library.caltech.edu/51/2/CargoCult.htm
If you cannot find the wrong assumption underlying Feynman's theory of scientific method, you may try to study the true Bible of Knowledge, that is, "Mambu" of Kenelm Burridge _https://en.wikipedia.org/wiki/Kenelm_Burridge

If you read the Gospel of Cargo cult movement, you may notice that Cargo cultists tent to use the method of trial and error not because this method was discovered in the United States of America, but because it was invented in the Stone Age.

#154 Re: Off-topic » The Joke Thread » 2024-06-17 10:58:47

I may not agree. Science is the art of deception. Have you noticed that nobody can explain what Knowledge is?
That is why there is a project of "Deschooling Society" _https://en.wikipedia.org/wiki/Deschooling_Society
What is obvious is that Knowledge restricts our freedom, especially the Knowledge of Physics. Because of gravity, you cannot fly like a bird.

#155 Re: Off-topic » The Joke Thread » 2024-06-15 15:50:31

I also thought that is a joke, or at least a great philosophical discovery

#156 Re: Off-topic » The Joke Thread » 2024-06-15 12:34:51

I may agree, ignorance does make people free.

#157 Re: Off-topic » The Joke Thread » 2024-06-15 08:46:20

Knowledge you could hardly make people happy, and ignorance makes freedom possible. When slaves do not know that freedom exists, they may feel free. For example, the slaves of PulseAudio might be perfectly happy with PipeWire.

#158 Re: Freedom Hacks » Missing init scripts and how to provide them » 2024-06-14 17:05:54

$ /etc/init.d/alsa-utils
Usage: /etc/init.d/alsa-utils {start [CARD]|stop [CARD]|restart [CARD]|reset [CARD]}

#159 Re: Off-topic » The Joke Thread » 2024-06-13 19:39:14

- I want to go to Paris again.
- Have you already been to Paris?
- Not yet. But I already wanted.

#160 Re: Off-topic » The Joke Thread » 2024-06-13 16:01:04

Teacher: How much is two times two?
Student: Are we buying or selling?

#161 Freedom Hacks » HiRes Binaural+ with ALSA » 2024-06-13 13:47:52

igorzwx
Replies: 0

Binaural recording is a method of recording sound that uses two microphones, arranged with the intent to create a 3D stereo sound sensation for the listener of actually being in the room with the performers or instruments.
https://en.wikipedia.org/wiki/Binaural_recording

Dr. Chesky's Ultimate Headphone Demonstration Disc [Binaural]
_https://youtu.be/qB41sm1QCKI

EXAMPLE:

Dreams of New Orleans
Wycliffe Gordon
Chesky Records, Binaural+
192kHz · 24bit
_https://www.discogs.com/release/7294719-Wycliffe-Gordon-Dreams-Of-New-Orleans
_https://www.hdtracks.com/#/album/5bffd45cc6e102670ab3fe9f

Minimal HW requirements:

1. Computer with Intel HDA codec on motherboard.
NOTE: Very old computers (e.g. of 2006) may not have Intel codecs which support 32bit 192kHz.

2. A cheap analog headset (e.g. Sennheiser PC 3 Chat), or headphones.
NOTE: USB and wireless headsets are not suitable for the purpose.

Software: ALSA, fftrate ALSA plugin, Audacious.

Audacious → Settings → Audio → ALSA Output 32bit

To prevent resampling, configure fftrate for 32bit 192kHz (although, of course, 99.99% of Linux users may hear the difference, if resampling was made by Petrov's fftrate)

===============
|  Main menu  |
---------------

    Curr. | Used | Play (def) | Rec (def) | Available cards
----------|------|------------|-----------|-----------------------------------
0 - >>>>> |  *   |  *     *   |  *    *   | HDA-Intel - HDA Intel PCH

U - Toggle used flag
P - Set this device as default player
R - Set this device as default recorder

O - Output device: PCH,0
I - Input device : PCH,0

F - Format: 192000 Hz, 2 ch, 'S32_LE'
C - Converter: fftrate

There is a belief that Petrov's fftrate may cure deafness, but it may not help PulseAudio users.

#162 Re: Off-topic » The Joke Thread » 2024-06-12 16:47:57

Many things are incomprehensible to us not because our comprehension is weak, but because those things are not within the frames of our comprehension.
Kozma Prutkov. Fruits of Reflection (1853-1854).

#163 Re: Off-topic » The Joke Thread » 2024-06-11 14:52:27

Professor: My students seem to be extremely stupid. They cannot understand FFT. I made many attempts to explain it in different ways. I have already understood it myself, and they still do not understand anything.

#164 Re: Off-topic » The Joke Thread » 2024-06-10 09:48:34

If you see a "buffalo" sign on an elephant's cage, do not trust your eyes (Kozma Prutkov).

#165 Re: Desktop and Multimedia » [SOLVED] Skype, snap and how to run on Devuan? » 2024-05-31 20:35:00

aluma wrote:

Maybe someone can see what's wrong with the repository address?
It would be possible to install Skype without unnecessary hassle.

Don't panic

$ sudo apt update
Err:14 https://repo.skype.com/deb stable InRelease
  504  Gateway Time-out [IP: 2a02:26f0:3400:2b7::1263 443]

#166 Re: Desktop and Multimedia » [SOLVED] Skype, snap and how to run on Devuan? » 2024-05-31 14:39:27

The magic commands "sudo apt -f install" or "sudo apt install -f" are usually very helpful, but not always.

$ dpkg-deb --info skype*
 new Debian package, version 2.0.
 size 122062452 bytes: control archive=4798 bytes.
    1241 bytes,    16 lines      control              
   12032 bytes,   129 lines      md5sums              
     522 bytes,    23 lines   *  postinst             #!/bin/sh
 Package: skypeforlinux
 Version: 8.109.0.209
 Architecture: amd64
 Maintainer: Skype Technologies S.A. <info@skype.net>
 Installed-Size: 312110
 Depends: libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libatspi2.0-0 (>= 2.9.90), libc6 (>= 2.17), libcairo2 (>= 1.6.0), libdrm2 (>= 2.4.38), libexpat1 (>= 2.0.1), libgbm1 (>= 17.1.0~rc2), libgcc1 (>= 1:3.0), libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.9.10), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.22), libpango-1.0-0 (>= 1.14.0), libsecret-1-0 (>= 0.18), libx11-6 (>= 2:1.4.99.1), libxcb1 (>= 1.9.2), libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxkbcommon0 (>= 0.5.0), libxrandr2, gnome-keyring, apt-transport-https, libfontconfig1 (>= 2.11.0), libdbus-1-3 (>= 1.6.18), libstdc++6 (>= 4.8.1), libatomic1
 Section: non-free/net
 Priority: extra
 Homepage: https://www.skype.com
 Description: Skype keeps the world talking, for free.
  Skype keeps you together. Call, message and share with others.
   * It's free to download and join.
   * Call, instant message and send photos and documents to anyone else on Skype.
   * Easily text message anywhere in the world.
   * Get your friends together on a group call.
  And that's just the start...

#167 Re: Desktop and Multimedia » [SOLVED] Discord Flatpak - No sound on Ratpoison WM » 2024-05-31 14:00:02

jeudi wrote:

I don't know if I want to try some computing BSDM stuffs for the moment

I do not know whether ALSA was created by sadomasochists or not, but PulseAudio, PipeWire, and systemd certainly were.

#168 Freedom Hacks » ALSA without PulseAudio and PipeWire » 2024-05-30 03:06:21

igorzwx
Replies: 11

It is not difficult to remove PulseAudio and PipeWire.
The problem is how to configure a software mixer for ALSA.

Such mixer might be needed, if one wants to use ALSA just like MacOS users are using the sound system on MacBooks: for video conferencing with Discord or similar app, or playing HiRes audio files without distortions produced by crappy resamplers. This implies that the desired software mixer should have a high quality real-time codec (resampler and format converter).

These problems can be solved through the help of the fftrate plugin
https://github.com/PetrovSE/fftrate

Debian packages:

libasound2-plugin-fftrate_1.6.3_amd64.deb
alsa-config-utils_1.6.3_amd64.deb
pcm-utils_1.6.3_amd64.deb

They provide:

libasound_module_rate_fftrate.so — ALSA plugin (FFT resampler/converter)
arateconf  —  utility to generate ~/.asoundrc  
pcm_conv  —  standalone FFT resampler/converter

How to compile fftrate plugin

Install "build-essential", etc.

sudo apt update
sudo apt-get install build-essential git debhelper
sudo apt install libasound2-dev libasound2-plugins swh-plugins

Install gcc-10 and g++-10 from Devuan's oldstable repositories.

$ cat /etc/apt/sources.list | grep oldstable
# oldstable repositories
deb http://deb.devuan.org/merged oldstable main contrib non-free
deb-src http://deb.devuan.org/merged oldstable main contrib non-free

Enable the oldstable repositories and update

sudo apt update
$ apt search g* | grep "gcc-10/\|g++-10/"
g++-10/oldstable,now 10.2.1-6 amd64 
gcc-10/oldstable,now 10.2.1-6 amd64 
sudo apt install gcc-10 g++-10
$ whereis gcc-10 g++-10
gcc-10: /usr/bin/gcc-10 
g++-10: /usr/bin/g++-10 

To compile the code you should configure "make" to use gcc-10 and g++-10, instead of the default gcc-12 and g++-12.
To build the deb packages, you have to specify "compatibility level 13" in debian/compat
 

$ man debhelper-compat-upgrade-checklist | grep "recommended mode"
          v13 This is the recommended mode of operation.

Compilation

mkdir petrov-fftrate
cd petrov-fftrate
git clone https://github.com/PetrovSE/fftrate.git

Now you have to edit two files inside the package "fftrate":

./fftrate/src/lib/makedef.mk
./fftrate/packets/debian/compat

Enable gcc-10 and g++-10:

$ cat ./fftrate/src/lib/makedef.mk | grep gcc -A1
CC      = gcc-10
CPP     = g++-10

   
Change compat to "13":

$ cat ./fftrate/packets/debian/compat
13

Now you can compile:

cd  ./fftrate/packets

   

$ ls -1
Makefile
debian
etc
mk_dpkg

Compilte the code:

make

Make debian packages:
   

./mk_dpkg

   

$ ls ../ | grep .deb
alsa-config-utils_1.6.3_amd64.deb
libasound2-plugin-fftrate_1.6.3_amd64.deb
pcm-utils_1.6.3_amd64.deb

   
How to install fftrate

Install dependencies (if they are not already installed):

sudo apt install libasound2 libasound2-plugins swh-plugins

Install fftrate:

sudo dpkg -i libasound2-plugin-fftrate_1.6.3_amd64.deb alsa-config-utils_1.6.3_amd64.deb pcm-utils_1.6.3_amd64.deb

Open /etc/fftrate.conf with a text editor:

sudo nano /etc/fftrate.conf

Enable fft resampler:

$ cat /etc/fftrate.conf | grep "Transform type" -A3
# Transform type
# Available: dct, fft (default: dct)
#transform = dct
transform = fft

Run arateconf (interactive mode) to generate ~/.asoundrc

arateconf

Press 0 to select the first sound card.
Press 1 to select the second sound card.
Press F to change format

For Intel HDA codec on motherboard, try 32bit 192000Hz
For USB headsets, try 16bit 48Hz

Run TEST (press T).
If all tests have been passed successfully, save the  setting  (press S) and exit (ESC).

EXAMPLE: Intel HDA

===============
|  Main menu  |
---------------

    Curr. | Used | Play (def) | Rec (def) | Available cards
----------|------|------------|-----------|-----------------------------------
0 - >>>>> |  *   |  *     *   |  *    *   | HDA-Intel - HDA Intel PCH
1 -       |  *   |  *         |  *        | USB-Audio - iMic USB audio system

U - Toggle used flag
P - Set this device as default player
R - Set this device as default recorder

O - Output device: PCH,0
I - Input device : PCH,0

F - Format: 192000 Hz, 2 ch, 'S32_LE'
C - Converter: fftrate

A - Show all plugins [ ]
M - Plug-ins:
 [X] Convert,  [ ] Expand, [X] Asym
 [ ] Play Vol, [X] Dmix
 [ ] Rec. Vol, [X] Dsnoop
 [ ] Phonon,   [ ] Normalizator

T - Test
S - Save to '/home/devuan/.asoundrc'
X - Delete '/home/devuan/.asoundrc'

ESC - Exit

EXAMPLE: iMic USB

===============
|  Main menu  |
---------------

    Curr. | Used | Play (def) | Rec (def) | Available cards
----------|------|------------|-----------|-----------------------------------
0 -       |  *   |  *     *   |  *    *   | HDA-Intel - HDA Intel PCH
1 - >>>>> |  *   |  *         |  *        | USB-Audio - iMic USB audio system

U - Toggle used flag
P - Set this device as default player
R - Set this device as default recorder

O - Output device: system,0
I - Input device : system,0

F - Format: 48000 Hz, 2 ch, 'S16_LE'
C - Converter: fftrate

A - Show all plugins [ ]
M - Plug-ins:
 [X] Convert,  [ ] Expand, [X] Asym
 [ ] Play Vol, [X] Dmix
 [ ] Rec. Vol, [X] Dsnoop
 [ ] Phonon,   [ ] Normalizator

T - Test
S - Save to '/home/devuan/.asoundrc'
X - Delete '/home/devuan/.asoundrc'

ESC - Exit

TEST

> t
Testing H/W compatibility ...

Device: PCH
Output:
 Open device "hw:PCH,0" ... Ok.
 Set rate 192000 Hz ... Ok.
 Set channels 2 ... Ok.
 Set format 'S32_LE' ... Ok.
 Set buffer size 30720 -> 30720
 Set period size 7680 -> 7680
Input:
 Open device "hw:PCH,0" ... Ok.
 Set rate 192000 Hz ... Ok.
 Set format 'S32_LE' ... Ok.
 Set buffer size 30720 -> 30720
 Set period size 7680 -> 7680

Device: system
Output:
 Open device "hw:system,0" ... Ok.
 Set rate 48000 Hz ... Ok.
 Set channels 2 ... Ok.
 Set format 'S16_LE' ... Ok.
 Set buffer size 7680 -> 7680
 Set period size 1920 -> 1920
Input:
 Open device "hw:system,0" ... Ok.
 Set rate 48000 Hz ... Ok.
 Set format 'S16_LE' ... Ok.
 Set buffer size 7680 -> 7680
 Set period size 1920 -> 1920

Press any key ...

S - Save to '/home/devuan/.asoundrc'

> s
Saving config file...
Test: 'default' ... Ok.
Test: 'default' ... Ok.
Ok.

Testing playback/recording

$ aplay *.wav
Playing WAVE 'audio_test_48kHz_16bit.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Input:  48000 Hz, 2 ch, 's16_le' (0x2): dummy = 0, period = 1920
Output: 192000 Hz, 2 ch, 's32_le' (0xa): dummy = 0, period = 7680
Rates:  48000 --> 192000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.
$ arecord -V stereo -f S16_LE -r 48000 -c 2 1-fft-exp_rec_alsa.wav
Recording WAVE '1-fft-exp_rec_alsa.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Input:  192000 Hz, 2 ch, 's32_le' (0xa): dummy = 0, period = 7680
Output: 48000 Hz, 2 ch, 's16_le' (0x2): dummy = 0, period = 1920
Rates:  192000 --> 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.
$ aplay 1-fft-exp_rec_alsa.wav
Playing WAVE '1-fft-exp_rec_alsa.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Input:  48000 Hz, 2 ch, 's16_le' (0x2): dummy = 0, period = 1920
Output: 192000 Hz, 2 ch, 's32_le' (0xa): dummy = 0, period = 7680
Rates:  48000 --> 192000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.

Now you can install apulse and run discord

apulse discord

You may also need ALSA mixer

alsamixer
man alsamixer

#169 Re: Desktop and Multimedia » [SOLVED] Discord Flatpak - No sound on Ratpoison WM » 2024-05-28 22:10:52

jeudi wrote:

sound works on Firefox on Ratpoison but not with Discord.

Firefox can play sound with ALSA without PulseAudio or apulse.
Discord needs PulseAudio or apulse to work with ALSA.

This may mean that ALSA works on your Ratpoison, but PulseAudio seems to fail.

A solution might be: "apulse discord" and .asoundrc (for mic to work with Discord and Firefox).

If you do not have "arateconf" to generate .asoundrc, you may try to create it manually, although, of course, it might be an exercise in masochism. One may presume that it might be much easier to compile arateconf and fftrate

In any case, you may try something like this:

ALSA konfigurieren

pcm.snd_card {
    type hw
    card 0
    device 0
}

ctl.snd_card {
    type hw
    card 0
    device 0
}

# Das dmix-Plugin wird definiert.
pcm.dmixer {
    type dmix           # pcm.NAME: der Name jedes Gerätes kann angepasst werden
    ipc_key 1024
    ipc_perm 0666       # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen
    slave.pcm "snd_card"
    slave {
        channels 2
    }
}

ctl.dmixer {
    type hw
    card 0
}

# Das dsnoop-Plugin, welches es erlaubt, mehrere Programme gleichzeitig aufnehmen zu lassen.
pcm.dsnooper {
    type dsnoop
    ipc_key 2048
    ipc_perm 0666
    slave.pcm "snd_card"
    slave
    {
        channels 2
    }
}

# Dies definiert unser Fullduplex-Plugin als Standard für alle ALSA-Programme.
pcm.duplex {
    type asym
    playback.pcm "dmixer"	#natürlich muss dann auch das passende Gegenstück angepasst werden
    capture.pcm "dsnooper"
}

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

arateconf was created in 2009
asoundconf was depricated in 2009 (or 2008)
But a fork of it is still available in Arch Linux AUR repository

https://aur.archlinux.org/packages/asoundconf
Package Details: asoundconf 1:1.2-8
Package Base:    asoundconf
Description:    utility to read and change the user's ALSA library configuration
Upstream URL:    https://bitbucket.org/stativ/asoundconf
Licenses:    GPL
First Submitted:    2022-04-01 16:35 (UTC)
Last Updated:    2024-02-27 15:52 (UTC)

https://bitbucket.org/stativ/asoundconf/src/master/
asoundconf
This is asoundconf-gtk, the GTK+ applet to allow you to select your default sound card. It is licenced under the GPLv2, which you can find in COPYING, and is (C) 2006 Toby Smithe. The projects which code has been taken from are also subject to copyright, and this is further detailed in the source file. It is Python, so you can execute it from source, which is found in asoundconf-gtk/asoundconf-gtk, but you can install it as well, using setup.py. This places the .desktop file in /usr/share/applications as well, which on a GNOME system should place an icon in System->Preferences.

One may wonder why it is not available in Devuan repositories.
Gnome2 was also depricated in 2009, but a fork of it is available in Devuan repositories (it is now Mate desktop).

#170 Re: Desktop and Multimedia » [SOLVED] Discord Flatpak - No sound on Ratpoison WM » 2024-05-28 12:36:56

jeudi wrote:

I installed Discord from flatpak repo, I'm not going to add a ppa to my installation.

Which "ppa"? It is a proprietary spyware.

Try to run Discord through apulse

sudo apt install apulse
apulse discord --no-sandbox
apulse discord

Playback may work, but mic is not likely to work, if you do not have a special .asoundrc
I have already tested this on a sort of Fedora with Discord (flatpak) and pipewire installed.

To understand the problem with Ratpoison one may need output of those Linux command (see my previous post).

In a word, Ubuntu Universe Repository is a standard Ubuntu repository which is usually enabled by default (on Ubunty, of course).
All dependencies are available in Devuan repositories:

sudo apt update
sudo apt install gcc git gconf2 libasound2 libnotify4 libnspr4
apt show gcc git gconf2 libasound2 libnotify4 libnspr4

They are in Daedalus main repository:

$ apt show gcc git gconf2 libasound2 libnotify4 libnspr4 | grep /main
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
$ cat /etc/apt/sources.list
deb http://deb.devuan.org/merged daedalus main non-free-firmware non-free contrib
deb-src http://deb.devuan.org/merged daedalus main non-free-firmware non-free contrib

deb http://deb.devuan.org/merged daedalus-security main non-free-firmware non-free contrib
deb-src http://deb.devuan.org/merged daedalus-security main non-free-firmware non-free contrib

deb http://deb.devuan.org/merged daedalus-updates main non-free-firmware non-free contrib
deb-src http://deb.devuan.org/merged daedalus-updates main non-free-firmware non-free contrib

discord-0.0.54.deb is available for download on Discord website https://discord.com/download

jeudi wrote:

I don't know how to quote someone

[quote=jeudi]I don't know how to quote someone[/quote]

See: https://dev1galaxy.org/help.php#img

#171 Re: Desktop and Multimedia » [SOLVED] Discord Flatpak - No sound on Ratpoison WM » 2024-05-25 14:46:25

You may post output of these commands:

cat /proc/asound/cards
aplay -l
arecord -l
lsmod | grep snd
find /dev/snd -type c
fuser -av $(find /dev/snd -type c 2>/dev/null)

You may also run alsamixer (on terminal) and unmute sound devices:

alsamixer

see:

man alsamixer

You may try

speaker-test

see: https://wiki.archlinux.org/title/Advanc … chitecture

How to Install Discord on Ubuntu or debian
https://www.webhi.com/how-to/setup-disc … ian-linux/

It works without pulseaudio:
Devuan Mate Desktop (pulseaudio was removed),
ALSA + ALSA fftrate plugin https://github.com/PetrovSE/fftrate
 

$ arateconf | grep Plug-ins -A3
M - Plug-ins:
 [X] Convert,  [ ] Expand, [X] Asym
 [ ] Play Vol, [X] Dmix
 [ ] Rec. Vol, [X] Dsnoop

discord-0.0.54.deb from https://discord.com/download

apulse discord --no-sandbox
apulse discord

Sound test (mic and playback) – everything works.

#172 Re: Freedom Hacks » To permanently block installation of Pulseaudio. » 2024-05-13 14:22:49

zapper wrote:

My point was that debian adds it as a dependency for their own reasons, reasons that aren't related to users wanting it or needing it.
Aka, it doesn't  need to depend is a better way to say it.
They have ulterior motives.
https://dev1galaxy.org/viewtopic.php?pid=41570#p41570

Do you mean corruption? It might be something else, a sort of millitant Cargo cult, perhaps.

If, for example, you may try to install the latest version of wxMaxima from Homebrew (on Devuan),
brew will install all "dependencies" of wxMaxima, including pulseaudio, systemd, xorg, etc.

$ brew deps -n wxmaxima | grep "pulseaudio\|pipewire\|systemd\|xorg"
xorgproto
pulseaudio
systemd
xorg-server

$ brew deps --missing wxmaxima | grep "pulseaudio\|pipewire\|systemd\|xorg"
pulseaudio
systemd
xorg-server
xorgproto

The logic of "dependencies" is very simple. If wxMaxima was compiled for Linux, it depends on Linux.
Therefore, Homebrew will install its own version of Linux inside your Devuan.
Notice, however, that Homebrew does not yet install systemd on MacOS.
But they will install it in the near future.
In any case, MacOS users can already install PulseAudio on their MacBooks with the help Homebrew.

#173 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-05-06 21:27:57

fsmithred wrote:

If you do need to use apulse, it's just 'apulse firefox'. No need for asoundrc. The only time I need to use apulse is if tor-browser uses audio and then I try to use audio in firefox-esr.

I do not know, what is special about Devuan, but is was difficult to find a browser, which does not work with ALSA.
Firefox, Chromium, Epiphany, Chrome, Brave, Min - everything works without apulse.
Seamonkey does need apulse to work with ALSA.

What is more, Mate sound applet works with ALSA after removal of pulseaudio, but Xfce sound applet disappeared.
Mate Desktop, is, of course, very special. If you remove PulseAudio, it will install PipeWire.
If you remove them both, it will enable ALSA for Mate apps.

$ sudo apt-mark manual libpulse0 libpulse-mainloop-glib0 libpulsedsp 
$ sudo apt-mark hold pulseaudio* pipewire* 
$ sudo apt-get purge pulseaudio pulseaudio-utils pavucontrol pulseaudio-module-bluetooth pipewire pipewire-bin pipewire-pulse
$ fuser -av $(find /dev/snd -type c 2>/dev/null)
$ killall pulseaudio
$ fuser -av $(find /dev/snd -type c 2>/dev/null)

However, if you want to use mic with Firefox (with Discord) , you do need apulse and a special ~/.asoundrc with dmix, dsnoop, etc.

apulse relies on ALSA's dmix, dsnoop, and plug plugins to handle multiple sound sources and capture streams running at the same time. dmix plugin muxes multiple playback streams; dsnoop plugin allow multiple applications to capture from a single microphone; and plug plugin transparently converts audio between various sample formats, sample rates and channel numbers.
https://github.com/i-rinat/apulse

#174 Desktop and Multimedia » Pulse+Alsa: Is it really LINEAR interpolation? » 2024-05-06 16:12:05

igorzwx
Replies: 0

Arch Wiki claims that the default ALSA resampler  is not a resampler at all, but just a sort of "linear interpolation":

https://wiki.archlinux.org/title/Advanc … resampling
"When software mixing is enabled, ALSA is forced to resample everything to the same frequency (48 kHz by default when supported). By default, it will try to use the speexrate converter to do so, and fallback to low-quality linear interpolation if it is not available"
https://git.alsa-project.org/?p=alsa-li … HEAD#l1278

It is difficult to believe, but it might be true.

It was enough to replace the default ALSA resampler with fftrate, and sound quality with Firefox, PipeWire, pulse libs, and ALSA was essentially improved.
Although, of course, Firefox → apulse → ALSA (with fftrate plugin) produced much better result.
Notice that PipeWire was not removed.

apulse
https://github.com/i-rinat/apulse
fftrate
https://github.com/PetrovSE/fftrate

Linear interpolation
https://en.wikipedia.org/wiki/Linear_interpolation

Linear interpolation

Linear interpolation on a data set (red points) consists of pieces of linear interpolants (blue lines).

It may sound extremely good.

Board footer

Forum Software