Skip to contentSkip to conversation

Default Sample rate Conversion

DISCUSSION Prabhu Sivaraja 2 participants 2 messages May 23, 2007 – May 24, 2007

lore
Share & tools
lore
#0 lore raw

Does ALSA automatically convert to my devices sample rate? My alsa.conf file is below

 pcm.mix {
        type dmix
        ipc_key 1024
        slave {
         pcm "hw:0,0"
         rate 48000
        }
    }
    pcm.!default {
        type plug
        slave.pcm "mix"
    }

When I play a 32KHz file with aplay does it get up sampled to my device's 48KHz sample rate? I am assuming it does as it plays just fine but I am not sure where the upsampling happens?

Thanks.

#1 lore raw

At Tue, 22 May 2007 21:40:43 -0700,

Quoted 17 lines · Prabhu Sivaraja

Does ALSA automatically convert to my devices sample rate? My alsa.conf file is below

 pcm.mix {
        type dmix
        ipc_key 1024
        slave {
         pcm "hw:0,0"
         rate 48000
        }
    }
    pcm.!default {
        type plug
        slave.pcm "mix"
    }
Quoted 3 lines

When I play a 32KHz file with aplay does it get up sampled to my device's 48KHz sample rate? I am assuming it does as it plays just fine but I am not sure where the upsampling happens?

Yes, the plug plugin does almost everything including upsamling.

Takashi