summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenSLESStream.cpp
AgeCommit message (Collapse)Author
2025-05-25Android: Ask system for optimal audio buffer size and sample rateJosJuice
This can reduce audio latency according to https://developer.android.com/ndk/guides/audio/opensl/opensl-prog-notes#perform. Previously we were using the hardcoded values of 48000 Hz and 256 frames per buffer. The sample rate we use with this change is 48000 Hz on all devices I'm aware of, but the buffer size does vary across devices. Terminology note: The old code used the term "sample" to refer to what Android refers to as a "frame". "Frame" is a clearer term to use for this, so I've changed OpenSLESStream's terminology. One frame consists of one sample per channel.
2025-05-25Android: Get rid of OpenSLESStream's global stateJosJuice
Not sure if we're ever going to want to have more than one of these at the same time, but these global variables are a code smell nonetheless. I'm also deleting the existing member variables because they were unused.
2024-06-04Android: Implement OpenSLESStream::SetRunningJosJuice
2022-08-08Restrict OpenSLES to Android via CMakeZopolis4
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-04-02Replace uses of cassert with Common/Assert.hPokechu22
2019-11-26Android: Add audio volume settingJosJuice
2018-03-14Assert: Uppercase assertion macrosLioncash
Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores).
2017-11-19SoundStream: change Start/Stop to Init/SetRunning/destructMichael M
2017-06-26Rename CMixer to MixerMichael Maltese
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-03[OpenSLES] Fix a delay in audio processing.Ryan Houdek
A failure on my part. I was updating the two buffers in the wrong order, so we were always a buffer behind in sending audio out to OpenSLES.
2015-09-26Common: Remove other Common prefixed headers from Common.hLioncash
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-24SoundStream: Internally construct the mixerLioncash
Instead of creating the mixer externally and then passing it in, it can just be made within the class.
2014-10-23Fixes OpenSLES's sample rate.Ryan Houdek
I was statically setting the sample rate to 44.1Khz when we default to run at 48Khz. This was causing audio to sound much too low.
2014-10-18Fix a race condition in our OpenSL ES audio backend.Ryan Houdek
After calling enqueue the callback would fire before we had assigned g_mixer a value. This would cause a fun crash to happen.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-08-30AudioCommon: Clean up brace placementsLioncash
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre