cog/Audio/Chain
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
..
AudioChunk.h Cog Audio: Implement support for channel config 2022-02-07 01:10:05 -08:00
AudioChunk.m Cog Audio: Implement support for channel config 2022-02-07 01:10:05 -08:00
BufferChain.h Add decoder open error indicator 2022-02-10 02:15:48 -08:00
BufferChain.m Dynamic info now pushes to the correct track 2022-02-12 07:29:02 -08:00
ChunkList.h Now properly supports sample format changing 2022-02-07 19:18:45 -08:00
ChunkList.m Do not reset output sample rate automatically 2022-02-07 22:02:17 -08:00
ConverterNode.h Fix DSD gaplessness handling 2022-02-15 02:03:06 -08:00
ConverterNode.m Align all use of Accelerate vDSP functions 2022-02-15 22:53:09 -08:00
Downmix.h Cog Audio: Implement support for channel config 2022-02-07 01:10:05 -08:00
Downmix.m Channel Mixer: Rewrite upmixing, changed HRIR 2022-02-11 23:51:41 -08:00
HeadphoneFilter.h Cog Audio: Implement support for channel config 2022-02-07 01:10:05 -08:00
HeadphoneFilter.m HRIR Filter: Replace deprecated Intel-only code 2022-02-08 00:13:41 -08:00
InputNode.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
InputNode.m Metadata loading: Correctly merge over empty tags 2022-02-14 20:02:18 -08:00
Node.h Now properly supports sample format changing 2022-02-07 19:18:45 -08:00
Node.m Now properly supports sample format changing 2022-02-07 19:18:45 -08:00
OutputNode.h Restart playback on device or output format change 2022-02-07 22:44:56 -08:00
OutputNode.m Restart playback on device or output format change 2022-02-07 22:44:56 -08:00