cog/Audio
Christopher Snowhill 4906c38827 Align all use of Accelerate vDSP functions
vDSP functions expect their input and output pointers to be aligned to
an even four values. Correct this by aligning all pointers. The
allocated buffers used for one parameter should already be aligned
somewhat, but align the incremented positions used on some of them so
that the vDSP functions don't misbehave. Also align the volume scaler
input by doing scalar math until the pointer is aligned prior to calling
vDSP_vsmul. Also, change 16-bit and 32-bit scale to use vsdiv instead of
vsmul with a really small number already divided into one.

Fixes the test vectors that were sent in extrapolating incorrectly due
to their final blocks having uneven sample counts, resulting in
unaligned pointers.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-15 22:53:09 -08:00
..
Chain Align all use of Accelerate vDSP functions 2022-02-15 22:53:09 -08:00
CogAudio.xcodeproj Add bad sample cleaner for debugging 2022-02-15 22:48:47 -08:00
Output Add bad sample cleaner for debugging 2022-02-15 22:48:47 -08:00
ThirdParty Linear Predictor: Rearrange things somewhat 2022-02-15 22:41:18 -08:00
Utils Add bad sample cleaner for debugging 2022-02-15 22:48:47 -08:00
Visualization Visualization: Increased fft size, imported code 2022-02-13 12:18:58 -08:00
AudioContainer.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioContainer.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioDecoder.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioDecoder.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataReader.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataReader.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataWriter.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataWriter.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioPlayer.h Dynamic info now pushes to the correct track 2022-02-12 07:29:02 -08:00
AudioPlayer.m Dynamic info now pushes to the correct track 2022-02-12 07:29:02 -08:00
AudioPropertiesReader.h CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
AudioPropertiesReader.m CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
AudioSource.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioSource.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
CogAudio_Prefix.pch Fix some more warnings. 2021-01-27 05:12:07 +03:00
CogPluginMulti.h Now properly supports sample format changing 2022-02-07 19:18:45 -08:00
CogPluginMulti.m CogDecoderMulti: Reset file even if not seekable 2022-02-09 13:44:04 -08:00
Helper.h Volume control: Make preamp optional, defaulting to a limit of 100% volume 2022-01-17 22:41:26 -08:00
Helper.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
Info.plist Updated everything else to ARC, and plugged a release cycle. 2016-05-05 13:05:39 -07:00
Plugin.h CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
PluginController.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
PluginController.m CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
Status.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00