[chuck-users] chuck and apple airpods?

Scott Smallwood scott.smallwood at ualberta.ca
Thu Apr 13 14:34:07 EDT 2023


You rock!

PS: I’m teaching a new course here in fall with Unity/Chunity…. So much fun!




On Thu, Apr 13, 2023 at 12:30 PM Ge Wang <ge at ccrma.stanford.edu> wrote:

> Hi Scott!!
>
> Indeed, this has been an gnarly and gnawing issue -- Apple AirPods (and
> a number of other Bluetooth headphones) show up in macOS as its own
> audio input device and supports only one sample rate (24K in the case of
> AirPods). ChucK, like most full-duplex audio software, requires matching
> sample rates for audio input and output. By default, it would try to
> initialize with a sample rate of 44.1K or 48K and would fail
> initialization due to the rate mismatch with the AirPods.
>
> short-term workarounds:
> 1) in System Settings -> Sound, under "Input", select something other
> than the AirPods as the default input audio device (this is relevant to
> command line chuck)
> 2) in miniAudicle or command-line chuck, choose a different device for
> the audio input that's not the AirPods. (e.g., in miniAudicle, select a
> different Audio input in Preferences; with command-line chuck, can use
> the --probe flag to see available devices with input channels and then
> use --adc:DEVICENUMBER to select a specific input device)
>
> Long-term solution:
> The good news is that we just addressed this very issue in the code
> literally yesterday (ChucK now has additional logic when initializing
> default audio devices, and will automatically try to match with a
> different input devices when needed; this logic was added specifically
> to address the AirPods/bluetooth problem). This fix will be part of the
> next release (btw ChucK 1.5 will be a big release, with a
> truckload/chuckload of new features, bug fixes, and probably new bugs)!
> The release is imminent; likely within the week.
>
> Hope you are well and rock on,
> Ge!
>
> ~~~
> Ge Wang
> Associate Professor
> Center for Computer Research in Music and Acoustics (CCRMA)
> Department of Music (also Computer Science, by Courtesy)
> Stanford University
> https://ccrma.stanford.edu/~ge/
> ~
> Artful Design: Technology in Search of the Sublime!
> -- what we make, makes us --
> https://artful.design/
> ~~~
>
> On 4/13/23 5:52 AM, Scott Smallwood wrote:
> > Hey ChucKians!
> >
> > So, I've had my first issue with an audio device on Mac silicon and
> > ChucK:  for some reason, when I am using my Apple Airpods, ChucK will
> > not send audio to them, complaining that it can't get a sample rate:
> >
> > [chuck]: (CoreAudio) no supported sample rates found for device (0)...
> >
> >
> >
> > Anyone have ideas?
> >
> > --
> > —ss
> >
> > Scott Smallwood
> >
> > [ ... ]   Sound Artist, Composer, Educator
> > [ --- ]  Director, Sound Studies Institute
> > [ ..- ]  Professor, Department of Music
> > [ -.  ]  University of Alberta, Edmonton, AB Canada
> > [ -.. ]  FAB 3-82 / scott.smallwood at ualberta.ca
> > <mailto:scott.smallwood at ualberta.ca>
> >
> > The University of Alberta is located in ᐊᒥᐢᑿᒌᐚᐢᑲᐦᐃᑲᐣ
> > (Amiskwacîwâskahikan) on Treaty 6 territory, the territory of the
> > Papaschase, and the homeland of the Métis Nation.
> >
> > _______________________________________________
> > chuck-users mailing list
> > chuck-users at lists.cs.princeton.edu
> > https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-- 

—

—ss

Scott Smallwood

[ ... ]   Sound Artist, Composer, Educator
[ --- ]  Director, Sound Studies Institute
[ ..- ]  Professor, Department of Music
[ -.  ]  University of Alberta, Edmonton, AB Canada
[ -.. ]  FAB 3-82 / scott.smallwood at ualberta.ca

The University of Alberta is located in ᐊᒥᐢᑿᒌᐚᐢᑲᐦᐃᑲᐣ (Amiskwacîwâskahikan)
on Treaty 6 territory, the territory of the Papaschase, and the homeland of
the Métis Nation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20230413/8852eb7b/attachment.html>


More information about the chuck-users mailing list