jbclements / RSound

A cross-platform sound library for DrRacket
http://www.brinckerhoff.org/clements
Other
45 stars 11 forks source link

No sound when using bluetooth on macOS #35

Open clouds56 opened 6 years ago

clouds56 commented 6 years ago

When I'm using bluetooth headphone, no sound played when (play sound) or (diagnose-sound-playing).

> (play ding)
"played sound"
> (diagnose-sound-playing)
found 1 host API(s): (paCoreAudio)
trying each one in turn.
trying api paCoreAudio:
trying to play at sample rate 44100.0:
configuration tested. Press <return> to go to next test.

trying to play at sample rate 48000.0:
configuration tested. Press <return> to go to next test.

If playback at 44100.0 failed and playback at another sample rate
succeeded using Windows 7, you probably need to manually set the 
sample rate of that playback device to 44100 Hz, by right-clicking 
on the volume icon and then digging through menus (properties, advanced).

but when I switch to wired headphone, everything works well. (and the output is the same)

Here's my package version information

$ raco show rsound
Installation-wide:
 [none]
User-specific for installation "6.10.1":
 Package  Checksum                Source
 rsound   af436efbc11497026e9...  catalog...ound/master/
$ raco pkg show portaudio
Installation-wide:
 [none]
User-specific for installation "6.10.1":
 Package[*=auto]  Checksum              Source
 portaudio*       3703edda0c6b9f5ef...  catalog...io/master/

drracket version 6.10.1 macOS version 10.12.6

jbclements commented 6 years ago

Bluetooth? Yikes, I don't think that's part of the standard audio interface at all. I really have no idea what kind of interface MacOS provides for bluetooth, but I'd be willing to bet that portaudio doesn't support it. This would be a good question for the portaudio mailing list.

I'm afraid that—unless you can convince me that portaudio has some support for Bluetooth—I'm going to have to label this "wontfix"... :(