RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Bluetooth audio through AirPods (CM4)

    Scheduled Pinned Locked Moved Help and Support
    bluetooth audio
    1 Posts 1 Posters 389 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StonedEdgeS
      StonedEdge
      last edited by StonedEdge

      Hi all,

      I've managed to get audio working through my AirPods via the inbuilt bluetooth module but I am struggling to get both my sound card and audio working out of bluetooth simultaneously. I'm currently not using pulseaudio (only ALSA, via BlueAlsa - not using pulseaudio as I find it slows down RetroPie significantly).

      My current /etc/asound.conf file looks like this:

      # use samplerate to resample as speexdsp resample is bad
      defaults.pcm.rate_converter "samplerate"
      
      pcm.!default {
          type asym
          playback.pcm "playback"
          capture.pcm "capture"
      }
      
      pcm.playback {
          type plug
          slave.pcm "dmixed"
      }
      
      pcm.capture {
          type plug
          slave.pcm "array"
      }
      
      pcm.dmixed {
          type dmix
          slave.pcm "hw:seeed2micvoicec"
          ipc_key 555555
      }
      
      pcm.array {
          type dsnoop
          slave {
              pcm "hw:seeed2micvoicec"
              channels 2
          }
          ipc_key 666666
      }
      

      My current .asoundrc file looks like this:

      pcm.!default {
        type asym
        playback.pcm {
          type plug
          slave.pcm "output"
        }
        capture.pcm {
          type plug
          slave.pcm "input"
        }
      }
      
      pcm.output {
        type hw
        card 0
      }
      
      ctl.!default {
        type hw
        card 0
      }
      
      pcm.!default {
              type plug
              slave {
                      pcm {
                              type bluealsa
                              device BC:B8:63:45:65:C0
                              profile "a2dp"
                      }
              }
              hint {
                      show on
                      description "Apple AirPods"
              }
      }
      ctl.!default {
              type bluealsa
      }
      

      Is there any way to get both audio playing out of both devices, ideally whereby one audio device switches off (i.e the internal audio card) when the bluetooth speakers are connected and vice versa? I think I need to shift the pcm.!default & ctl.!default contents somewhere else, but this doesn't seem to work for both audio cards (i.e sound only comes out of the bluetooth speaker with the above configurations) at the moment.

      The other problem I'm having at the moment is with latency via blue alsa. The audio is definitely half a millisecond or so behind the video which makes it basically unusable in it's current state...

      Cheers.

      Check out my build logs below:
      Wii SPii (Wii in a GBA SP Shell)
      https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
      Retro Lite CM4
      https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.