No sound when playing 192KHz

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

No sound when playing 192KHz

Postby cortebert » Tue Dec 04, 2012 1:38 pm

Hi all,

I just recently switched to oss from alsa and while I'm enjoying the sound over alsa, I've run into an issue which did not exist while using alsa (but I don't want to go back :))

While listening to my collection I noticed on some files there was no sound and yet the player seemed as it was all ok. When I checked the files, I saw that every file that had this problem was in fact 24bit/192Khz.

I have Xonar DX card and I'm using ArchLinux x64. As I have a vintage amp, I can only use analogue out. Vmix is disabled as I don't need multiple simultaneous output and I don't want resampling to occur either.

This is the output of ossinfo

Code: Select all
Version info: OSS 4.2 (b 2007/201209142246) (0x00040100) GPL
Platform: Linux/x86_64 3.6.9-ck1 #26 SMP PREEMPT Tue Dec 4 11:46:01 CET 2012 (klo-arch_desk)

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


Device objects
0: osscore0 OSS core services
1: oss_cmi878x0 Asus Xonar DX (AV100) interrupts=109093 (109094)
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: PCI82751043-0000:05:04.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: PCI82751043-0000:05:04.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: PCI82751043-0000:05:04.0-mx02
    Device priority: 2


Audio devices
Asus Xonar DX (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 DX (AV100) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar DX (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: PCI82751043-0000:05:04.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 DX (AV100) (SPDIF)     /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 2/Asus Xonar DX (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: PCI82751043-0000:05:04.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


Player I'm using is Clementine, but it's pretty much the same with every other player I've tried including ossplay.

Doing 'ossplay -v file' I can see that the file is progressing and the VU meter is showing activity although there is no sound at all, not even a hum.
Doing 'ossplay -v -s 96000 file' plays the file and there is sound, but it's slowed down.
Doing 'ossplay -v -s 44100 file' plays the file and there is sound, but it's waaaaay slowed down.

I tried using direct access to device(-R) and manually specifying device, but to no avail.

As I mentioned before, the file is 24bit, so I thought maybe it's having some issues with that, but nope, converting it to 16bit/192KHz still produces no sound.
Also note that the file is stereo, not multichannel.

From the table above, oss is seeing the card is capable of 192KHz, but it's obviously not doing it properly somehow and I have absolutely no idea why is that so.

Thanks for any input, I'd really like to continue using oss.
cortebert
 
Posts: 2
Joined: Tue Dec 04, 2012 12:53 pm

Re: No sound when playing 192KHz

Postby igorzwx » Tue Dec 04, 2012 3:27 pm

cortebert wrote:I have Xonar DX card


You may try:
Code: Select all
$ ossplay -vvvv -R 16bit_192kHz.wav
$ ossplay -vvvv -R 24bit_192kHz.wav
$ mediainfo *.wav


an post the output here.
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: No sound when playing 192KHz

Postby cortebert » Tue Dec 04, 2012 5:30 pm

output of 'ossplay -vvvv -R 16_192.wav'
Code: Select all
[klo@klo-arch_desk ~]$ ossplay -vvvv -R 16_192.wav       
FORM len = 244224428
16_192.wav: Reading chunk fmt , size 16, pos 12, next 36
FMT chunk: len = 16, fmt = 0x1
16_192.wav: Reading chunk data, size 244224000, pos 36, next 244224044
DATA chunk. Offs = 44, len = 244224000
16_192.wav: Reading chunk LIST, size 100, pos 244224044, next 244224152
16_192.wav: Reading subchunk IPRD, size 15
16_192.wav: Product: Back In Black
16_192.wav: Reading subchunk IART, size 6
16_192.wav: Artist Name: AC/DC
16_192.wav: Reading subchunk IGNR, size 5
16_192.wav: Genre: Rock
16_192.wav: Reading subchunk INAM, size 12
16_192.wav: Name: Hells Bells
16_192.wav: Reading subchunk ITRK, size 2
16_192.wav: Reading subchunk ICRD, size 5
16_192.wav: Creation date: 1980
16_192.wav: Reading subchunk , size 1533309280
16_192.wav: Reading chunk id3 , size 268, pos 244224152, next 244224428
Playing WAVE file 16_192.wav, 16 bits/stereo/192000 Hz
Setup device S16_LE/2/192000



output of 'ossplay -vvvv -R 24_192.wav'
Code: Select all
[klo@klo-arch_desk ~]$ ossplay -vvvv -R 24_192.wav
FORM len = 366336428
24_192.wav: Reading chunk fmt , size 16, pos 12, next 36
FMT chunk: len = 16, fmt = 0x1
24_192.wav: Reading chunk data, size 366336000, pos 36, next 366336044
DATA chunk. Offs = 44, len = 366336000
24_192.wav: Reading chunk LIST, size 100, pos 366336044, next 366336152
24_192.wav: Reading subchunk IPRD, size 15
24_192.wav: Product: Back In Black
24_192.wav: Reading subchunk IART, size 6
24_192.wav: Artist Name: AC/DC
24_192.wav: Reading subchunk IGNR, size 5
24_192.wav: Genre: Rock
24_192.wav: Reading subchunk INAM, size 12
24_192.wav: Name: Hells Bells
24_192.wav: Reading subchunk ITRK, size 2
24_192.wav: Reading subchunk ICRD, size 5
24_192.wav: Creation date: 1980
24_192.wav: Reading subchunk , size -1049296544
24_192.wav: Reading chunk id3 , size 268, pos 366336152, next 366336428
Playing WAVE file 24_192.wav, 24 bits/stereo/192000 Hz
Setup device S32_LE/2/192000


And output of 'mediainfo *wav'
Code: Select all
[klo@klo-arch_desk ~]$ mediainfo *.wav
General
Complete name                            : 16_192.wav
Format                                   : Wave
File size                                : 233 MiB
Duration                                 : 5mn 18s
Overall bit rate mode                    : Constant
Overall bit rate                         : 6 144 Kbps
Album                                    : Back In Black
Track name                               : Hells Bells
Track name/Position                      : 1
Track name/Total                         : 10
Performer                                : AC/DC
Director                                 : AC/DC
Genre                                    : Rock
Recorded date                            : 1980
Original source form/Name                : Back In Black
ISRC                                     : USATL8000000
ITRK                                     : 1
catalog                                  : 0000000016018

Audio
ID                                       : 0
Format                                   : PCM
Format settings, Endianness              : Little
Codec ID                                 : 1
Duration                                 : 5mn 18s
Bit rate mode                            : Constant
Bit rate                                 : 6 144 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 192 KHz
Bit depth                                : 16 bits
Stream size                              : 233 MiB (100%)

General
Complete name                            : 24_192.wav
Format                                   : Wave
File size                                : 349 MiB
Duration                                 : 5mn 18s
Overall bit rate mode                    : Constant
Overall bit rate                         : 9 216 Kbps
Album                                    : Back In Black
Track name                               : Hells Bells
Track name/Position                      : 1
Track name/Total                         : 10
Performer                                : AC/DC
Director                                 : AC/DC
Genre                                    : Rock
Recorded date                            : 1980
Original source form/Name                : Back In Black
ISRC                                     : USATL8000000
ITRK                                     : 1
catalog                                  : 0000000016018

Audio
ID                                       : 0
Format                                   : PCM
Format settings, Endianness              : Little
Codec ID                                 : 1
Duration                                 : 5mn 18s
Bit rate mode                            : Constant
Bit rate                                 : 9 216 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 192 KHz
Bit depth                                : 24 bits
Stream size                              : 349 MiB (100%)


Thanks for your help.
cortebert
 
Posts: 2
Joined: Tue Dec 04, 2012 12:53 pm

Re: No sound when playing 192KHz

Postby igorzwx » Tue Dec 04, 2012 7:26 pm

It might be a bug in the OSS4 driver for Xonar DX. You may ask developers to fix the problem.

As concerns sound quality, I tend to use the Russian DeadBeef player with Petrov's plugin.
An alternative solution might be Audacious-git (AUR) with Petrov's plugin.
The Russian "exact scientific resampler" can be downloaded here: viewtopic.php?f=3&t=3543&start=45#p15974
Petrov's plugins can be obtained from Sergei Petrov by e-mail.
If you have questions about Audacious/OSS4 sound quality settings, you may contact Michal viewtopic.php?f=3&t=3834&p=15221#p15221
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests

cron