cesium wrote:It isn't an SRC - it doesn't convert sample rate. It has some simple format conversions - it can convert some A-Law or mu-law or some ADPCMs etc. stuff to normal 16bit PCM.
Perhaps, it doesn't convert sample rate (although it should convert sample rate according to "man ossplay").
Code: Select all
$ ossplay C*.wav -vR -s48000 -fS32_LE
Playing WAVE file C-01.wav, 32 bits/stereo/44100 Hz
Time: 00:03.60 of 04:15.23 VU ------ ^CHowever, it can convert 16bit → 32bit, and other way round. This is the problem.
The question is: "How does it play fS32_LE format?" Is it converted to 16bit, or else?
For example, I have a wave 32bit and 48kHz, and I am trying to play it with "ossplay *.wav -vR".
How to find out how the file is actually played?
ALSA is said to have a secret file /proc/asound/card0/pcm0p/sub0/hw_params
where you may find all the information you need.
Is it possible to find such information in OSS4?
"ossinfo -a -v9" for ICH6:
Code: Select all
$ ossinfo -a -v9
Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
Out engine 1: 0/HD Audio play front
Available for use
Engine 2: 7/HD Audio play front (vmix)
Available for use
Engine 3: 8/HD Audio play front (vmix)
Available for use
Engine 4: 9/HD Audio play front (vmix)
Available for use
Engine 5: 10/HD Audio play front (vmix)
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: PCI201717c0-0000:00:1b.0-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 8
Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,32000,44100,48000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
Legacy device /dev/dsp1
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 1/HD Audio play rear
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: PCI201717c0-0000:00:1b.0-au02
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,32000,44100,48000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
Legacy device /dev/dsp2
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 2/HD Audio play center/LFE
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: PCI201717c0-0000:00:1b.0-au03
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,32000,44100,48000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 3)
Legacy device /dev/dsp3
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 3/HD Audio play spdif-out
Available for use
Input formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Output formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Device handle: PCI201717c0-0000:00:1b.0-au04
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 48000 (44100,48000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play modem /dev/oss/oss_hdaudio0/mdmout0 (device index 4)
Legacy device /dev/dsp4
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 4/HD Audio play modem
Available for use
Input formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Device handle: PCI201717c0-0000:00:1b.0-au05
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 1
Native sample rates (min - max): 8000 - 16000 (8000,9600,16000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec rec-srcmic-mix /dev/oss/oss_hdaudio0/pcmin0 (device index 5)
Legacy device /dev/dsp5
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
In engine 1: 5/HD Audio rec rec-srcmic-mix
Available for use
Engine 2: 7/HD Audio play front (vmix)
Available for use
Engine 3: 8/HD Audio play front (vmix)
Available for use
Engine 4: 9/HD Audio play front (vmix)
Available for use
Engine 5: 10/HD Audio play front (vmix)
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: PCI201717c0-0000:00:1b.0-au06
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,32000,44100,48000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec modem /dev/oss/oss_hdaudio0/mdmin0 (device index 6)
Legacy device /dev/dsp6
Caps: TRIGGER MMAP
Modes: INPUT
In engine 1: 6/HD Audio rec modem
Available for use
Input formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Device handle: PCI201717c0-0000:00:1b.0-au07
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 1
Native sample rates (min - max): 8000 - 16000 (8000,9600,16000)
HW Type: Not indicated.
Minimum latency: Not indicated
Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0