i purchased sewell soundbox usb audio controller.
https://www.amazon.com/sewell-direct-ex ... b004y0erro
have plugged pi 3 , configured pi make default device upon boot. can have alexa voice service work fine through it. can open poemoe , play audio fine through it. if playing mp3's , go open chromium , put cpu unload, hear static. have close program down potentially access sound card , open them in order hear music again without static. able browse web , listen music @ same time. suggestions? has happened when playing mp3's , running apt-get update , upgrade commands. seems take no more 60-70% load cause static start happening.
https://www.amazon.com/sewell-direct-ex ... b004y0erro
have plugged pi 3 , configured pi make default device upon boot. can have alexa voice service work fine through it. can open poemoe , play audio fine through it. if playing mp3's , go open chromium , put cpu unload, hear static. have close program down potentially access sound card , open them in order hear music again without static. able browse web , listen music @ same time. suggestions? has happened when playing mp3's , running apt-get update , upgrade commands. seems take no more 60-70% load cause static start happening.
somehow fixed
written in /pi/home/.asoundrc file
have no idea why worked. have no idea why 7.1 rear speakers work , 5.1 center/bass channel doesn't work. know problems , setup can make work.
code: select all
# 2008-11-15 # # .asoundrc allow following: # # - upmix stereo files 5.1 speakers. # - playback real 5.1 sounds, on 5.1 speakers, # - allow playback of both stere(oupmixed) , surround(5.1) sources @ same time. # - use 6th , 7th channel (side speakers) separate soundcard, i.e. headphones # (this called "alternate" output throughout file, device names prefixed 'a') # - play mono sources in stereo (like skype & ekiga) on alterate output # # make sure have "8 channels" , not "6 channels" selected in alsamixer! # # please try following commands, make sure working should. # # test stereo upmix : speaker-test -c2 -ddefault -twav # test surround(5.1): speaker-test -c6 -dplug:dmix6 -twav # test alternative output: speaker-test -c2 -daduplex -twav # test mono upmix: speaker-test -c1 -dmonoduplex -twav # # # may not work out of box cards. if doesnt work you, read comments throughout file. # basis of file written wishie of #alsa, , modified info various sources # squisher. #define soundcard use pcm.snd_card { type hw card 2 device 0 } # 8 channel dmix - output whatever audio, 8 speakers pcm.dmix8 { type dmix ipc_key 1024 ipc_key_add_uid false ipc_perm 0660 slave { pcm "snd_card" rate 48000 channels 8 period_time 0 period_size 1024 buffer_time 0 buffer_size 5120 } # cards, "nforce" variants require following uncommented. routes audio t correct speakers. bindings { 0 0 1 1 2 4 3 5 4 2 5 3 6 6 7 7 } } # upmixing - duplicate stereo data 6 channels pcm.ch51dup { type route slave.pcm dmix8 slave.channels 8 ttable.0.0 1 ttable.1.1 1 ttable.0.2 1 ttable.1.3 1 ttable.0.4 0.5 ttable.1.4 0.5 ttable.0.5 0.5 ttable.1.5 0.5 } # creates 6 channel soundcard # , outputs 8 channel 1 # i.e. usage in mplayer had define in ~/.mplayer/config: # ao=alsa:device=dmix6 # channels=6 pcm.dmix6 { type route slave.pcm dmix8 slave.channels 8 ttable.0.0 1 ttable.1.1 1 ttable.2.2 1 ttable.3.3 1 ttable.4.4 1 ttable.5.5 1 } # share microphone, i.e. because virtualbox grabs default pcm.microphone { type dsnoop ipc_key 1027 slave { pcm "snd_card" } } # rate conversion, needed i.e. wine pcm.2chplug { type plug slave.pcm "ch51dup" } pcm.a2chplug { type plug slave.pcm "dmix8" } # routes channel alternative # 2 channel output, becomes 7th , 8th channel # on real soundcard pcm.alt2ch { type route slave.pcm "a2chplug" slave.channels 8 ttable.0.6 1 ttable.1.7 1 } # skype , ekiga mono, route left channel right channel # note: gets routed alternative 2 channels pcm.mono_playback { type route slave.pcm "a2chplug" slave.channels 8 # send skype channel 0 l , r speakers @ full volume ttable.0.6 1 ttable.0.7 1 } # 'full-duplex' device use aoss pcm.duplex { type asym playback.pcm "2chplug" capture.pcm "microphone" } pcm.aduplex { type asym playback.pcm "alt2ch" capture.pcm "microphone" } pcm.monoduplex { type asym playback.pcm "mono_playback" capture.pcm "microphone" } # aoss pcm.dsp0 "duplex" ctl.mixer0 "duplex" # softvol manages volume in alsa # i.e. wine likes pcm.mainvol { type softvol slave.pcm "duplex" control { name "2ch-upmix master" card 2 } } #pcm.!default "mainvol" # set default device according environment # variable alsa_default_pcm , default mainvol pcm.!default { @func refer name { @func concat strings [ "pcm." { @func getenv vars [ alsa_default_pcm ] default "mainvol" } ] } } # uncomment following if want able control # mixer device through environment variables #ctl.!default { # @func refer # name { @func concat # strings [ "ctl." # { @func getenv # vars [ alsa_default_ctl # alsa_default_pcm # ] # default "duplex" # } # ] # } #}
have no idea why worked. have no idea why 7.1 rear speakers work , 5.1 center/bass channel doesn't work. know problems , setup can make work.
raspberrypi
Comments
Post a Comment