Settng (and unsetting) bluealsa as a default audio device

Alan Corey <[email protected]>
Newsgroups gmane.linux.alsa.user
Message-ID <CAOh3dDaOzRUf_3ybuyr2vSYGP2gVx31quZSOrfktSWPbJkEnsQ@mail.gmail.com>
I have a pair of bluetooth headphones so I ended up installing
bluealsa.  From Raspbian debs but it's at
https://github.com/Arkq/bluez-alsa

I made up this asoundrc file, which works

pcm.buds {  # works
  type plug
  slave {
    pcm {
      type bluealsa
      device FE:46:6D:40:FC:43 # mac from bluetoothctl
      profile "a2dp" # defined by bluealsa
    }
  }
  hint { # not essential
    show on
    description "BT earbuds"
  }
}

I can play wave files like: aplay -D buds brown.wav  The catch is I
want to use them with Audacity, and probably other things.  So it
would be simplest if I could set bluealsa as the default audio out
device and change it back when I'm done.

Except the directions at
https://www.alsa-project.org/main/index.php/Setting_the_default_device
expect you to set it to a card number.  Audacity checks asoundrc when
starting up and gives this error if I have either bluealsa or buds in
there.  Comment it out and I'm back to HDMI sound, all is fine.

bluealsa doesn't emulate a card apparently, it's not in cat
/proc/asound/cards  Reading the asoundrc literally it's a pcm type.
Audacity's list has just upmix, vdownmix, dmix for devices.  I can
edit audacity.cfg and put buds in as PlaybackDevice but it plays a
half-hour recording i 26 seconds.  I do hear it in the earbuds, the
sample rate is just running flat-out or something.   If I set
PlaybackDevice to bluealsa it plays through the HDMI sound.

_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user
errr.png (image/png, 11.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.