-
Notifications
You must be signed in to change notification settings - Fork 133
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
request: (*Context).Close()
#149
Comments
I have removed Suspend and Resume work if you want to pause audio temporarily. |
hmm, but what if having different contexts created with the different args (sampleRate, channelNum, bitDepthInBytes) might be necessary during the app lifecycle? |
Yeah, or creating a process, using oto there, and closing it would be necessary. I welcome contributions to add |
Got it, thank you for the quick response! Seems like I can reuse the same context in my app... |
Another suggestion is to resample your audio source, which can be a quite heavy task. |
I'm trying to switch to a new version (v2) of the library but seems there is no way to recreate context now. But I see this option documented here https://github.com/hajimehoshi/oto/blob/main/driver.go#L26? What I missed? Context has Suspend and Resume methods, are they do the job?
The text was updated successfully, but these errors were encountered: