LinuxForum.Fans
Тема

Дребезжит звук

Автор: Konlor95 22 сообщений 7285 просмотров
#369660

Дребезжит звук в динамиках. И на Alsa, и на Pulse. В Виндоуз такого нет. Мой daemon.conf. битрейт и частота, как в виндоуз.

text
# This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting.

; daemonize = no ; fail = yes ; allow-module-loading = yes ; allow-exit = yes ; use-pid-file = yes ; system-instance = no ; local-server-type = user ; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; lock-memory = no ; cpu-limit = no

; high-priority = yes ; nice-level = -11

; realtime-scheduling = yes ; realtime-priority = 5

; exit-idle-time = 20 ; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes ; default-script-file = /etc/pulse/default.pa

; log-target = auto ; log-level = notice ; log-meta = no ; log-time = no ; log-backtrace = 0

resample-method = src-sinc-best-quality ; enable-remixing = yes ; enable-lfe-remixing = no

flat-volumes = no

; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rttime = 1000000

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

default-fragments = 8 default-fragment-size-msec = 10

; enable-deferred-volume = yes deferred-volume-safety-margin-usec = 1 ; deferred-volume-extra-delay-usec = 0

#369662

Konlor95,
Как вы этот конфигурационный файл раскурочили.
Ведь выглядит по умолчанию (красиво) так: (pulseaudio 4 из Ubuntu 13.10)

text
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Soft ware Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the h ope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General P ublic License
# along with P ulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

## Config uration file for the PulseAudio daemon. See puls e-daemon.conf( 5) fo## more information. Default values are commented out. Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture) 
; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = not ice
; log-me ta = no
; log-time = no
; log-backtrace = 0

resample-method = speex-float-1
; enable-remixing = yes
; enable-lfe-remixing = no

flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 1000000

; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

default-fragments = 8
default-fragment-size-msec = 10

; enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 1
; deferred-volume-extra-delay-usec = 0

У вас какая убунта и версия pulseaudio?
Какая звуковая карта,

#369665

Linux mint 16, 1:4.0-0ubuntu6, Realtek HD Audio.

#369666

Konlor95,
А что делать: (для проверки)
Сменить:

text
resample-method = src-sinc-best-quality

на:

text

resample-method = speex-float-1

Далее:

text
default-sample-format = s24le

на:

text
default-sample-format = s16le

Далее:

text
default-sample-rate = 44100
alternate-sample-rate = 48000

сменить на:

text
default-sample-rate = 48000
alternate-sample-rate = 44100
#369667

Konlor95,
Поменял конф файл из пульсаудио 4 во втором сообщении (тот что по умолчанию ubuntu 13.10)

#369669

Konlor95,
Т.е. приведите в порядок конф.файл daemon.conf.

После манипуляций ещё раз его покажите.

#369670

возможно звуковуха неправильно распозналась. у всех интел шда один модуль, но он содержит кучу чипов и не всегда правильно распознается нужный чипсет. особенно его подверсия с кол-вом входов и выходов.

#369678

Вроде прекратилось, когда я поменял

text
  Далее:
default-sample-rate = 44100
alternate-sample-rate = 48000
сменит на:
default-sample-rate = 48000
alternate-sample-rate = 44100
#369679

Но все равно не то.

#369683
text
    
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting.

; daemonize = no ; fail = yes ; allow-module-loading = yes ; allow-exit = yes ; use-pid-file = yes ; system-instance = no ; local-server-type = user ; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; lock-memory = no ; cpu-limit = no

; high-priority = yes ; nice-level = -11

; realtime-scheduling = yes ; realtime-priority = 5

; exit-idle-time = 20 ; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes ; default-script-file = /etc/pulse/default.pa

; log-target = auto ; log-level = notice ; log-meta = no ; log-time = no ; log-backtrace = 0

resample-method = src-sinc-best-quality ; enable-remixing = yes ; enable-lfe-remixing = no

flat-volumes = no

; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rttime = 1000000

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

default-fragments = 8 default-fragment-size-msec = 10

; enable-deferred-volume = yes deferred-volume-safety-margin-usec = 1 ; deferred-volume-extra-delay-usec = 0

#369689
"Konlor95" написал:
default-sample-format = s24le

Смените на то, что показал.

"Konlor95" написал:
resample-method = src-sinc-best-quality

Смените на то, что показал.

#369813

Да, после полной замены дребезжание прекратилось. Но и качество звука, скорее всего, ухудшилсь.

#369814
"Konlor95" написал:
Но и качество звука, скорее всего, ухудшилсь.

Пробуйте разные значения resample-method, из следующих:

text
speex-float-3
speex-float-5
src-sinc-medium-quality
#369816

Скорее всего, это все от default-sample-format, resample-method с самгого начала был speex-float-1, я затем поменял, чтобы устранить дребезжание.

#369818
"Konlor95" написал:
resample-method с самгого начала был speex-float-1

Это значение по умолчанию. Типа самое "безвредное".
Его конечно можно изменить, но пиковые значения ставить бы не рекомендовал.

"Konlor95" написал:
это все от default-sample-format,

Вполне возможно.

#369819

Теперь как бы не менял, все равно дребезжит.

#369822

Konlor95,
Такой конфиг проверьте:

text
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting.

daemonize = yes ; fail = yes allow-module-loading = yes ; allow-exit = yes ; use-pid-file = yes ; system-instance = no ; local-server-type = user ; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; lock-memory = no ; cpu-limit = no

high-priority = yes nice-level = -11

realtime-scheduling = no ; realtime-priority = 5

; exit-idle-time = 20 ; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes ; default-script-file = /etc/pulse/default.pa

; log-target = auto ; log-level = notice ; log-meta = no ; log-time = no ; log-backtrace = 0

resample-method = src-sinc-medium-quality enable-remixing = yes enable-lfe-remixing = yes

flat-volumes = no

; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rttime = 1000000

default-sample-format = s16le default-sample-rate = 48000 alternate-sample-rate = 44100 default-sample-channels = 2 default-channel-map = front-left,front-right

; default-fragments = 4 ; default-fragment-size-msec = 25

; enable-deferred-volume = yes ; deferred-volume-safety-margin-usec = 8000 ; deferred-volume-extra-delay-usec = 0

И не забывайте перезапускать пульсу после внесения изменений:
[console=user]pulseaudio -k && pulseaudio --start[/console]

#369827

не помогает.

#369828
"Konlor95" написал:
не помогает.

А привести в это состояние обратно можете?:

"Konlor95" написал:
Да, после полной замены дребезжание прекратилось.
#369829

Такое только один раз было, когда я метод ресемплинга поставил на speex-float-1. Потом, как не менял, динамики дребезжали. Перезапускать пульсу не забывал.

Войдите или зарегистрируйтесь, чтобы ответить.