alexbw / novocaine

Painless high-performance audio on iOS and Mac OS X
http://alexbw.github.com/novocaine/
MIT License
2.23k stars 273 forks source link

ARC-compatibility and modernization of Obj-c interfaces #49

Closed ndonald2 closed 11 years ago

ndonald2 commented 11 years ago

@alexbw I want to get your eyes on this, I've been using it for my own projects but I want to make sure I didn't miss anything and that this is a direction you're comfortable with.

I tested all the demos on both iOS and OSX and they all seem to work, but you know the project much better than I do, so it's entirely possible that I missed something.

If you'd prefer to keep this in its own branch for awhile that is also fine.

The primary changes are as follows

Code Style and Fixes

Thanks!

alexbw commented 11 years ago

At first glance, this all looks very excellent. I've been traveling this last week, so I hope to be able to get to look at this in more detail early this week. Super excited about all this...

alexbw commented 11 years ago

I'm going to go ahead and merge it in. It's in production for you, and fixes a variety of problems that were outstanding. Very awesome.

I'm also in favor of requiring [audioManager play] and will update the front-page example accordingly. I'll try to get to the internal examples later.

alexbw commented 11 years ago

So, should be

Novocaine *audioManager = [Novocaine audioManager];
[audioManager play];

right? Does this fix the outstanding return-from-background bug? Don't have to know the answer, just curious if it was apparent off the top of your head.

ndonald2 commented 11 years ago

That is correct code - the idea is to be able to configure options prior to starting the AU.

I'm not sure I know of the return-from-background bug. If you point me in the right direction I can probably take a look at it sometime soon, though.

ndonald2 commented 11 years ago

I also noticed a few loose ends and just went ahead and fixed them in master

alexbw commented 11 years ago

It's in the other open pull request https://github.com/alexbw/novocaine/pull/45

jonasman commented 9 years ago

any news on this library?

It crashes my app just by including it. I disabled the mm files and still crashes. I would like to try the pull requests if they are good to go.

alexbw commented 9 years ago

Can you fork this project, and try merging PR 49 and 45, testing it, and letting me know if it works for you?