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.
