Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I play audio in background with AnalogSynthX? #288

Closed
alejandroluengo opened this issue Feb 3, 2016 · 3 comments
Closed

Can I play audio in background with AnalogSynthX? #288

alejandroluengo opened this issue Feb 3, 2016 · 3 comments

Comments

@alejandroluengo
Copy link

Hi there

Can I play in background? I see that keys in plist are ok but when I touch ADSR to get a very long sound and I go to background AnalogSynthX stops and when it comes back to first plane it continues playing.

Is this a bug or I am missing something?

Best Regards,

@essej
Copy link
Contributor

essej commented Feb 4, 2016

Turns out you need to put this line in the in Conductor's init() before you call AudioKit.start():

AKSettings.playbackWhileMuted = true

This causes AudioKit to use the proper audio session category to actually keep the engine alive in the background. This should be added as an option in a configuration page in the app, so that it doesn't always just stick around if people don't want it to.

It goes well with the Virtual MIDI port support that was just merged into the develop branch. To use it, you just need to call midi.createVirtualPorts() near the end of Conductor's init().. then other controller apps can connect and play it while it's in the background.

@aure
Copy link
Member

aure commented Feb 4, 2016

If anyone wants to add a configuration page for Analog Synth X, we'd happily accept a pull request for that. Matt and I already have a long list of improvements were making, so help is welcomed.

@aure
Copy link
Member

aure commented Mar 1, 2016

After discussing it with @swiftcodex I think it is a good idea to include this as a configuration option, but the default behavior is okay for now. So, I will close this as a Github issue, but add it to our internal updates list.

@aure aure closed this as completed Mar 1, 2016
@AudioKit AudioKit locked and limited conversation to collaborators Apr 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants