[client] audio: add missing earlyInit call for audio devs

This commit is contained in:
Geoffrey McRae 2023-01-24 13:33:48 +11:00
parent 6f8e6f9a19
commit 48cd0c3789
2 changed files with 5 additions and 0 deletions

View File

@ -1814,6 +1814,10 @@ int main(int argc, char * argv[])
for(unsigned int i = 0; i < LG_DISPLAYSERVER_COUNT; ++i) for(unsigned int i = 0; i < LG_DISPLAYSERVER_COUNT; ++i)
LG_DisplayServers[i]->setup(); LG_DisplayServers[i]->setup();
for(unsigned int i = 0; i < LG_AUDIODEV_COUNT; ++i)
if (LG_AudioDevs[i]->earlyInit)
LG_AudioDevs[i]->earlyInit();
if (!config_load(argc, argv)) if (!config_load(argc, argv))
return -1; return -1;

View File

@ -24,6 +24,7 @@
#include "dynamic/displayservers.h" #include "dynamic/displayservers.h"
#include "dynamic/renderers.h" #include "dynamic/renderers.h"
#include "dynamic/audiodev.h"
#include "common/thread.h" #include "common/thread.h"
#include "common/types.h" #include "common/types.h"