Hi All, I'm trying to get the my pdpatch in my iOS app to play over bluetooth not just the internal speaker/headset. I have tried to use audiosettings library and force it to play thru the bluetooth device but to no avail. Maybe I don't have it setup correctly or importing correctly? Here is the link to a screenshot of the patch: http://digitaldada.com/pd.png Is there another way to approach this? Any lead would be appreciated. Quick plug for Peter's book btw, lifesaver :)
Cheers Markus
Hi All, I'm working with Markus ^ to try to get this to work. Now while going thru the comments on some other posts it seems that bluetooth cannot work thru libpd in an iOS App? I went ahead and imported mediasettings on loadbang and then had a bang go and set: params @input 0 1 @output 1 2. Now this worked perfectly on my computer running pd-extended. Of course this is because the mediasettings library in pd-extended and not in pd-vanilla or in libpd. Is there a way to get that library in libpd? Is there a way to compile it in there? I'm not sure I'd even know where to begin on that. Any suggestions on how to go about it in babysteps? Thanks! ~margarita
When working with libpd, you can't change the audio settings from within Pd. I personally don't know how to route audio to a Bluetooth device with iOS, but you want to look at the way PdAudioController and PdAudioUnit configure the audio session/unit. Chances are that there's a parameter in there that you can change to use the Bluetooth device.
Thanks for the quick response! I'll look into the PdAudioController and PdAudioUnit and see if that allows to set the audiosettings for the output device.
Sounds good. When you figure it out, please report back. Depending on how intrusive this change is, we may want to make it configurable in the API.
Will do! Hope we can figure it out. :)
It looks like you're new here. If you want to get involved, click one of these buttons!