summaryrefslogtreecommitdiffstats
path: root/include/media/AudioSystem.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V syncEric Laurent2010-01-261-0/+11
| | | | | | | | | | | | Added getRenderPosition() API to IAudioFlinger to retreive number of audio frames written by AudioFlinger to audio HAL and by DSP to DAC. Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames written by DSP to DAC. Exposed AudioTrack::getPosition() to AudioSink() to make it available to media player. Removed excessive log in AudioHardwareGeneric.
* Fix issue 2378022: AudioService should direct volume control to ↵Eric Laurent2010-01-251-2/+2
| | | | | | | | | STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active. Modified AudioService.getActiveStreamType() so that STREAM_VOICE_CALL is selected when a track using this stream type is playing. Chanded isMusicActive() for a more generic isStreamActive(stream) method in AudioSystem, IAudioFlinger and AudioFlinger.
* Create base class for audio policy manager.Eric Laurent2010-01-131-0/+2
| | | | | | | | | | First implementations of audio policy manager in Eclair branch have shown that most code is common to all platforms. Creating AudioPolicyManagerBase base class will improve code maintainability and readability. Audio policy manager code for platforms using generic audio previously in AudioPolicyManagerGeneric is replaced by AudioPolicyManagerBase. Audio policy manager test code previously in AudioPolicyManagerGeneric is moved to AudioPolicyManagerBase. Also added a wake lock for delayed commands in AudioPolicyService.
* Fix issues 2333450 and 2333559:Eric Laurent2009-12-221-1/+2
| | | | | | Add new config values to AudioSystem::FOR_DOCK force usage to differenciate car and desk docks. Use a receiver for the sticky Intent.ACTION_DOCK_EVENT in AudioService to detect the type of dock and select force usage accordingly.
* Partially fix bug 2111240 Detect docking / undocking event by reportingJean-Michel Trivi2009-12-071-0/+2
| | | | | | | to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY values. This CL is complemented by an update of the APM to take into account the FOR_DOCK usage.
* Fix issue 2242614: Wired headset not recognized: bogus "state" in ↵Eric Laurent2009-11-121-5/+1
| | | | | | | | | | | | ACTION_HEADSET_PLUG broadcast. The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected. Modified HeadsetObserver to broacast a state conforming to java doc. Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not. Removed handling of non standard headset indications from HeadsetObserver. Removed platform specific devices from output devices defined in AudioSystem. Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
* Fix 2194140: [Passion] Support Audience chip.Eric Laurent2009-11-021-1/+2
| | | | | Added new input device DEVICE_IN_BACK_MIC. Added new audio source AUDIO_SOURCE_CAMCORDER.
* Fix issue 2192181: AudioFlinger must provide separated methods to set ↵Eric Laurent2009-10-211-0/+1
| | | | | | | VOICE_CALL stream volume and down link audio volume. Added setVoiceVolume() method to AudioSystem, AudioFlinger, IAudioFlinger, AudioPolicyService. Removed call to AudioHardwareInterface::setVoiceVolume() from AudioFlinger::setStreamVolume().
* Fix issue 2045911: Camera Shutter tone does not play correctly while ↵Eric Laurent2009-08-271-0/+1
| | | | | | listening to music. Add the possibility to delay routing and volume commands in AudioPolicyClientInterface. The delay is not blocking for the caller.
* Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not ↵Eric Laurent2009-08-071-4/+4
| | | | | | | use pointers as handles to inputs and outputs. Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces. AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
* Fix issue 2001517: AudioTrack compatibility issue.Eric Laurent2009-07-271-23/+23
| | | | | Modified enum values in AudioFormat.java and AudioSystem.h. Added code for backward compatibility in AudioTrack.java and AudioRecord.java.
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-56/+342
| | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* AI 143327: am: CL 143177 am: CL 142889 Fix issue #1736153 Camera shutter ↵Eric Laurent2009-03-271-0/+1
| | | | | | | | | | | | | sound can be muted by new AlarmClock setting. Current implementation of Camera service plays the camera shutter sound over the ALARM stream so that it cannot be muted by silent mode in order to comply to some country specific requirement. A recent change made it possible for the user to mute the ALARM stream thus making this stream not suitable any more for the camera shutter sound. The fix consists in creating a new stream type only accessible by native code and that cannot be muted and use it to play camera sounds. Original author: elaurent Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143327
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+177
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-177/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-1/+10
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-8/+31
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-4/+19
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+10
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+122