aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-07-21Removing unneeded ndk-version.h include.android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devPaul McLean
Breaks new CtsVerifier build Bug: 191052922 Test: build CtsVerifier Change-Id: I98755be1796a2eba7f4f6d72c41ad438b7b1c8d9
2021-03-01Upgrade oboe to bab1c7de64aa1395c83be384056e2bad061ea272Haibo Huang
Test: make Merged-In: I0e69766948e6da6cf547eaf36e880ca08a487d3d Change-Id: I0e69766948e6da6cf547eaf36e880ca08a487d3d
2020-11-24oboe: workaround disconnect bug in RQ1APhil Burk
Coerce the ErrorTimeout to ErrorDisconnected if R. This is to fix b/173928197 This can prevent apps that were looking specifically for the ErrorDisconnected from failing to restart their streams.
2020-11-24oboe: return correct InputPreset when modifiedPhil Burk
The InputPreset can be coerced from VoicePerformance to VoiceRecognition. But getInputPreset() returned the wrong value. Fixed for FilterAudioStream and OpenSL ES. Fixes #1090
2020-11-24Add *FramesPerDataCallback and deprecate *FramesPerCallback methodsDon Turner
2020-11-19oboe: prevent race condition in OpenSL close()Phil Burk
Do not unlock when stopping the stream. Call requestStop_l() or requestPause_l(). Fixes #1062
2020-11-19oboe: change close() to close_l() for OpenSLPhil Burk
Change AudioStreamOpenSLES::close() to close_l() to indicate that it must be called under mLock. The subclasses acquire the lock. No runtime change. Just a name change. Fixes #591
2020-11-19oboe: some code cleanup suggested by ChromePhil Burk
Check for errors from getFramesWritten(). Preserve const pointer in transfer(). Check for errors from updateServiceFrameCounter(). Check for overflows in capacity calculation. Fixes #590
2020-11-19oboe: fix some misc issue for ChromePhil Burk
Simplify AudioStreamAAudio constructor. Add comment about setBufferSize in LatencyTuner. Use SL constants for switch statement. See #352
2020-11-18Apply more suggestions from code review by DonPhil Burk
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
2020-11-18oboe: cleanup new callbacksPhil Burk
Remove dead code and logs.
2020-11-18oboe: add AudioStreamDataCallback and AudioStreamErrorCallbackPhil Burk
This allows an app to use different callbacks for data processing and error processing. The AudioStreamCallback inherits from both interfaces. There is also a new method: bool onError() that allows an app to completely override the default error handling. This change is backwards compatible with older versions. Fixes #917
2020-11-18oboe: fix minor typosPhil Burk
2020-11-17oboe: remove InputPreset warning in OpenSL ES.Phil Burk
The error message said it wasn't supported but it actually is. Fixes #1043
2020-11-04oboe: fix timeout in waitForStateChange() for OpenSL ESPhil Burk
It used to not timeout and would spin until the state changed. Fixes #1061
2020-11-02resample, changed README to 960 framesPhil Burk
2020-10-23oboe: change VoicePerformance to VoiceRecognition on PPhil Burk
Fixes #1009
2020-10-18add explicit cassert to resampler impl files.jimmytobin2425
2020-10-12Add virtual destructor to FlowGraphPort.jimmytobin2425
Define a virtual destructor for base class.
2020-09-23Merge pull request #1019 from ggfan/github-989Gerry
Add parameter validation to AudioStreamBase
2020-09-23address code review feedback for parameter checkinggfan
2020-09-23Fixing github issue #989: add parameter validation to AudioStreamBasegfan
2020-09-23oboe: force a stop() before close()Phil Burk
This will give the callback threads time to exit before the stream is destroyed and will help avoid some race conditions inside AAudio and AudioFlinger. Fixes #961
2020-09-20Fixed compilation error on NDK <21K
2020-09-16oboe: use proxy for callback size adapterPhil Burk
Avoid using callback size adapters in AAudio because of various bugs. If setFramesPerCallback() called then use a filter stream and do the block size adaptation in Oboe as part of the data conversion flowgraph. Fixes #778 Fixes #973 Fixes #983
2020-09-15oboe: cleanup various commentsPhil Burk
2020-08-31Added resample on sample load to avoid the resampling penalty at playPaul McLean
time.
2020-08-25oboe: fix sample rate converter for input streamsPhil Burk
The callbackCount was not handled correctly. This could cause a stream to stall and stop calling callbacks. Fixes #987
2020-08-25Use a close delay in all versions of AndroidPhil Burk
Enable using the Workarounds flag.
2020-08-25oboe: delay before closing an AAudio streamPhil Burk
This is a workaround for a possible callback after close that can occur if close is called immediately after a stop. This can occur on P, particularly when using Bluetooth devices.
2020-07-14flowgraph: comment explaining namespace changePhil Burk
2020-07-14flowgraph: fix namespace commentPhil Burk
2020-07-14oboe: use oboe::flowgraph namespacePhil Burk
to prevent AAudio from calling into the Oboe library and causing memory corruption. Pass in external namespace. Fixes #930
2020-07-14oboe: cleanup fifo includesPhil Burk
Remove AudioClock.h and other unnecessary includes. Fixes #927
2020-07-09flowgraph: improve Oboe flowgraphPhil Burk
There was a problem with disconnecting modules that could cause high pitched sounds in OboeTester. This patch simplifies the logic for handling cyclic graphs and split graphs. Fixes #902
2020-06-17oboe: warn user of permission errorsPhil Burk
AAudio returns confusing error codes when an open fails due to permission errors. Suggest a possible reason. Related to #888
2020-06-17oboe: add ChannelCountConverterPhil Burk
2020-06-17oboe: Samsung does not use MMAP for CamcorderPhil Burk
This is used by the QuirksManager.
2020-06-17oboe: remove debug hack in QuirksManagerPhil Burk
2020-06-17oboe: add Quirk for broken mono on S9Phil Burk
The Samsung S9 does not support mono properly. It is actually stereo. So on that device, we open a stereo stream and then convert it to mono by extracting the first channel. Fixes #824
2020-06-10rename to kDefaultNumBursts in LatencyTuner.hPhil Burk
2020-06-10oboe: use frames for LatencyTuner settingsPhil Burk
setMinimumBufferSize(sizeFrames)
2020-06-10oboe: setInitialNumBursts() for LatencyTunerPhil Burk
Allow initial size to be set. Fixes #871
2020-06-04link to resampler headerPhil Burk
2020-06-01Fix AudioStream.cpp indentation.upstream/1.4.2Phil Burk
2020-06-01Reduce logging for a cleaner logcatPhil Burk
Convert a few LOGDs to LOGW
2020-06-01Always log errors and LOGI messagesPhil Burk
Fixes #866
2020-05-20opensles: prevent crash in releaseBufferPhil Burk
Move call to getPosition() outside the callback. This was triggering a restoreTrack_l() inside AudioFlinger folowing a headset insertion. That in turn caused an assert in releaseBuffer() in AudioTrack or AudioRecord. Now it is called when needed by getFramesRead() or getFramesWritten(). Fixes ##535
2020-04-24oboe: shared_ptr to streamPhil Burk
Changed openSharedStream() to openStream(). Remove version with ResultWithValue<shared_ptr> Bump oboe version to 1.4.0 Bump oboetester version to 1.5.24
2020-04-22Oboe: openSharedStream uses ResultWithViewPhil Burk
Also use a friend class to hide ssetWeakThis().