If I fire up KitchenSink on iPhone and goto Phone Tab, Sound, Record and hit Start Recording...I am unable to stop the app recording, I hit Stop Recording and the time continues counting. My app has a function to record audio loosely based on the Kitchen Sink code and it does the same.
Is this a bug? Is there any way to stop the thing recording as it just goes on and on and on. I don't want to remove a very popular feature of my app but I cannot see a fix if the Kitchen Sink code doesn't work either, anyone know?
7 Answers
Answered here.
All this used to work great. But now I keep getting a file size of 0 and sometimes the following error:
AudioFileCreateWithURL failed (-50)
I'm using Xcode 4.4.1 and Titanium SDK 2.1.2.GA
I don't know what is going on...
I'm having the same issue. I've isolated the problem to the line recording.start();
My setup is 2.1.3RC w/ XCode 4.5, iOS 6 simulator. This used to work fine before upgrading to the latest sdk & xcode.
I haven't tried w/ an actual iOS 6 device as I don't want to loose Google Maps on my phone :/
It seems you'll need to update your Xcode in order to fix it.
Quoting: http://stackoverflow.com/questions/7961840/what-does-this-gdb-output-mean
"This issue is finally fixed within Xcode Version 4.5 (4G182), iOS SDK 6.0. Note: The issue persists even in Xcode Version 4.5 when used in conjunction with the iOS 5.1 (or lower) simulator."
This works on the device but not on the simulator (6.1)
Hi Stephen
Without a code snippet I am going to have to guess the detail of your bug.
Having reviewed the Kitchen Sink code (v2.1.1) the audio recorder, plays, pauses and stops.
The code from their example (shortened) to achieve this would be.
To play
var sound = Titanium.Media.createSound({sound:file}); sound.play();To stop
sound.stop(); sound.release(); sound = null;They really want this to stop - with three separate commands :)
These worked fine in my tests.
If this has not given you enough information, provide a code snippet I will try and find an answer for you.
Same problem
Your Answer
Think you can help? Login to answer this question!