<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -97,8 +97,16 @@
 - (void) play:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
 {
 	AudioFile* audioFile = [self audioFileForResource:[arguments objectAtIndex:0]];
+	NSNumber* loopOption = [options objectForKey:@&quot;numberOfLoops&quot;];
+	NSInteger numberOfLoops = 0;
+	if (loopOption != nil) {
+		numberOfLoops = [loopOption intValue] - 1;
+	}
+	
 	if (audioFile != nil) {
 		NSLog(@&quot;Playing audio sample '%@'&quot;, audioFile.resourcePath);
+
+		audioFile.player.numberOfLoops = numberOfLoops;
 		[audioFile.player play];
 	}
 }</diff>
      <filename>iphone/Classes/Sound.m</filename>
    </modified>
    <modified>
      <diff>@@ -14,9 +14,9 @@ function Media(src, successCallback, errorCallback) {
 }
  
 
-Media.prototype.play = function() {
+Media.prototype.play = function(options) {
 	if (this.src != null) {
-		PhoneGap.exec(&quot;Sound.play&quot;, this.src);
+		PhoneGap.exec(&quot;Sound.play&quot;, this.src, options);
 	}
 }
 </diff>
      <filename>javascripts/iphone/media.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f719f654a55c8938bae14ea59ae13331ea6f98ee</id>
    </parent>
  </parents>
  <author>
    <name>shazron</name>
    <email>shazron@nitobi.com</email>
  </author>
  <url>http://github.com/bowserj/phonegap/commit/159a62c87cddfe14e80b37738cec26694e129073</url>
  <id>159a62c87cddfe14e80b37738cec26694e129073</id>
  <committed-date>2009-11-09T19:22:07-08:00</committed-date>
  <authored-date>2009-11-09T19:22:07-08:00</authored-date>
  <message>Added loop support to sound playback</message>
  <tree>e8e9740e6c73e4905472b2a1978cce42f02c7ae4</tree>
  <committer>
    <name>shazron</name>
    <email>shazron@nitobi.com</email>
  </committer>
</commit>
