Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1180

Recording audio crashes on 3GS device (but not in emulator!) under iOS 4.0 Ti 1.3.2

    Details

      Description

      {html}<div><p>I have the below code to allow the user to press a button and
      record (other buttons etc to playback of course). The code is
      pretty much taken straight from KS and works perfectly in the
      emulator and on a pre- iOS 4.0 device. In the app, I tap the record
      button, app sits for a second and then crashes back to Springboard.
      I'm not 100% the crash is happening in the record, but I get no
      response from the app between the tapping of the record button and
      the crash.<br>
      And again, it works fine in the emulator. Any ideas? Thanks in
      advance!</p>
      <pre>
      <code>// create record button
      var buttonRecord = Ti.UI.createButton
      ({
      backgroundImage:'../images/record.png',
      width:50,
      height:60,
      left:107,
      top:4
      });
      buttonRecord.addEventListener( 'click', function()
      {
      if ( recording.recording )
      { file = recording.stop(); buttonRecord.backgroundImage = '../images/record.png'; buttonPlay.enabled = true; }
      else
      { buttonRecord.backgroundImage = '../images/stop.png'; recording.start(); buttonPlay.enabled = false; }
      });
      buttonView.add( buttonRecord );</code>
      </pre>
      <p>If I comment out "recording.start();" there are (of course) no
      crashes.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              karlo karlo
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1111
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code