Commit Graph

7 Commits

Author SHA1 Message Date
wangqr e5f543c1ab Add support for XAudio2 redistributable
Bundle XAudio2 to better support Win7

Fix wangqr/Aegisub#59
2020-07-20 16:16:20 -04:00
wangqr 95fe52aeaa Remove mysterious brackets 2020-05-31 00:41:29 -04:00
wangqr 1fda1d2b05 Fix XAudio2 handle leak 2020-05-31 00:18:33 -04:00
wangqr 62708e8e5c Ensure stdcall on XAudio2 callback
Fix for x86 build
2020-03-29 22:18:49 -04:00
wangqr 71894fd769 Fix bugs in ram audio provider
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.
2019-11-02 02:26:36 -04:00
wangqr 2929b9db37 XAudio2: Try orignal sound format first, and fallback to 16bit mono on failure 2019-11-01 21:58:11 -04:00
wangqr 0336779735 Added experimental XAudio2 audio player
Removed downsampling in FFMS2 and CreateConvertAudioProvider, to ensure we can get the original audio channels and data.

Fix Aegisub/Aegisub#160
2019-11-01 03:32:42 -04:00