summaryrefslogtreecommitdiffstats
path: root/media/libmedia/IAudioRecord.cpp
Commit message (Collapse)AuthorAgeFilesLines
* namespace does not need a closing semicolonGlenn Kasten2015-03-231-1/+1
| | | | Change-Id: Ie8f9d42fc061f6d558f23b98414e04eb3d14b376
* Remove obsolete IAudioRecord::getCblk()Glenn Kasten2014-05-091-21/+1
| | | | Change-Id: Id20b5efd765b9796b0e391610e06dc928a829ebf
* Check all server-provided sp<IMemory>Glenn Kasten2013-11-201-0/+3
| | | | | | | If the sp<IMemory> from server is non-0, make sure it also has a non-NULL pointer(). If it is NULL, treat it as if the sp<> was 0. Change-Id: I6d0bd786587eb73fac38af787c11eba541880685
* Declare methods in binder opcode orderGlenn Kasten2013-07-291-11/+12
| | | | Change-Id: I5f624b7a51ffe1a17a67c056cf984f74e4c56eac
* Clean up start() parametersGlenn Kasten2012-07-271-2/+2
| | | | | | | | Document where int is used instead of AudioSystem::sync_event_t (probably because of a header file dependency). TrackBase::start() and RecordTrack::start() don't need default parameters. Change-Id: I82f4a4d078be900f3aa4bd926697e32f5ed68ec8
* Configure policy of mediaserver threadsGlenn Kasten2012-04-221-4/+2
| | | | Change-Id: Ifd825590ba36996064a458f64453a94b84722cb0
* Order of evaluation of parameters is not specifiedGlenn Kasten2012-04-161-1/+4
| | | | Change-Id: Id545e54c2ec8ed2f70ede630542ed999a9b2c5e2
* implemented synchronous audio captureEric Laurent2012-03-291-2/+4
| | | | | | | | | | | | | | Added the infrastructure to support the synchronization of playback and capture actions on specific events. The first requirement for this feature is to synchronize the audio capture start with the full rendering of a given audio content. The applications can further be extended to other use cases (synchronized playback start...) by adding new synchronization events and new synchronous control methods on player or recorders. Also added a method to query the audio session from a ToneGenerator. Change-Id: I51f1167290d9cafdf2fbcdf9e4785156973af44c
* Whitespace and indentationGlenn Kasten2012-03-131-15/+14
| | | | | | | | | | | | | | 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
* AudioRecord and AudioTrack client tidGlenn Kasten2012-02-141-2/+3
| | | | | | Inform AudioFlinger of the tid of the callback thread. Change-Id: I670df92dd06749b057238b48ed1094b13aab720b
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-061-1/+1
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Fix issue 2203561: Sholes: audio playing out of earpiece.Eric Laurent2009-11-041-2/+11
| | | | | | | | | | | Create a new IAudioTrack interface to AudioFlinger when start() fails due to a broken pipe error. Do the same if start fails due to the same error after time out in obtainBuffer(). Do not indicate that the AudioTrack is started to AudioPolicyManager if IAudioTrack start fails. This avoids that an AudioTrack keeps a dead IAudioTrack after a media server crash. Same modifications for AudioRecord. Add a flag to ToneGenerator indicating that the callback thread can call Java. Without it, when the media server crashes and restarts, the AudioSystem error callback will crash in JNI if the IAudiotrack is created from AudioTrack callback thread.
* Fix issue 2107584: media server crash when AudioFlinger fails to allocate ↵Eric Laurent2009-09-091-2/+6
| | | | | | | | memory for track control block. AudioFlinger: verify that mCblk is not null before using it in Track and RecordTrack contructors. IAudioFlinger: check result of remote transaction before reading IAudioTrack and IAudioRecord. IAudioTrack and IAudioRecord: check result of remote transaction before reading IMemory.
* some work to try to reduce the code size of some native librariesMathias Agopian2009-05-261-6/+0
| | | | | | | | | | | | | | | | | - make sure that all binder Bn classes define a ctor and dtor in their respective library. This avoids duplication of the ctor/dtor in libraries where these objects are instantiated. This is also cleaner, should we want these ctor/dtor to do something one day. - same change as above for some Bp classes and various other non-binder classes - moved the definition of CHECK_INTERFACE() in IInterface.h instead of having it everywhere. - improved the CHECK_INTERFACE() macro so it calls a single method in Parcel, instead of inlining its code everywhere - IBinder::getInterfaceDescriptor() now returns a "const String16&" instead of String16, which saves calls to String16 and ~String16 - implemented a cache for BpBinder::getInterfaceDescriptor(), since this does an IPC. HOWEVER, this method never seems to be called. The cache makes BpBinder bigger, so we need to figure out if we need this method at all.
* move libbinder's header files under includes/binderMathias Agopian2009-05-201-1/+1
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+100
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-100/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+100