mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-07-27 17:41:49 +03:00
Fix audio buffer issues on some platforms
On certain ports of the game, and possibly some Linux distros, the game's audio would crackle, or slow down with loud buzzing. This commit attempts to fix that, by enabling `FAUDIO_1024_QUANTUM`, which should increase the internal FAudio buffer size.
This commit is contained in:
@@ -731,7 +731,7 @@ musicclass::musicclass(void)
|
|||||||
|
|
||||||
void musicclass::init(void)
|
void musicclass::init(void)
|
||||||
{
|
{
|
||||||
if (FAudioCreate(&faudioctx, 0, FAUDIO_DEFAULT_PROCESSOR))
|
if (FAudioCreate(&faudioctx, FAUDIO_1024_QUANTUM, FAUDIO_DEFAULT_PROCESSOR))
|
||||||
{
|
{
|
||||||
vlog_error("Unable to initialize FAudio");
|
vlog_error("Unable to initialize FAudio");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user