![Adafruit UDA1334A Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/adafruit/uda1334a/uda1334a_manual_2845855026.webp)
By running
sudo nano /etc/asound.conf
This creates a PCM device called speakerbonnet which is connected to the hardware I2S device. Then we make a
new 'dmix' device (
type dmix
) called
pcm.dmixer
. We give it a unique Inter Process Communication key (
ipc_key 1024
)
and permissions that are world-read-writeable
(ipc_perm 0666
) The mixer will control the hardware pcm device
speakerbonnet (pcm "speakerbonnet") and has a buffer set up so its nice and fast. The communication buffer is set up
so there's no delays (
period_time 0
,
period_size 1024
and
buffer_size 8192
work well). The default mixed rate is 44.1khz
stereo (
rate 44100 channels 2
)
Finally we set up a control interface but it ended up working best to just put in the hardware device here -
ctl.dmixer {
type hw card 0 }
pcm.speakerbonnet {
type hw card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "speakerbonnet"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
channels 2
}
}
ctl.dmixer {
type hw card 0
}
© Adafruit Industries
https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a
Page 26 of 45
Содержание UDA1334A
Страница 1: ...Adafruit I2S Stereo Decoder UDA1334A Created by lady ada Last updated on 2019 01 30 06 56 56 PM UTC...
Страница 3: ...Adafruit Industries https learn adafruit com adafruit i2s stereo decoder uda1334a Page 3 of 45...
Страница 12: ...Adafruit Industries https learn adafruit com adafruit i2s stereo decoder uda1334a Page 12 of 45...