Commit Graph

4 Commits

Author SHA1 Message Date
Patrick Gaskin fc007e73f4
PulseAudio SLES module improvements (#6290)
* pulseaudio: Improve error msg when module-sles-source is missing the RECORD_AUDIO permission

* pulseaudio: Refactor and improve module-sles-{source,sink}

* More readable and consistent code style.
* Fix subtle bugs and typos (e.g. duplicate or ineffectual assignments,
  mishandled enums, etc).
* Fix stereo input channel mask.
* Fix wrong self object being passed to SLES functions.
* Handle more sample formats.
* Better logging.
* Fix potential freeing of undefined pointers.
* Fixed module usage (channel_map was on source instead of sink,
  some items were missing the trailing space).
* Other minor fixes.

* pulseaudio: Implement PA_SINK_MESSAGE_GET_LATENCY message

Every built-in module implements this and without it, PA will crash
in some cases (e.g. when opening pavucontrol).

* pulseaudio: Increment TERMUX_PKG_REVISION
2021-01-24 22:21:02 +05:30
dickreckard 43dcd2cb3b modifying recording preset value to allow headset in
The current SL_ANDROID_RECORDING_PRESET_CAMCORDER value forced to use the internal mic.
By using SL_ANDROID_RECORDING_PRESET_VOICE_RECOGNITION, instead, the pulseaudio module will follow the general behavior of the operating system ( if external headset is plugged in, audio source will be the headset, otherwise it will be the internal mic. ) 
(The value names are not really indicative, this behavior has been found out by trial  and error following OpenSLES_AndroidConfiguration.h)
2020-04-26 12:50:08 +03:00
Tom Yan a755ff37ec fix sles source 2019-10-08 14:32:50 +08:00
Tom Yan 2f8ad960c0 pulseaudio: unsplit package
With commit 63dc34f being accepted, there isn't exactly a reason that pulseaudio should be splited into two packages anymore.
2019-10-07 21:27:31 +08:00