[HowTo] A Test for Deafness

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

igorzwx
Known Member
Posts: 1256
Joined: Sun Jun 28, 2009 9:31 pm

[HowTo] A Test for Deafness

Postby igorzwx » Fri Aug 05, 2016 8:00 pm

Step 1: Download free DXW samples "Stereo 24BIT/352.8kHz" from 2L (Lindberg Lyd)
_http://www.2l.no/hires/index.html

There are two sorts of DXD samples available for testing:
1. 24BIT/352.8kHz flacs
2. 24BIT/352.8kHz waves in zip-archives

For example:
_http://www.lindberg.no/hires/test/2L-038_stereo_FLAC_352k_24b_01.flac
_http://www.lindberg.no/hires/test/2L50SACD_tr1_DXD_stereo.zip

Step 2: Decompress DXD flacs and unzip archives with DXD waves

Code: Select all

$ flac -d *.flac
2L-038_stereo_FLAC_352k_24b_01.flac: done 
$ unzip *.zip
Archive:  2L50SACD_tr1_DXD_stereo.zip
  inflating: 2L50SACD_tr1_DXD_stereo.wav 
$ ls -1
2L-038_stereo_FLAC_352k_24b_01.flac
2L-038_stereo_FLAC_352k_24b_01.wav
2L50SACD_tr1_DXD_stereo.wav
2L50SACD_tr1_DXD_stereo.zip


Step 3: Convert a DXW wave to 192kHz/32Bit and 48kHz/16bit PCM waves with Petrov's pcm_conv
_http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5789

Step 4: Play 192kHz/32Bit and 48kHz/16bit waves with ossplay in exclusive mode

Code: Select all

$ ossplay -R -vvvv *.wav


Code: Select all

$ man ossplay
       -R     Disable  redirection  to  virtual  mixer  engines   and   sample
              rate/format  conversions.


If you do not hear any difference, you are probably semi-deaf.

You may also try a "blind test" _https://en.wikipedia.org/wiki/Blind_experiment

If you have a pseudo-professional soundcard which does not support 192kHz sample rate, you may try 96kHz.

If your computer is not very old, it should have an Intel HDA codec on the motherboard.
Such codecs usually support 192kHz/32Bit and 48kHz/16bit format with OSS4

Code: Select all

$ ossinfo -v9
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    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
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)


The OSS4 drivers for Intel HDA codecs support high quality playback (excluse mode). You may not need to purchase a professinal soundcard, such as LynxTWO _http://manuals.opensound.com/usersguide/lynxtwo.html

The cheapest Sennheiser headphones might be sufficient for the purpose, for example:
Sennheiser HD 201 – 22 Euro (warning: they are very loud with OSS4, you have to reduce the volume level to minimum).
You may also want to try the most expensive headphones for audiophiles.

Head-Fi.org - Headphone forums and reviews for audiophiles
_http://www.head-fi.org/

WARNING: You may not hear any difference between HiRes and CD format with ALSA, simply because ALSA resamples everything with a low quality resampler. Since ALSA does not provide any sort of "exclusive mode", it should not be used for hearing tests. However, if an ALSA user believes that ALSA permits a sort of "exclusive mode", he may try the test for deafness with ALSA. If he does not hear the difference between HiRes audio and CD format, it may mean that ALSA is dangerous for health.

It seems that FreeBSD has a sort of "pseudo exclusive mode" named "bitperfect mode". The FreeBSD used are invited to believe that, when the "bitperfect mode" is enabled, "the pure sound stream will be fed directly to the hardware" without resampling or dsp processing.

Code: Select all

dev.pcm.%d.bitperfect
        Enable or disable bitperfect mode.    When enabled, channels   will
        skip all dsp processing, such as channel matrixing, rate convert-
        ing and equalizing.  The pure sound stream   will be   fed directly
        to   the hardware.  If VCHANs are enabled, the bitperfect mode will
        use the VCHAN format/rate as the definitive format/rate target.
        The recommended way to use   bitperfect mode   is to disable VCHANs
        and enable   this sysctl.  Default is disabled.

_https://www.freebsd.org/cgi/man.cgi?query=pcm&sektion=4


The Mac OS users may not need fool themselves with HiRes audio and hearing tests, because Mac OS does not support "exclusive mode". There is, however, a naive belief that certain third-party apps, such as "BitPerfect", may disable resampling (such beliefs and superstitions can hardly be verified with clear-cut tests):

Exclusive Mode aka Hog Mode : What really matters on a Mac OS is how the player takes control of the settings in core audio of you machine. Open up "Audio- and MIDI-settings" and show the audio window. Play files with different sample rates and bit-depth from iTunes and you will se that core audio doesn't change. That means a sample rate conversion is taking place. Now download and run an app like the BitPerfect and make the same test. You should now observe that the core settings are actively adapted for each and every song you play in iTunes. This is what players like Amarra Music Player, Pure Music and Audirvana also does; they take active control and optimize the core audio settings to avoid any local real-time sample rate conversion.
_http://www.2l.no/hires/index.html


What really matters is what the term "exclusive mode" actually means.
The true meaning of the term is that certain software causes of sound distortions are somehow removed:
1. any sort of software mixing and/or redirection to virtual mixer engines is disabled,
2. sample rate/format conversions are disabled,
3. any sort of dsp processing, such as equalizing, is disabled.

It seems certain sound systems, such as ALSA, FreeBSD pseudo-OSS, and MAC OS sound system, do not provide any possibility to disable their software mixers. Such "software mixers" are a sort of buggy software layer between "the pure sound stream" and "the hardware". This buggy software layer is one of the main causes of sound distortions.

2L (Lindberg Lyd)
_http://www.2l.no/pages/about.html
_https://no.wikipedia.org/wiki/2L

DXD waves and DXD flacs for audiophiles can be purchased on HDtracks
_https://en.wikipedia.org/wiki/HDtracks

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests