Giter Club home page Giter Club logo

Comments (8)

jbmaxwell avatar jbmaxwell commented on August 19, 2024

Adding a little info... I did try to upgrade the SynthOne code we're using, but I was getting build errors on sp_oscmorph2d. I've just tried building from the SynthOne repo and I see the same errors if I remove the version number from the Podfile.

from audiokitsynthone.

sieren avatar sieren commented on August 19, 2024

Are you building from the develop branch? master is currently outdated.

from audiokitsynthone.

jbmaxwell avatar jbmaxwell commented on August 19, 2024

Ah, I am building from master, yes. I'll try with develop.

from audiokitsynthone.

jbmaxwell avatar jbmaxwell commented on August 19, 2024

I'm getting Swift 5 related errors now. Our project is 4.2 (on Xcode 10.3). Is that going to be a showstopper, or is there a version of AudioKit that will work?

UPDATE: Okay, looks like I get back to the same issue with sp_oscmorph2d when running on 4.8 (specifying the pod as < 4.9 just installs 4.8). Maybe this is a showstopper... Do you have any idea what might be going on with the EXC_BAD_ACCESS when stopping and restarting AudioKit? I have tested SynthOne itself (master branch, with the AK 4.7 beta version specified in that podfile) and the problem doesn't happen there.
I've double-checked the problem, and even just adding:

DispatchQueue.main.asyncAfter(deadline: .now() + 10.0) {
            print("Stop engine (as a test)")
            AudioKit.engine.stop()
            DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
                print("Restart engine... does stuff play?")
                try! AudioKit.engine.start()
            }
        }

at the end of my init (in Conductor), and it will crash on playing from SynthOne.

from audiokitsynthone.

sieren avatar sieren commented on August 19, 2024

The oscmorph bug got fixed in AudioKit 4.9, so you might wanna use that.

Please provide me with a new stacktrace based on a recent Synth One version, else I can't make any sense of the line numbers inside of it.

Unforuntately I don't have enough time right now to set up an environment that reflects yours. Is there any specific reason you cannot upgrade your project to the most recent swift version?

from audiokitsynthone.

jbmaxwell avatar jbmaxwell commented on August 19, 2024

Yes, like you, time is the main reason we're still on Swift 4.2... But I guess we may have to change that sooner rather than later. I did try with AudioKit 4.7.2.b1 (as in the master branch), using our original Synth One code, but I get the same crash. What I'll do a little later is try with 4.7.2.b1 with your master code (which I've confirmed doesn't have the basic stop/start bug), in our project, and see if that works to keep us going, for now.

from audiokitsynthone.

jbmaxwell avatar jbmaxwell commented on August 19, 2024

Failing a short-term fix for the stop/restart crash, what would be the recommended routine for tearing everything down and starting overβ€”i.e., as if from initial launch? Since it is only the offline rendering/export routine that's causing a problem, it is an option for us to just completely rebuild the audio graph, but I haven't found a reliable process for doing that (which surprises me, since it seems like it should be very simple). Are there any "gotchas" that come to mind, in terms of de/re-instantiating Synth One?

from audiokitsynthone.

jbmaxwell avatar jbmaxwell commented on August 19, 2024

Okay, a Swift 5 upgrade did cure this issue. Thanks.

from audiokitsynthone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.