mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-12-21 04:29:56 +00:00
__gshared hack to allow inputevent access from sound thread, fixes #1
This commit is contained in:
parent
4e4ca09af8
commit
ef7f3adf00
@ -79,7 +79,7 @@ static this()
|
||||
}
|
||||
}
|
||||
|
||||
Input input;
|
||||
__gshared Input input;
|
||||
|
||||
private:
|
||||
|
||||
|
@ -38,7 +38,6 @@ static import host;
|
||||
static this()
|
||||
{
|
||||
soundCard = new SoundCardNo();
|
||||
/+ TODO: fix sound segfault in fillAudio
|
||||
if (host.SDL)
|
||||
{
|
||||
if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1)
|
||||
@ -50,7 +49,6 @@ static this()
|
||||
if (checkCard.isActive)
|
||||
soundCard = checkCard;
|
||||
}
|
||||
+/
|
||||
host.delay.soundCardActive = &soundCard.getIsActive;
|
||||
host.delay.soundCardHasEnoughData = &soundCard.hasEnoughData;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user