oto
                                
                                 oto copied to clipboard
                                
                                    oto copied to clipboard
                            
                            
                            
                        request: `(*Context).Close()`
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?
I have removed Close from Context as of v2. Then the context will live until the process dies.
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 (*Context).Close though I think it is not easy to implement this correctly in all the platforms...
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.