Re: Sound is good on OpenBSD

2020-04-30 Thread Abel Abraham Camarillo Ojeda
On Wed, Apr 29, 2020 at 7:46 AM Alexandre Ratchov  wrote:

> On Wed, Apr 29, 2020 at 11:46:06AM +0200, Moises Simon wrote:
> > On Tue, Apr 28, 2020 at 03:38:58PM -0500, Abel Abraham Camarillo Ojeda
> wrote:
> > > I think increasing -b option in sndiod helps to prevent audio jumping,
> I
> > > hear music with a local mpd with music directory over nfs, plus a lot
> of
> > > firefox and chrome and hear no jumps , etc
> > >
> > > regards
> >
> > I can confirm. For me setting -b 8640 stops the audio jumping.
> >
> > Thanks Abel.
> >
>
> what devices are you using? azalia? usb?
>


azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Realtek ALC298, Intel/0x2809, using Realtek ALC298
audio0 at azalia0

$ grep sndiod /etc/rc.conf.local
sndiod_flags=-b12000

dmesg just in case:

 OpenBSD 6.7-beta (GENERIC.MP) #125: Sun Apr 12 14:56:53 MDT 2020
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8431632384 (8041MB)
avail mem = 8163483648 (7785MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xb9908000 (58 entries)
bios0: vendor LENOVO version "R0GET56W (1.56 )" date 08/31/2017
bios0: LENOVO 20JVS17D00
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT HPET APIC MCFG ECDT SSDT BOOT BATB
SLIC SSDT SSDT WSMT SSDT SSDT DBGP DBG2 MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4) RP02(S4)
RP04(S4) RP05(S4) RP06(S4) RP07(S4) RP08(S4) RP09(S4) RP10(S4) RP11(S4)
RP12(S4) RP13(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2960.10 MHz, 06-4e-03
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2860.65 MHz, 06-4e-03
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2860.64 MHz, 06-4e-03
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2860.64 MHz, 06-4e-03
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 

Re: Sound is good on OpenBSD

2020-04-29 Thread Alexandre Ratchov
On Wed, Apr 29, 2020 at 11:46:06AM +0200, Moises Simon wrote:
> On Tue, Apr 28, 2020 at 03:38:58PM -0500, Abel Abraham Camarillo Ojeda wrote:
> > I think increasing -b option in sndiod helps to prevent audio jumping, I
> > hear music with a local mpd with music directory over nfs, plus a lot of
> > firefox and chrome and hear no jumps , etc
> > 
> > regards
> 
> I can confirm. For me setting -b 8640 stops the audio jumping.
> 
> Thanks Abel.
> 

what devices are you using? azalia? usb?



Re: Sound is good on OpenBSD

2020-04-29 Thread Moises Simon
On Tue, Apr 28, 2020 at 03:38:58PM -0500, Abel Abraham Camarillo Ojeda wrote:
> I think increasing -b option in sndiod helps to prevent audio jumping, I
> hear music with a local mpd with music directory over nfs, plus a lot of
> firefox and chrome and hear no jumps , etc
> 
> regards

I can confirm. For me setting -b 8640 stops the audio jumping.

Thanks Abel.



Re: Sound is good on OpenBSD

2020-04-29 Thread Yury Grebenkin
On Tue, Apr 28, 2020 at 3:21 PM Consus  wrote:
> On Tue, Apr 28, 2020 at 03:01:15PM +0300, Yury Grebenkin wrote:
> > OpenBSD gives a better sound experience on my machine than several
> > Linux distributions I have used and FreeBSD. Just want to say thank
> > you to all the people involved and state the fact that OpenBSD does
> > make a difference.
> Blood virgin sacrifice tends to make FLAC even better.

Maybe. But not for me.

-- Yury
https://yvgrebenkin.wordpress.com/



Re: Sound is good on OpenBSD

2020-04-28 Thread Abel Abraham Camarillo Ojeda
On Tuesday, April 28, 2020, David Demelier  wrote:

> Le 28/04/2020 à 14:01, Yury Grebenkin a écrit :
>
>> OpenBSD gives a better sound experience on my machine than several
>> Linux distributions I have used and FreeBSD. Just want to say thank
>> you to all the people involved and state the fact that OpenBSD does
>> make a difference.
>>
>
> The audio stack is definitely better as we have the clean and simple sndio
> interface while Linux has to deal with ALSA, Jack, PulseAudio and maybe
> pipewire at some point.
>
> That said, I personally have stuttering when playing music on OpenBSD and
> doing some CPU “intensive” tasks like many firefox tabs opened. I'd be glad
> to see if it works better for you and if you tweak the system to avoid that.
>
> --
> David


I think increasing -b option in sndiod helps to prevent audio jumping, I
hear music with a local mpd with music directory over nfs, plus a lot of
firefox and chrome and hear no jumps , etc

regards


Re: Sound is good on OpenBSD

2020-04-28 Thread Aisha Tammy


On 4/28/20 9:22 AM, David Demelier wrote:
> Le 28/04/2020 à 14:01, Yury Grebenkin a écrit :
>> OpenBSD gives a better sound experience on my machine than several
>> Linux distributions I have used and FreeBSD. Just want to say thank
>> you to all the people involved and state the fact that OpenBSD does
>> make a difference.
> 
> The audio stack is definitely better as we have the clean and simple sndio 
> interface while Linux has to deal with ALSA, Jack, PulseAudio and maybe 
> pipewire at some point.

jack is there on openbsd right. Does it provide considerable more benefits?

> 
> That said, I personally have stuttering when playing music on OpenBSD and 
> doing some CPU “intensive” tasks like many firefox tabs opened. I'd be glad 
> to see if it works better for you and if you tweak the system to avoid that.
> 



Re: Sound is good on OpenBSD

2020-04-28 Thread David Demelier

Le 28/04/2020 à 14:01, Yury Grebenkin a écrit :

OpenBSD gives a better sound experience on my machine than several
Linux distributions I have used and FreeBSD. Just want to say thank
you to all the people involved and state the fact that OpenBSD does
make a difference.


The audio stack is definitely better as we have the clean and simple 
sndio interface while Linux has to deal with ALSA, Jack, PulseAudio and 
maybe pipewire at some point.


That said, I personally have stuttering when playing music on OpenBSD 
and doing some CPU “intensive” tasks like many firefox tabs opened. I'd 
be glad to see if it works better for you and if you tweak the system to 
avoid that.


--
David



Re: Sound is good on OpenBSD

2020-04-28 Thread Consus
On Tue, Apr 28, 2020 at 03:01:15PM +0300, Yury Grebenkin wrote:
> OpenBSD gives a better sound experience on my machine than several
> Linux distributions I have used and FreeBSD. Just want to say thank
> you to all the people involved and state the fact that OpenBSD does
> make a difference.

Blood virgin sacrifice tends to make FLAC even better.