summaryrefslogtreecommitdiffstats
path: root/src/audio_core/codec.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Audio: Use std::deque instead of std::vector for the audio buffer type (StereoBuffer16).Subv2017-09-261-2/+2
| | | | | | | | | The current code inserts and deletes elements from the beginning of the audio buffer, which is very inefficient in an std::vector. Profiling was done using VisualStudio2017's Performance Analyzer in Super Mario 3D Land. Before this change: AudioInterp::Linear had 14.14% of the runtime (inclusive) and most of that time was spent in std::vector's insert implementation. After this change: AudioInterp::Linear has 0.36% of the runtime (inclusive)
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-1/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-4/+6
|
* DSP: Implement audio codecs (PCM8, PCM16, ADPCM)MerryMage2016-03-241-0/+50