Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
want to try ALSA once more need help.
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Tue Oct 19, 2021 2:19 am    Post subject: want to try ALSA once more need help. Reply with quote

Hey i have been using some custom ebuild by one from the IRC they worked great it allowed me to use ALSA>pipewire>Jack>pulse-libs
so i could have a Alsa as my default sound. for when i played some games the sound, sounded wrong and crackle or what not under wine. i did try a lot of diffrent pulse audio-config even one sended me his fedora one but it did not work. so i did get back to ALSA then and there it sounds right.
i did ask on the IRC about it when the problem happen and i get abit tired that there is not program at all that allow you set individual audio level for each program you use sense i use that a lot when i'm talking with people and play games at the same time.
they recommended me to try alsa>pipewire(with pulse support), and i did that i even installed pulse as i used it 1 year ago. but it still don't work.

Code:
#pulseaudio no deamon support
media-sound/pulseaudio  -daemon -alsa -alsa-plugin -bluetooth -equalizer -gdbm -gtk -jack -orc -sox -ssl -udev -webrtc-aec -elogind


so my problem that i have now is that the only way i can use like discord-bin and have mic support is with pipewire.
i did try to use jack. and yes i can pipe it if i use the firefox version of discord. but then i get no sound from anything that uses wine or proton so ic ant game at all. everything is gone. i even looked the flags sense i thought wine had jack support but i guess it did not so.... yea....
the other problem i had was that i could not use OBS-studio with an ALSA only system i MOST use pulseaudio if i dont i have not sound devices to pick from.
my friend told me that i can use a loopback system but im not sure how to set that one up sense the link i get from gentoo wiki on ALSA seems abit out of date or old... so im not sure. i wanted to add the pro-audio overlay but i dont understand how i only added git ones. (and yes i dont use eselect or layman i do it all manualy sense that what i was told to learn and how to do it.)

i have not done anything to my kernel what i know of that has to do with ALSA or Pulseaudio or stuff like my problems started to come with Pulse and so on updated to 15.

this is my make.conf

Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

#CPU simd compile time support configuration
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

#Additional portage conssitency options
MAKEOPTS="-j4"
FEATURES="candy fixlafiles unmerge-orphans"
INPUT_DEVICES="libinput joystick wacom"
ACCEPT_LICENSE="*"
VIDEO_CARDS="nvidia intel i915 i965"
QEMU_SOFTMMU_TARGETS="x86_64 i386"
#PYTHON_TARGETS="python3_9"
#PYTHON_SINGEL_TARGET="python3_9"


#GLOBAL USE FLAGS
#flags i dont want
USE="
-systemd -xfce -gnome -qt -qt5 -kde -gtk
-vlc -gtk2 -gtk3 -pulseaudio -gstreamer
-clang -bluetooth

#USE flags i want
elogind X dbus jumbo-build alsa opengl
ffmpeg lto vaapi vdpau jack joystick
vkd3d vulkan dxvk vpx v4l v3d uvm
mp3 ogg aac flac rar 7z 7zip pcap
libass x264 x265 opus osmesa sdl
samba speex rubberband"


this is my .asoundrc

Code:
#########################################
# kosshi's basic asoundrc tempalte v2.1 #
#########################################

#################
# DEFAULT STUFF #
#################

# Uncomment to get a placebo improvement in resampling.
# May require packages and iirc had some issues with 32bit programs
#defaults.pcm.rate_converter "speexrate"

# This allows you to change the default with ALSA_DEFAULT_PCM env var
pcm.!default {
   @func refer
   name { @func concat
      strings [ "pcm."
         {    @func getenv
            vars [ ALSA_DEFAULT_PCM ]
            default "sym"
         }

      ]
   }
}

pcm.sym {
   type asym;
   playback.pcm "out_mixer_plug"
   capture.pcm  "mic_snoop_plug"
}


###########
#  OUTPUT #
###########


pcm.out_mixer_plug {
   type plug;
   slave.pcm "out_mixer"
}

pcm.out_mixer {
   type dmix;
   ipc_key 1024;
   ipc_perm 0666
   slave {

      # THIS IS YOUR DEFAULT OUTPUT DEVICE !!!
      pcm "hw:0,0,0"

      rate 48000
      channels 2
      period_time 0

      # Adjusts latency, this is on high side
      # Some programs may not like short buffers, experiment yourself
      period_size 1024
      buffer_size 8192
   }
}

##############
# MICROPHONE #
##############

pcm.mic_snoop_plug {
   type plug;
   slave.pcm "mic_snoop";
}

pcm.mic_snoop {
    type dsnoop

   ipc_key 4641
   ipc_perm 0666

   # THIS IS YOUR DEFAULT MICROPHONE !!!
   slave.pcm "hw:0,0,0"

   slave
   {
      period_time 0

      # Increase if your mic quality sucks
      period_size 1028
      buffer_size 8192
      channels 2
   }
   bindings {
        0 0
        1 1
    }
}

###########
# THE END #
###########


this is my aple -L

Code:
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault
    Default Audio Device
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
sysdefault:CARD=Sound
    HyperX Virtual Surround Sound, USB Audio
    Default Audio Device
front:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    Front output / input
surround21:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Sound,DEV=0
    HyperX Virtual Surround Sound, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Sound
    HyperX Virtual Surround Sound
    USB Stream Output


some of my useflags for specific packages.

Code:
app-emulation/wine-vanilla -pulseaudio netapi
app-emulation/wine-staging netapi -pulseaudio dos
www-client/firefox -clang hwaccel alsa -pulseaudio
#pipewire
media-plugins/alsa-plugins -pulseaudio oss
media-video/pipewire acc v4l extra jack-client ldac pipewire-alsa echo-cancel -systemd -bluetooth
#jack
media-sound/jack2 libsamplerate
media-sound/cadence a2jmidid
media-sound/jack_capture osc


if there is anything i miss please ask sense i'm not sure if i would miss something i will try awenser it:)

thanks a lot for your help.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Sat Oct 23, 2021 1:36 am    Post subject: Reply with quote

I believe you need the pulseaudio use flag set, I have not tried out pipewire yet, but I imagine it will replace pulseaudio.
https://wiki.gentoo.org/wiki/PipeWire
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sat Oct 23, 2021 4:34 am    Post subject: Reply with quote

i see. but i can use pulseaudio useflags if i want use a pure alsa system.

discord works with pipewire.
but i do preffer the alsa better quality in sound.

what else do you think need pulseaudio? not fully sure on what you are reffering to.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sat Oct 23, 2021 10:12 am    Post subject: Reply with quote

Shaorin,

Pulseaudio is a wrapper around alsa. It won't work until alsa does.

What do you have in /proc/asound/devices ?
What does
Code:
grep -R -i codec /proc/asound/
tell.
Are you trying to use a USB or Bluetoth sound device?
There is one,
Code:
sysdefault:CARD=Sound
    HyperX Virtual Surround Sound, USB Audio
    Default Audio Device

That does not mean that its the one you want to use though.

Lastly please post the output of
Code:
lspci -nnk
lsusb

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Sun Oct 24, 2021 5:35 am    Post subject: Reply with quote

Shaorin wrote:
discord works with pipewire.
but i do preffer the alsa better quality in sound.


Afaik, discord won't work on a pure alsa system, it requires pulseaudio but you can use apulse to launch it
apulse /opt/discord/Discord
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 7:08 am    Post subject: Reply with quote

hey

Code:
grep -R -i codec /proc/asound/


has not output at all nor as user or root

Code:
sysdefault:CARD=Sound
    HyperX Virtual Surround Sound, USB Audio
    Default Audio Device


is the right soundcard i want to use sense i only have a USB headset and the other sound is from the HDMI did desable it in a file somehow so that alsa would only see this one. dont remember how now for it was like 1 year ago one in the IRC told me how.

Quote:
lspci -nnk


Code:
$ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:591f] (rev 05)
   Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [1043:8694]
   Kernel driver in use: skl_uncore
00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 05)
   Kernel driver in use: pcieport
00:14.0 USB controller [0c03]: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [8086:a2af]
   Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [1043:8694]
   Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba]
   Subsystem: ASUSTeK Computer Inc. 200 Series PCH CSME HECI [1043:8694]
00:17.0 SATA controller [0106]: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282]
   Subsystem: ASUSTeK Computer Inc. 200 Series PCH SATA controller [AHCI mode] [1043:8694]
   Kernel driver in use: ahci
00:1b.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #21 [8086:a2eb] (rev f0)
   Kernel driver in use: pcieport
00:1c.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #5 [8086:a294] (rev f0)
   Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #9 [8086:a298] (rev f0)
   Kernel driver in use: pcieport
00:1d.2 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #11 [8086:a29a] (rev f0)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation 200 Series PCH LPC Controller (B250) [8086:a2c8]
   Subsystem: ASUSTeK Computer Inc. 200 Series PCH LPC Controller (B250) [1043:8694]
00:1f.2 Memory controller [0580]: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller [8086:a2a1]
   Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family Power Management Controller [1043:8694]
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
   Subsystem: ASUSTeK Computer Inc. 200 Series PCH HD Audio [1043:8723]
00:1f.4 SMBus [0c05]: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller [8086:a2a3]
   Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family SMBus Controller [1043:8694]
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8]
   Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I219-V [1043:8672]
   Kernel driver in use: e1000e
   Kernel modules: e1000e
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1070] [10de:1b81] (rev a1)
   Subsystem: eVga.com. Corp. GP104 [GeForce GTX 1070] [3842:6173]
   Kernel driver in use: nvidia
   Kernel modules: nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GP104 High Definition Audio Controller [10de:10f0] (rev a1)
   Subsystem: eVga.com. Corp. GP104 High Definition Audio Controller [3842:6173]
02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961/SM963 [144d:a804]
   Subsystem: Samsung Electronics Co Ltd SM963 2.5" NVMe PCIe SSD [144d:a801]
   Kernel driver in use: nvme
   Kernel modules: nvme
05:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller [1b21:1242]
   Subsystem: ASUSTeK Computer Inc. ASM1142 USB 3.1 Host Controller [1043:8675]
   Kernel driver in use: xhci_hcd


Code:
lsusb


Code:
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:0401 Realtek Semiconductor Corp. USB3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 145f:01ac Trust Trust Gaming Mouse
Bus 001 Device 005: ID 1b1c:1b44 Corsair Corsair STRAFE Gaming Keyboard
Bus 001 Device 003: ID 0bda:5401 Realtek Semiconductor Corp. RTL 8153 USB 3.0 hub with gigabit ethernet
Bus 001 Device 002: ID 0951:16a4 Kingston Technology HyperX 7.1 Audio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



ok that all the output. :)

i did try to install apulse and i get sound on discord. but i still have not way to set audio level sense pavucontrol and pulsemixer seems to be hard dep on pulseaudio.
and when i use apulse i cant use jack sense it dont see anything and all the sound it dead.



thanks alot for all the help i get. its abit weird sense all worked well 10-12 months ago:)
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 7:11 am    Post subject: Reply with quote

krumpf wrote:
Shaorin wrote:
discord works with pipewire.
but i do preffer the alsa better quality in sound.


Afaik, discord won't work on a pure alsa system, it requires pulseaudio but you can use apulse to launch it
apulse /opt/discord/Discord



ooo i see then its a change that they made like 10-12 months ago or so. i know back 1 year ago it did not seem to work but i was on i3 and all i needed to do was to quit and restart 1-2 times and it find the devices and works fine. it never worked the first time you started never. :) but thanks for the head up, i wish i did not need to use discord at all, but alot of gamers are there and sense i do play games its kind of needed sadly.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 10:37 am    Post subject: Reply with quote

Shaorin,

You have at least three sound cards.

Code:
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
   Subsystem: ASUSTeK Computer Inc. 200 Series PCH HD Audio [1043:8723]
01:00.1 Audio device [0403]: NVIDIA Corporation GP104 High Definition Audio Controller [10de:10f0] (rev a1)
   Subsystem: eVga.com. Corp. GP104 High Definition Audio Controller [3842:6173]

Bus 001 Device 002: ID 0951:16a4 Kingston Technology HyperX 7.1 Audio

The first two do not have any drivers loaded, so cannot work. They are not disabled, so the kernel may still count them.
Not having any CODECs is correct. They are a part of the driver.
USB sound cards, such as you want to use, do not advertise CODECs.
So far so good.

What is the content of /proc/asound/devices ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 1:00 pm    Post subject: Reply with quote

Quote:
What is the content of /proc/asound/devices ?


Code:
# ls /proc/asound/devices/
ls: cannot access '/proc/asound/devices/': Not a directory

nothing that dir dont exist same if i try as a user.

have apulse installed atm so i can on discord. not sure if that effects the results i can redo if i need to uninstall it
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 2:48 pm    Post subject: Reply with quote

Shaorin,

Its a file, so no trailing /

apulse or ever pulseaudio should not affect the content of /proc/asound/devices
Its a list of all the alsa sound devices the kernel knows.

I get
Code:
  2: [ 0- 3]: digital audio playback
  3: [ 0- 7]: digital audio playback
  4: [ 0- 8]: digital audio playback
  5: [ 0- 9]: digital audio playback
  6: [ 0-10]: digital audio playback
  7: [ 0]   : control
  8: [ 1- 0]: digital audio playback
  9: [ 1- 0]: digital audio capture
 10: [ 1- 1]: digital audio playback
 11: [ 1- 2]: digital audio capture
 12: [ 1]   : control
 33:        : timer
/proc/asound/devices lines 1-12/12

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 3:08 pm    Post subject: Reply with quote

sorry i thought it was a dir not a file my bad i should have tried both.

Code:
  1:        : sequencer
  2: [ 0- 0]: digital audio playback
  3: [ 0- 0]: digital audio capture
  4: [ 0]   : control
 33:        : timer


is what i have in it
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 3:21 pm    Post subject: Reply with quote

Shaorin,

Good. That makes it nice and easy.

Card0 Device0 is the default card for alsa and you only have card0, device0.
As its USB, it will expect audio to use the 48KHz sample rate by default.

Can you play the sound from videos, they are rarely anything else.
Sound from CDs uses the 44.1KHz sample rate and needs dmix to resample them 'on the fly', so that's not a suitable test source.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 3:28 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Shaorin,

Good. That makes it nice and easy.

Card0 Device0 is the default card for alsa and you only have card0, device0.
As its USB, it will expect audio to use the 48KHz sample rate by default.

Can you play the sound from videos, they are rarely anything else.
Sound from CDs uses the 44.1KHz sample rate and needs dmix to resample them 'on the fly', so that's not a suitable test source.



yes i can play sound from firefox, wine games. steam games, mpv (music mp3) (video, AVI, FLV, MKV, mp4) and with apulse i can speak and listen to discord.
and my emulator dolpine for gamecube games works well and the mupen64 for N64 stuff works too.

the main problems i have now is that if i dont use apulse discoed dont work.
and i have no audio level controller so i cant set the mic or app by app sound levels. i have alsamixer but my friend on discord say my mic is really low and i cant really set it higher.
OBS-studio dont work with ALSA. i have not devices i can pick from. and i can pipe with jack but then all other sound it dead. if i dont use Apulse i have sound but not from WINE and i can pipe to discord useing firefox version.
i think i did see some of the .asoundrc changes if i try i lost all sound míght be related to .config/pipewiire/conf i did delete that dir and i think i could add stuff to my .asoundrc, but as one other user said discord changed so it will not works on pure alsa still.

and as i said before. pavucontroll do not work on pipewire even if i use pulse side of it and not alsa.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 3:31 pm    Post subject: Reply with quote

these are the ebuilds on helped me to use from the IRC 1 year ago

pulseaudio
http://dpaste.com/5MGCF93KK


pipepwire
https://dpaste.com/HSTKRLYBL

but they dont work for the libs and other stuff have updated.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 3:54 pm    Post subject: Reply with quote

Shaorin,

What do you have in /var/lib/alsa/asound.state ?
Its your preserved alsamixer controls and settings

The file is written on shutdown and read on startup to save/sestore your settings over shutdowns.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 4:08 pm    Post subject: Reply with quote

thanks alot for trying to help me :)

i have this

Code:
state.Sound {
   control.1 {
      iface PCM
      name 'Capture Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.2 {
      iface PCM
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.3 {
      iface MIXER
      name 'Headset Capture Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.4 {
      iface MIXER
      name 'PCM Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.5 {
      iface MIXER
      name 'PCM Playback Volume'
      value.0 65
      value.1 65
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 75'
         dbmin -7000
         dbmax 500
         dbvalue.0 -500
         dbvalue.1 -500
      }
   }
   control.6 {
      iface CARD
      name 'Keep Interface'
      value false
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
}
state.Wireless {
   control.1 {
      iface PCM
      name 'Capture Channel Map'
      value 0
      comment {
         access read
         type INTEGER
         count 1
         range '0 - 36'
      }
   }
   control.2 {
      iface PCM
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.3 {
      iface MIXER
      name 'Mic Capture Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.4 {
      iface MIXER
      name 'Mic Capture Volume'
      value 27
      comment {
         access 'read write'
         type INTEGER
         count 1
         range '0 - 35'
         dbmin -3000
         dbmax 500
         dbvalue.0 -300
      }
   }
   control.5 {
      iface MIXER
      name 'PCM Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.6 {
      iface MIXER
      name 'PCM Playback Volume'
      value.0 34
      value.1 34
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 37'
         dbmin -7400
         dbmax 0
         dbvalue.0 -600
         dbvalue.1 -600
      }
   }
   control.7 {
      iface CARD
      name 'Keep Interface'
      value false
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
}

_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 7:05 pm    Post subject: Reply with quote

Shaorin,

Code:

   control.5 {
      iface MIXER
      name 'PCM Playback Volume'
      value.0 65
      value.1 65
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 75'
         dbmin -7000
         dbmax 500
         dbvalue.0 -500
         dbvalue.1 -500
      }
say that you have an output volume control that has 75 steps in the range -7000 to +500. So that's a step size off 100.
I suspect that each step is 1db.

Further it says that the setting that was restored was
Code:
         dbvalue.0 -500
         dbvalue.1 -500
which in 10db from maximum. I don't know how well its calibrated, but if its real, 10db doubles the perceived sound level.


You also have a Mic volume slider.

Code:
   control.4 {
      iface MIXER
      name 'Mic Capture Volume'
      value 27
      comment {
         access 'read write'
         type INTEGER
         count 1
         range '0 - 35'
         dbmin -3000
         dbmax 500
         dbvalue.0 -300

}

Again, it does 35 steps from -3000 to +500 and its presently set to -300. That's 8 steps down from maximum.

Some sound cards have a Mic Gain 20db switch. That's like adding 20 steps to the Mic slider. That's not listed.

Can you see the controls in alsamixer?
Press F3, F4 or F5 inside alsamixer to control what you can see.

This won't fix what works but it may help winth your sound levels.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sun Oct 24, 2021 7:18 pm    Post subject: Reply with quote

yes i can use the controls and set it the master volume that works.
for each of the programs i need to hope that there is a volume option so i can lower it in the program sense there is no option what so ever to do it outside it.

but i guess thats normal?

when i set the volume in alsamixer it show

PCM [db gain: -15.00 -15.00]

and under is it you have the slider with 00 under for the device i assume
under that 43<>43
and when i go up and down with the arrow keys the db gain. changes with one db up or down.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Oct 24, 2021 9:10 pm    Post subject: Reply with quote

Shaorin,

The [OO] is the mute switch. [OO] means Open and [MM] means Muted.

43<>43 at the bottom of the control shows the slider setting. The Sliders are stereo controls but both channels can be controlled separately, if you wish.

Code:
┌─────────────────────────────────────────────────────────────────── AlsaMixer v1.2.5.1 ───────────────────────────────────────────────────────────────────┐
│ Card: HD-Audio Generic                                                                                                           F1:  Help               │
│ Chip: Realtek ALC1220                                                                                                            F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                                         F6:  Select sound card  │
│ Item: Line [dB gain: -34.50, -34.50]                                                                                             Esc: Exit               │
│                                                                                                                                                          │
│                                                                                                                                                          │
│                                                                                                                                                          │
│   ┌──┐              ┌──┐              ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐                                         ┌──┐     ┌──┐   │
│   │  │              │  │              │  │     │  │     │  │     │  │     │  │     │  │     │  │                                         │  │     │  │   │
│   │  │              │  │              │  │     │  │     │  │     │  │     │  │     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │  │              │  │     │  │     │  │     │  │     │  │     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   │▒▒│              │▒▒│              │  │     │  │     │▒▒│     │▒▒│     │▒▒│     │  │     │  │                                         │  │     │  │   │
│   ├──┤     ┌──┐     └──┘     ┌──┐     ├──┤     └──┘     ├──┤     ├──┤     ├──┤     ├──┤     └──┘     ┌──┐     ┌──┐   Enabled  Disabled   ├──┤     └──┘   │
│   │OO│     │OO│              │OO│     │MM│              │OO│     │OO│     │OO│     │MM│              │MM│     │MM│                       │MM│            │
│   └──┘     └──┘              └──┘     └──┘              └──┘     └──┘     └──┘     └──┘              └──┘     └──┘                       └──┘            │
│    88              83<>83             0<>0     0<>0    83<>83     83       83      0<>0     0<>0                                         0<>0     0<>0   │
│  Master  Headphon Headphon  Front   Front Mi Front Mi Surround  Center    LFE   <  Line  >Line Boo  S/PDIF  S/PDIF D Auto-Mut Loopback Rear Mic Rear Mic │
│                                                                                                                                                          │
│                                                                                                                                                          │
│                                                                                                                                                          │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Mon Oct 25, 2021 3:23 am    Post subject: Reply with quote

oo ok. so i see thats good to know. atleast one volume i cant change and then i will see if ic an do for program to program then.

i did complie obs-studio with -pulseaudio i guess i need pulseaudio useflag to get it to work as i want it too.
i can pipe the microphone with jack and maybe the program too so i get sound to it sense it has jack support, but as i said before then i lose all other sound so thats not a way to do it. sometimes the useflags does confuse me abit sense it say it has A and then you think it has that support but it dont really you need B too for it to work.


compling obs with pulse dont work

Code:
# emerge -pv obs-studio

These are the packages that would be merged, in order:

Calculating dependencies                      ... done!       
[ebuild  N     ] sys-apps/tcp-wrappers-7.6.31::gentoo  USE="ipv6 (split-usr) -netgroups" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] net-libs/libasyncns-0.8-r4::gentoo  USE="-debug -doc" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N    ~] media-sound/pulseaudio-15.0-r1::gentoo  USE="X asyncns dbus glib ipv6 tcpd -alsa -alsa-plugin -bluetooth -daemon -doc -elogind -equalizer -gdbm -gstreamer -gtk -jack -lirc -native-headset -ofono-headset -orc (-oss) (-selinux) -sox -ssl (-system-wide) -systemd -test -udev -webrtc-aec -zeroconf" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R   ~] media-video/obs-studio-27.1.3::gentoo  USE="alsa fdk jack nvenc pulseaudio* speex ssl truetype v4l -browser -decklink -lua -pipewire -python -vlc -wayland" LUA_SINGLE_TARGET="luajit" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8" 0 KiB
[blocks B      ] media-sound/pulseaudio ("media-sound/pulseaudio" is blocking media-sound/apulse-0.1.13)

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-sound/pulseaudio-15.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    media-sound/pulseaudio required by (media-video/obs-studio-27.1.3:0/0::gentoo, ebuild scheduled for merge) USE="alsa fdk jack nvenc pulseaudio speex ssl truetype v4l -browser -decklink -lua -pipewire -python -vlc -wayland" ABI_X86="(64)" LUA_SINGLE_TARGET="luajit" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8"

  (media-sound/apulse-0.1.13:0/0::gentoo, installed) pulled in by
    media-sound/apulse required by @selected


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages

just tried it.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Mon Oct 25, 2021 12:17 pm    Post subject: Reply with quote

Shaorin,

Code:
[blocks B      ] media-sound/pulseaudio ("media-sound/pulseaudio" is blocking media-sound/apulse-0.1.13)

That's a hard blocker because both packages install some of the same files.
You cannot install them both at the same time.

I don't think ALSA can do per application sound levels but someone will be along "real soon now" to show you how to do it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Mon Oct 25, 2021 3:02 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Shaorin,

Code:
[blocks B      ] media-sound/pulseaudio ("media-sound/pulseaudio" is blocking media-sound/apulse-0.1.13)

That's a hard blocker because both packages install some of the same files.
You cannot install them both at the same time.

I don't think ALSA can do per application sound levels but someone will be along "real soon now" to show you how to do it.


yes i did see the HARD block just posted it anyway. the same happen for pulsemixer. i really really would love to be able to set audio levels and mic options for each program. i dont care if its a CLI or abit weird that can be fix by a script but if there is nothing then i just going to be happy and accept it.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Mon Oct 25, 2021 8:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:

I don't think ALSA can do per application sound levels but someone will be along "real soon now" to show you how to do it.


I gave up on having a pure Alsa system a few years back, I use pulseaudio and pulsemixer as that seems to have the best sound, especially when watching movies in Firefox.
And I dont know if Firefox ever started supporting any other sound 'backend'?

If I were trying to run really old hardware or embedded I'd go pure ALSA for sure.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Mon Oct 25, 2021 9:31 pm    Post subject: Reply with quote

turtles,

I only have ALSA.
I believe that firefox-bin needs pulse but home made firefox works with alsa here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Mon Oct 25, 2021 10:18 pm    Post subject: Reply with quote

NeddySeagoon wrote:
turtles,

I only have ALSA.
I believe that firefox-bin needs pulse but home made firefox works with alsa here.


Neddy thats great to here, last I tired it some videos with HD sound did not work well
and the killer was my google voice did not have full duplex, and I use google voice all day long for work.
I might have an old thread on here about it.
Cheers
Turtle
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum