domingo, 19 de julho de 2020

Bluedio bluetooth falhando audio no manjaro

O audio tava bugado, como se a transmissão estivesse fraca. Falhando.
criei o arquivo:

/etc/pulse/daemon.conf


    default-sample-format = s24le
    default-sample-rate = 44100
    alternate-sample-rate = 48000
    default-sample-channels = 3
    default-channel-map = front-left,front-right,lfe

    default-fragments = 2
    default-fragment-size-msec = 125
    #resample-method = soxr-vhq

    resample-method = speex-float-5
    enable-lfe-remixing = yes
    high-priority = yes
    nice-level = -11
    realtime-scheduling = yes
    realtime-priority = 9
    daemonize = no
 
 
 aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
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
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
sysdefault:CARD=Generic
    HD-Audio Generic, ALC887-VD Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    Front output / input
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output

 Para usar por padrão o surround21:

.asoundrc em ~/
pcm.!default surround21:Generic
 
 REINICIAR O PULSEAUDIO
 systemctl --user restart pulseaudio
 
CASO ALGUMA CONFIGURAÇÃO DÊ ERRADO ELE VAI RECLAMAR: 
systemctl --user restart pulseaudio
Job for pulseaudio.service failed because the control process exited with error code.
See "systemctl --user status pulseaudio.service" and "journalctl --user -xe" for details.
 
 
VAI TER QUE IR MUDANDO NO DAEMON.CONF ATÉ CONSEGUIR DEIXAR RODANDO CERTINHO. 

Tentei e nada ainda, tá uma bosta