How to enable "production quality with extra precision"?

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Thu Jan 24, 2013 7:09 pm

How would I enable "production quality with extra precision" on ubuntu 12.04? I understand that you have it working on Arch.

I only have fast, high and off in the v-mix under the most recent Oss4.
tarik2cyprian
 
Posts: 7
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Thu Jan 24, 2013 9:04 pm

tarik2cyprian wrote:How would I enable "production quality with extra precision" on ubuntu 12.04? I understand that you have it working on Arch.

I only have fast, high and off in the v-mix under the most recent Oss4.


The "production quality with extra precision" somehow disappeared, and it was said that it did not exist.
What is available is the Russian "exact scientific resampler" (you may find it in this thread).

Although the "production quality with extra precision" ceased to exist, the crappy "production quality" can still be enabled. This was already explained by Cesium in this thread.
You may also want to read a manual on how to compile OSS4 from Mercurial https://help.ubuntu.com/community/OpenS ... rom_Source

In a word, it is very probable that you do not need that "production quality". What is your "ossinfo -v9"?
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Thu Jan 24, 2013 11:34 pm

Thanks igor for the fast response. My ossinfo -v9 is below.

Code: Select all
Version info: OSS 4.2 (b 2006/201301242311) (0x00040100) OSS_HG
Hg revision: changeset: 948:233e1cedf15a, tag: tip, date: Thu Mar 01 21:05:56 2012 +0200, summary: Fixes for FreeBSD
Platform: Linux/x86_64 3.2.0-36-lowlatency #36-Ubuntu SMP PREEMPT Sat Jan 12 15:05:04 UTC 2013 (LANBOX-HT)

Number of audio devices:   2
Number of audio engines:   7
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_cmi878x0 Asus Xonar Essence ST (AV100) interrupts=7924 (7927)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: CMI8788 UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI835d1043-0000:04:06.0-md01


Mixer devices
0: CMedia CMI8788 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx01
    Device priority: 10

1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix1, Legacy device /dev/mixer1
    Priority: 2
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx02
    Device priority: 2


Audio devices
Asus Xonar Essence ST (AV100) (MultiChannel)  /dev/oss/oss_cmi878x0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Asus Xonar Essence ST (AV100) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      3: 2/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      4: 3/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      5: 4/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      6: 5/Asus Xonar Essence ST (AV100) (Multichannel)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au01
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Asus Xonar Essence ST (AV100) (SPDIF)  /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 6/Asus Xonar Essence ST (AV100) (SPDIF)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au02
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmi878x0/pcm1
  /dev/dsp_mmap -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmi878x0/pcm0


Thanks for letting me know about the Russian "exact scientific resampler". Do you know and provide me with instructions on how to use and install the Russian "exact scientific resampler" for configuration using Deadbeef and Audicious?
I know it is something you have to modify in the scripts of those audio programs but I don't know how.
tarik2cyprian
 
Posts: 7
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 25, 2013 1:49 am

tarik2cyprian wrote:Thanks igor for the fast response. My ossinfo -v9 is below.

Code: Select all
Version info: OSS 4.2 (b 2006/201301242311) (0x00040100) OSS_HG
Hg revision: changeset: 948:233e1cedf15a, tag: tip, date: Thu Mar 01 21:05:56 2012 +0200, summary: Fixes for FreeBSD
Platform: Linux/x86_64 3.2.0-36-lowlatency #36-Ubuntu SMP PREEMPT Sat Jan 12 15:05:04 UTC 2013 (LANBOX-HT)

Number of audio devices:   2
Number of audio engines:   7
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_cmi878x0 Asus Xonar Essence ST (AV100) interrupts=7924 (7927)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: CMI8788 UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI835d1043-0000:04:06.0-md01


Mixer devices
0: CMedia CMI8788 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx01
    Device priority: 10

1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix1, Legacy device /dev/mixer1
    Priority: 2
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx02
    Device priority: 2


Audio devices
Asus Xonar Essence ST (AV100) (MultiChannel)  /dev/oss/oss_cmi878x0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Asus Xonar Essence ST (AV100) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      3: 2/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      4: 3/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      5: 4/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      6: 5/Asus Xonar Essence ST (AV100) (Multichannel)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au01
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Asus Xonar Essence ST (AV100) (SPDIF)  /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 6/Asus Xonar Essence ST (AV100) (SPDIF)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au02
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmi878x0/pcm1
  /dev/dsp_mmap -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmi878x0/pcm0


Thanks for letting me know about the Russian "exact scientific resampler". Do you know and provide me with instructions on how to use and install the Russian "exact scientific resampler" for configuration using Deadbeef and Audicious?
I know it is something you have to modify in the scripts of those audio programs but I don't know how.


According to your "ossinfo -v9", the OSS4 driver for your Xonar supports a wide range of sample rates: 32000 - 192000 (Hz). This means that almost all sound files (except for DXD Waves and other super HiRes) can be played without sample rate conversion. Thus, OSS4 resamplers can be disabled. However, the driver does not support 24bit format.

An optimal configurations of the OSS4 mixer might be:

Code: Select all
$ ossmix
vmix0-enable ON|OFF (currently ON)
vmix0-src <Fast|High|High+|Production|OFF> (currently OFF)


This means that vmix is enabled, but vmix0-src (sample rate conversion) is disabled.
The format conversion is still enabled. I tend to use this configuration on my notebook with Intel HDA codec.

This configuration is preferable for playing HD video files, because it minimizes processor load. Everything else seems to work without problems (Skype, etc.) The only trouble-maker is Flash player. It can hijack the sound device, and other application would not be able to play sound. In this case, you can simply close a web page with Flash, or close your web browser. Another notorious trouble-maker is KDE notifier (it can be disabled in KDE preferences).

For playing HiRes FLACs you may want to install Petrov's plugins for Deadbeef and Audacious. They can be obtained by e-mail from Sergey Petrov (it is supposed that you have already tried his resampler).

Petrov's plugin for Deadbeef is easy to install. Just copy it to the Deadbeef folder:

Code: Select all
$ ls
oss_rate-i386.so 
oss_rate-x86_64.so
$ sudo cp oss_rate-i386.so /usr/lib/deadbeef/oss_rate.so


(Warning: it might be another folder on Ubuntu, a sort of "/usr/local/lib/deadbeef" or something else.)

Then you start Deadbeef, go to the preferences, enable Petrov's plugin and configure it (enable "exclusive" mode, select the sample rate you need, and so on). You may want to start deadbeef on terminal to see all info about playback. It might be helpful for troubleshooting. It might also be interesting, if you are playing surround sound.

Notice that the open source OSS4 plugin for Audacious (git-version) supports "exclusive mode", which can be enabled in "preferences".

Petrov's plugin for Audacious is the so-called "effect plugin", you can find it in "effects", if it is installed. It can be installed in a similar way:

Code: Select all
$ ls
fftrate-i386.so 
fftrate-x86_64.so
$ sudo cp fftrate-i386.so /usr/lib/audacious/Effect/fftrate.so


It might be another folder on Ubuntu.

If you have questions about Audacious/OSS4 sound quality settings, you may contact Michal viewtopic.php?f=3&t=3834&p=15221#p15221 He may also help with Petrov's plugins.
Attachments
2 DeadBeef Preferences - Configure Petrov's plugin.png.tar.gz
DeadBeef → Preferences → Configure plugin
(77.38 KiB) Downloaded 106 times
1 Deadbeef Preferences - Sound.png.tar.gz
DeadBeef → Preferences → Sound
(20.64 KiB) Downloaded 101 times
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Fri Jan 25, 2013 3:40 am

Thanks once again Igor for this great info,

I believe my sound card can play 24 bit. I will have to give it a try and find out. I also noticed that flash is also buggy unless you close the webbrowser.

Do you happen to know what Petrov's email or contact information is so I can uptain the plugins? You can send it to me via pm if you want.

Thanks once again
tarik2cyprian
 
Posts: 7
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 25, 2013 4:47 am

tarik2cyprian wrote:I believe my sound card can play 24 bit. I will have to give it a try and find out.


Your soundcard might be able to play 24bit format, but the OSS4 driver for your soundcard does not seem to support such format. You may ask developers to fix this problem. Moreover, this driver is "beta", it might be buggy, it may also fail to play 192kHz sample rate.

tarik2cyprian wrote:Do you happen to know what Petrov's email or contact information is so I can uptain the plugins?


Try the resampler. It can be downloaded here: viewtopic.php?f=3&t=3543&start=45#p15974
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Previous

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron