summaryrefslogtreecommitdiffstats
path: root/include/media/ToneGenerator.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 2203561: Sholes: audio playing out of earpiece.Eric Laurent2009-11-041-1/+2
| | | | | | | | | | | 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 2139634: DTMF tones on Sholes popping, hissing (audio latency too ↵Eric Laurent2009-10-061-0/+1
| | | | | | | | | | high). This change is a complement to the main fix in kernel driver for the same issue (partner change #1250). It removes clicks sometimes heard after the end of the tones while audio flinger is sending 0s to the audio output stream. The problem was that the sleep time between two writes was more than the duration of one audio output stream buffer which could cause some underrun. Also fixed a recent regression in ToneGenerator that made that the end of previous tone was repeated at the beginning of current one under certain timing circumstances when the maximum tone duration was specified.
* Fix issue 2142613: ToneGenerator: short tones sometimes don't play on sholes ↵Eric Laurent2009-09-241-1/+2
| | | | | | | | | | or over A2DP. When the AudioTrack callback notification size is relatively high (Which is the case on Sholes and over A2DP), it is likely that the end of tone is reached during the first callback. In this case, the AudioTrack is stopped before exiting the callback which causes 2 problems: - 1: If the AudioFlinger thread is scheduled before we exit the ToneGenerator callback, the track can be stopped and reset before the data is actually marked as present in the buffer by the AudioTrack callback => no audio will be processed by AudioFlinger. - 2: In this case, the data write index in the AudioTrack buffer is incremented after the track was reset by the AudioFlinger which leaves unplayed data in the buffer. This data will be played the next time the AudioTrack is started if not flushed in between. The fix consists in adding an intermediate state to ToneGenerator state machine so that we exit the callback function when the stop condition is reached and stop the AudioTrack the next time we execute the callback.
* Fix issue 1992233: DTMF tones on Sholes is really long.Eric Laurent2009-09-081-1/+2
| | | | | Add a parameter to ToneGenerator.startTone() allowing the caller to specify the tone duration. This is used by the phone application to have a precise control on the DTMF tone duration which was not possible with the use of delayed messaged. Also modified AudioFlinger output threads so that 0s are written to the audio output stream when no more tracks are ready to mix instead of just sleeping. This avoids an issue where the end of a previous DTMF tone could stay in audio hardware buffers and be played just before the beginning of the next DTMF tone.
* Fill in CDMA gaps and clean up ToneGenerator codeDavid Krause2009-06-231-1/+83
|
* Fixed issue 1709450: Requirements for CDMA Tone GeneratorEric Laurent2009-05-061-19/+70
| | | | | | | | | | Added new tone types for CDMA IS-95 specific tones. Automatic selection between IS-95, CEPT and JAPAN version base on operator country code for call supervisory tones. Also improved tone generator capabilities: - Each tone segment can now generate its own set of frequencies - A tone does not have to be a succession of alternating ON/OFF segments - The sequence repetition does not have to start from first segment
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+176
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-176/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-3/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-1/+1
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-3/+6
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+175