1. 31 Jul, 2010 1 commit
  2. 30 Jul, 2010 1 commit
  3. 29 Jul, 2010 1 commit
  4. 28 Jul, 2010 8 commits
  5. 27 Jul, 2010 5 commits
  6. 26 Jul, 2010 2 commits
  7. 23 Jul, 2010 5 commits
  8. 22 Jul, 2010 2 commits
    • Glenn Kasten's avatar
      Update the rear pointer when enqueuing a closure. · d4b099b8
      Glenn Kasten authored
      Change-Id: Ibc800b5384adbaa45b9d7418bc8e7be6df8f5bb6
      d4b099b8
    • Glenn Kasten's avatar
      Buffer queue and audio player maintenance. · 4b65ef9e
      Glenn Kasten authored
      Known problems on Android only (SDL is ok):
        High latency on first enqueue, or first after buffer underrun
        Play after stop does not resume the current buffer.
      
      Improvements:
      Implement BufferQueue::Clear for both Android and SDL.
      Play::SetPlayState to Stopped now works for SDL (not yet for Android), and
        sets play cursor to start of current buffer.
      Play::Pause and Play::Stop while playing now block until done for SDL.
      SDL now calls buffer queue callback after each buffer completion, instead of when mixer needs a buffer.
      Move SF_INFO sfinfo to CAudioPlayer so we always have good stuff like the sample rate etc.
      BufferQueue::Enqueue on a successful enqueue to a formerly empty queue
        now kicks off an attribute change followed by a synchronous call to a
        hook when first buffer enqueued.  Currently unused but could be a way to reduce latency.
      Minor comment changes.
      Add interface_cond_broadcast.
      More logging of errors.
      Include source file and line number in logs.
      sles_to_android.cpp: needs code for #if 0 sections.
      Disable trace logging of BufferQueue::Enqueue and GetState.
      Fix printf warnings.
      Fix typo in number of interfaces requested at CreateAudioPlayer.
      Remove spurious printf and while loop.
      Line length 100.
      Add intermediate play states which need to be re-mapped.
      Fix printf format warnings.
      Re-organize the buffer queue initialization.
      Implement true seeking based on position for libsndfile.
      SndFile is working again, but just barely.
      Make it build on non-Android platforms.
      BufferQueue::RegisterCallback now checks for STOPPED play state.
      Include function name in trace logs.
      Enhance test to check buffer queue callbacks, get buffer queue state, get play state.
      Fix bug with Stop while Paused not resetting buffer pointer.
      Remove obsolete comments and #if 0.
      Set enqueue attribute is state is PLAYING and the first buffer is enqueued.
      Added slutPrintIIDs.
      Update comments.
      Fix build warnings.
      Fix compile error introduced by the merge.
      Fix runtime problems introduced during the merge.
      Address code review comments:
       - BufferQueue changes apply to AudioRecord also.
       - Rename to conform to new naming conventions.
       - Add comments.
      Fix build warning.
      Add interactive buffer queue test application.
      
      Change-Id: I5b00545a599fd9dba96efb834fca2369d149eaaa
      4b65ef9e
  9. 21 Jul, 2010 2 commits
  10. 15 Jul, 2010 1 commit
  11. 14 Jul, 2010 1 commit
    • Glenn Kasten's avatar
      Logging and comments to make testing easier. · 0b595cc1
      Glenn Kasten authored
      Add utility function to print an IID.
      checkDataFormat now prints a detailed log on invalid format.
      Use SL_LOGE and SL_LOGV for logging instead of fprintf, we can easily redirect to standard Android logging eventually.
      Add Doxygen-style comments.
      Log more specific error message on invalid data format.
      Use the full copyright header in one file.
      
      Change-Id: I2342e29f57e97c3b5d94cb219d00e767a75e93fa
      0b595cc1
  12. 13 Jul, 2010 1 commit
    • Glenn Kasten's avatar
      Bug fix and general code cleanup. · 7a79f519
      Glenn Kasten authored
      Trace debug now uses Android logging by LOGV/LOGE.
      Added SL Utility Toolkit for OpenSL ES, similar to OpenAL UT.
      Add a -DUSE_TRACE instead of -DNDEBUG and add it commented out to Android.mk.
      LOGE for error returns, LOGV for all entry and exit.
      Rename debug.c to trace.c.
      slutPrintIID prints the symbolic name if known.
      Fix bug in slQueryNumSupportedEngineInterfaces and
        slQuerySupportedEngineInterfaces which were not
        skipping over unavailable interfaces.
      Use USE_CONFORMANCE to return SL_RESULT_FEATURE_UNSUPPORTED when not supported
        and make some interfaces unavailable depending on USE_CONFORMANCE.
      Move most FIXME to separate bug/to-do list.
      Fix possible intermediate overflow in duration computation for sndfile.
      Line length 100.
      Address code review comments, disable LOG.
      7a79f519
  13. 09 Jul, 2010 7 commits
  14. 08 Jul, 2010 2 commits
  15. 07 Jul, 2010 1 commit