Bug 6150 - Sound sample - can't record more than once on device
Summary: Sound sample - can't record more than once on device
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 5.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-07-16 19:56 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2012-09-04 20:20 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Rolf Bjarne Kvinge [MSFT] 2012-07-16 19:56:06 UTC
See: http://lists.ximian.com/pipermail/monotouch/2012-July/010585.html

Repro:
Run sample.
Start Recording.
Stop Recording.
Play Recorded Sound (which you'll hear).
Start Recording.
Stop Recording.
Play Recorded Sound (you'll hear nothing).
Comment 6 Nischal 2012-08-16 06:33:08 UTC
Same issue is appearing with following environments:

MonoDevelop-3.0.4.4 - 22c5f7d7e622569de506bbdb89a1858418fdafc4
MonoTouch 5.3.6 898fb1bb97b630b6853ab5870d8bcddb422ed0c8
Mountain Lion 10.8.1 with Xcode4.3.3

iPhone4S version 5.0
Comment 8 Sebastien Pouliot 2012-09-04 17:27:03 UTC
You can record multiple times but, once AVPlayer has been used, Record starts returning false (and FinishedRecording will never be hit).
Comment 9 Sebastien Pouliot 2012-09-04 19:39:01 UTC
The situation seems identical to http://stackoverflow.com/a/10433665/220643

I got a workaround for the sample - just needs a bit of cleaning.
Comment 10 Sebastien Pouliot 2012-09-04 19:57:13 UTC
Fixed in 13fef1d7d0b98fd8942ecb1216ebc00947110b28
monotouch-samples / monotouch-5.4 branch
Comment 12 Sebastien Pouliot 2012-09-04 20:18:45 UTC
The fix is only in the sample (not in MonoTouch) code. The patch content (diff) is visible from:
https://github.com/xamarin/monotouch-samples/commit/13fef1d7d0b98fd8942ecb1216ebc00947110b28