summaryrefslogtreecommitdiffstats
path: root/include/media/JetPlayer.h
Commit message (Collapse)AuthorAgeFilesLines
* Use callbacks for Midi I/OMarco Nelissen2014-12-161-3/+2
| | | | | | | Instead of having the Sonivox engine directly open the file and use stdio to read from it, use caller-provided callbacks. Change-Id: I4d775c8458c48c591a15794c4517e006dcf034e1
* Use sp<AudioTrack> instead of raw AudioTrack *Glenn Kasten2013-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | This change prepares for the new implementation of AudioTrack client, which will require clients to use only sp<AudioTrack>, not raw AudioTrack *. A raw delete will cause a race condition during AudioTrack destruction. AudioTrack was made a RefBase by commit b68a91a70bc8d0d18e7404e14443d4e4020b3635 on 2011/11/15, when it was needed by OpenSL ES (for the callback protector). At that time, the only other client that was also converted from AudioTrack * to sp<AudioTrack> was android.media.AudioTrack JNI in project frameworks/base (file android_media_AudioTrack.cpp). Details: * Use .clear() instead of delete followed by = NULL. * ALOG %p need .get(). * sp<> don't need to be listed in constructor initializer, if initially 0. * Use == 0 for sp<> vs == NULL for raw pointers. * Use if (sp != 0) instead of if (raw). Change-Id: Ic7cad25795d6e862e112abdc227b6d33afdfce17
* reorganize SoundPool and JetPlayer code.Eric Laurent2012-03-261-3/+2
| | | | | | | | | | Reorganize SoundPool and JetPlayer code to be ready for the creation of libmedia_native. Split SoundPool between libsoundpool (JNI) and libmedia(sound pool implementation). Remove dependencies on nativehelper/jni.h from JetPlayer. Change-Id: I130c6014173b714329929dd82c5dfb70b757a610
* Merge "Use correct syntax for #include <> """Glenn Kasten2012-03-141-1/+1
|\
| * Use correct syntax for #include <> ""Glenn Kasten2012-03-131-1/+1
| | | | | | | | Change-Id: I943137108668ae66f8eba18dafe069a7951bcd8f
* | Whitespace and indentationGlenn Kasten2012-03-131-5/+5
|/ | | | | | | | | | | | | | Fix indentation to be multiple of 4. Make it easier to search: sp< not sp < to "switch (...)" instead of "switch(...)" (also "if" and "while") Remove redundant blank line at start or EOF. Remove whitespace at end of line. Remove extra blank lines where they don't add value. Use git diff -b or -w to verify. Change-Id: I966b7ba852faa5474be6907fb212f5e267c2874e
* Fix bug in JetPlayer::loadFromFileGlenn Kasten2012-01-101-1/+1
| | | | | | | | A long pathname would corrupt the heap due to incorrect use of strncpy. Also was using hard-coded constant 256 instead of PATH_MAX. Change-Id: Iba382bbb38624fbc41fec91449f9814f77d4ac0d
* JetPlayer uses C++ Thread not createThreadEtcGlenn Kasten2011-11-161-1/+22
| | | | | | This permits leveraging future improvements to Thread. Change-Id: I60deed8565ed54f13d9f770c76504e411b154276
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+107
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-107/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-5/+11
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+101