title: SpeakHere sample can't play sound which loads from internet
body: <p>I'd like to play sound file which loaded from internet, so I tried to start from iPhone SDK SpeakHere sample. I recorded the sound, then saved and uploaded to the internet, I could download that file and play without problem from sound tools. But when I tried to play that URL from SpeakHere, I am getting error <code>Program received signal:  “EXC_BAD_ACCESS”</code>.</p>
  
  <p>After trace around, I found that the in <code>-[AudioPlayer calculateSizesFor:]</code>, it set <code>bufferByteSize</code> to a huge number 806128768, which caused buffer allocation failed.</p>
  
  <p>And that because in</p>
  
  <pre><code>AudioFileGetProperty(audioFileID, kAudioFilePropertyPacketSizeUpperBound, &amp;propertySize, &amp;maxPacketSize);
  </code></pre>
  
  <p>The <code>maxPacketSize</code> returned is 806128768.</p>
  
  <p>I am wondering how to make <code>AudioFileGetProperty</code> work.</p>
  
  <p>My sound file is <a href="http://chineseresume.com/localbiz/uploads/myfilename_7_Recording.caf" rel="nofollow noreferrer">here</a>, 
  you could right-click and download from <a href="http://chineseresume.com/test.html" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I am using this way to set the URL in the <code>-[AudioViewController playOrStop]</code> method:</p>
  
  <pre><code>// AudioPlayer *thePlayer = [[AudioPlayer alloc] initWithURL: self.soundFileURL];
  AudioPlayer *thePlayer = [[AudioPlayer alloc] initWithURL:
      [NSURL URLWithString: @"http://chineseresume.com/localbiz/uploads/myfilename_7_Recording.caf"]];
  </code></pre>
  
  <p>Any suggestion is highly welcome.</p>