forked from mia/Aegisub
71894fd769
There was some magic bit operations to calculate the cache block offsets. This only works when both bytes_per_sample and channels are power of 2. Originally the format is assumed to be int16 mono, which satisfies this requirement. However in case we use original audio data, the channels can be something not a power of 2 (e.g. for 5.1 channel audio the number of channels is 6). This will break the calculation. We rewrite the calculation, without using those bit operations. |
||
---|---|---|
.. | ||
ass | ||
audio | ||
common | ||
include/libaegisub | ||
lua | ||
osx | ||
unix | ||
windows | ||
lagi_pre.h | ||
Makefile |