Skip to content

Sketches crash while connected to Bluetooth #121

@stlou

Description

@stlou

I had some sketches up and running that used the sound library to listen for OSC messages, and play an audiofile based on the message it received. Everything was working great, and then hooked it up to try to pipe the audio through a bluetooth speaker. Next time I ran the sketch, the sketch quit unexpectedly, and I got an error in the console:

libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: RtApiCore::probeDeviceOpen: the device (0) does not support the requested channel count.
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.

After digging around, I came across the issue raised in #74, and realized this was happening because I was connected to a Bluetooth device while starting the sketch. After disconnecting, I was able to get everything running again.

Is it possible to play audio from a sketch over Bluetooth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions