You are not logged in.

#1 2014-08-02 04:22:58

Frabato
Member
Registered: 2007-10-24
Posts: 267

oss4 jack proaudio

Hi All,

I'm running oss4 but my 8 year old son is becoming interested in softsynths and sequencers (I'm mostly interested in non-sequencer, qtractor and amsynth). The standard qjackctl doesn't produce any sound on my system. I guess that I would have to rebuild jack with oss enabled although the standard qjackctl has an oss option. Is this the old oss or the new oss4? Is it worth it? I read that oss4 has superior sound but I can't verify that because I can't truly do an AB comparison, by the time I switch from alsa to oss4, my beer may have changed from English to German (cited as one of the major causes of listening bias by a major audiophile magazine).
http://www.roger-russell.com/truth/truth.htm
http://www.roger-russell.com/wire/wire.htm
Question, can I get qjackctl, non-sequencer, qtractor and amsynth to play nicely together with oss4? Is it worth it in 2014 or should I just switch back to alsa? Please chime in, all opinions welcome!

Thanks!

Oh yes, I have some fairly high end equipment, nad, hafler and klipsch.

Last edited by Frabato (2014-08-02 04:26:33)

Offline

#2 2014-08-02 20:30:18

sekret
Member
Registered: 2013-07-22
Posts: 303

Re: oss4 jack proaudio

I've had this issue as well, was willing to switch to oss4, but for my recordings with ardour etc it wasn't ideal. Additionally my usb soundcard didn't work well with oss4, so in the end it was a no-go.

Now I've found my peace with alsa, so I stick to it. What's your reason for switching to oss4? Is it really that important?

If so, recompile jack. Qjackctl is just a frontend for jackd, which doesn't "know" what jackd can use as a backend.

Offline

#3 2014-08-02 22:29:40

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: oss4 jack proaudio

Will you or your son be really able to make out any differences while jamming? Audio rendering and exporting should be independent of the sound backend used, depending on the physical setup and workflow of course.
If set up correctly, running jack on top of alsa should provide high fidelity. The only way to objectively compare those two sound architectures, would be through measurements with proper equipment. AB comparisons, I assume you simply mean hearing tests, are fine for one setup, but are still subjective and not universal. The "best" part is, the results might be the opposite of perception.
However if you are satisfied with oss so far, try what sekret suggested, I do not see support for oss with jack2 however, so switching back to jack1 might be necessary.

Offline

#4 2014-08-03 02:05:46

Frabato
Member
Registered: 2007-10-24
Posts: 267

Re: oss4 jack proaudio

Hi,

I rebuilt jack with --enable-oss=YES but trying to run it tells me:
cannot open shared object file: No such file or directory jackd: unknown driver 'oss'

Anyway, I see no signs of oss4 becoming the way of the future and alsa is certainly much more convenient so I guess I'll be switching back.

sekret wrote:

Now I've found my peace with alsa, so I stick to it. What's your reason for switching to oss4? Is it really that important?

Simply that there's a rumor going around that oss4 sounds better. All of my music is on the computer and I have nice stereo equipment so I was hoping to make it work.

emeres wrote:

Will you or your son be really able to make out any differences while jamming?

No, probably not.

emeres wrote:

The only way to objectively compare those two sound architectures, would be through measurements with proper equipment. AB comparisons, I assume you simply mean hearing tests, are fine for one setup, but are still subjective and not universal. The "best" part is, the results might be the opposite of perception.

Agreed.

Thanks for the responses, I'll switch back to alsa and relax!

Offline

#5 2014-08-03 13:40:48

sekret
Member
Registered: 2013-07-22
Posts: 303

Re: oss4 jack proaudio

Frabato wrote:
sekret wrote:

Now I've found my peace with alsa, so I stick to it. What's your reason for switching to oss4? Is it really that important?

Simply that there's a rumor going around that oss4 sounds better. All of my music is on the computer and I have nice stereo equipment so I was hoping to make it work.

That was one of my main reasons as well. But then I found out that the main issue with alsa is dmix, the software mixer for alsa, which is said to have low quality. Pulseaudio for example replaces dmix and provides better sound quality and more features. The same with oss4, which has higher quality software mixing.

But if you want high quality audio playback, you can simply not use dmix. For example I use mpv for videos and moc for audio. In mpv you can do it with mpv --ao=alsa:device=[plughw:UA25] (UA25 being the name of my soundcard according to aplay -l

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB1 [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: UA25 [EDIROL UA-25], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and with moc the command line is mocp -O ALSADevice=plughw:UA25

All you lose is, that those applications run like this will block the audio device for other applications. E.g. if I play music in moc and want to play a video with mpv, I get this output

...
[ao/alsa] Playback open error: Device or resource busy
[ao] Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
...

But that's ok, because if you want to listen to high quality music, you don't want to be disturbed by other crap wink

edit: What you can do is to launch jack with plughw being used, e.g.

jackd -dalsa -r44100 -p1024 -n2 -D -Cplughw:UA25 -Pplughw:UA25

which brings back the ability for different applications to use this one soundcard.

edit2: Also this could be of interest.

Last edited by sekret (2014-08-03 14:38:58)

Offline

#6 2014-08-03 14:20:54

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: oss4 jack proaudio

sekret wrote:

That was one of my main reasons as well. But then I found out that the main issue with alsa is dmix, the software mixer for alsa, which is said to have low quality. Pulseaudio for example replaces dmix and provides better sound quality and more features. The same with oss4, which has higher quality software mixing.

Dmix has maximum 24 bit resolution for mixing. So that is one aspect. Or do you also mean the mixing algorithm? Can you pinpoint to the troubling part?

sekret wrote:

But if you want high quality audio playback, you can simply not use dmix. For example I use mpv for videos and moc for audio. In mpv you can do it with mpv --ao=alsa:device=[plughw:UA25]

No offence, but using plughw is futile, since it will resample if necessary*, therefore degrading/modifying original signal. Set the appropriate parameters either through custom pcm devices of type hw or create a new hifihw device that will accept runtime parameters (channels, format, frequency etc.) and change them on between playback. This should be feasible through creative scripting, maybe even without much help outside of alsa. Simply because of courtesy and comfort of changing parameters through device addressing or some anomalies, otherwise using type hw should handle changes on its own.

As for the definition, in case of wanted resampling, a resampler may be specified, either for each pcm definition or through 'defaults.pcm.rate_converter' node. See the wiki and the conversation page, there was a change recently involving speexrate resampler.

sekret wrote:

All you lose is, that those applications run like this will block the audio device for other applications. E.g. if I play music in moc and want to play a video with mpv, I get this output

...
[ao/alsa] Playback open error: Device or resource busy
[ao] Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
...

You can avoid those errors by specifying 'nonblock 0' into the type hw pcm definition or 'defaults.pcm.nonblock' node. Depending on the sound source, it might play afterwards.

I would recommend using best possible parameters for the jack server with hw:cardname-reference instead of plughw.

Edit: * Unless it is necessary for your hardware, which could be the case. Again I am not trying to flame. Just make sure you understand what plughw actually does, otherwise you might be unknowingly thinking, you are using the best settings. Check 'less /usr/share/alsa/alsa.conf' for more information and our alsa wiki. At some point I will probably add advanced configuration with custom runtime parameters, so it will be explained how they work.

Edit2: Typos, but there are probably more.
The plug pcm in between pcm.default and pcm.jack could be expanded, since it will also resample "willy nilly", unless specified. The best way is of course to have a signal path without conversions and use jack directly.

Last edited by emeres (2014-08-03 15:59:57)

Offline

#7 2014-08-03 14:42:22

sekret
Member
Registered: 2013-07-22
Posts: 303

Re: oss4 jack proaudio

Thaniks emeres, looks like it's been a long time when I looked for this stuff. If I remember correctly it was still in my ubuntu days, and i had no idea whatsoever back then. So really no offence taken, I'm always eager to learn!

Offline

Board footer

Powered by FluxBB