Skip to content

Added some 'mutex love'.#127

Open
drdaz wants to merge 1 commit intosyedhali:masterfrom
drdaz:master
Open

Added some 'mutex love'.#127
drdaz wants to merge 1 commit intosyedhali:masterfrom
drdaz:master

Conversation

@drdaz
Copy link

@drdaz drdaz commented Jan 31, 2015

As is in the current version, if you start and stop recording a few times in quick succession, you'll likely run into an EXC_BAD_ACCESS in AudioRingBuffer::getTimeBounds. These changes do some kind of locking magic with the output file and stop this from happening.

I've just ported these changes without fully understanding how things work. But they do now work as far as my limited testing shows.

Based on changes described at:

http://stackoverflow.com/questions/7961087/exc-bad-access-in-audioringbuffergettimebounds
alexbw/novocaine#35

@ogoldfinger
Copy link

+1 for this merge if it works. I'm continually seeing this crash occurring in my app using EZRecorder. I stumbled on the same SO post as well but I'm also not familiar with the framework at this level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants