equal
deleted
inserted
replaced
20 |
20 |
21 #include "SDL.h" |
21 #include "SDL.h" |
22 #include "hwconsts.h" |
22 #include "hwconsts.h" |
23 |
23 |
24 bool hardware; |
24 bool hardware; |
|
25 extern char *programname; |
25 |
26 |
26 SDLInteraction::SDLInteraction(bool hardware_snd) |
27 SDLInteraction::SDLInteraction(bool hardware_snd) |
27 { |
28 { |
28 music = -1; |
29 music = -1; |
29 hardware = hardware_snd; |
30 hardware = hardware_snd; |
77 //we need thjs wrapper because of some issues with windows drivers |
78 //we need thjs wrapper because of some issues with windows drivers |
78 //beware that this cause a slight delay when playing the first sound |
79 //beware that this cause a slight delay when playing the first sound |
79 void OpenAL_Init() |
80 void OpenAL_Init() |
80 { |
81 { |
81 if (!openal_ready()) |
82 if (!openal_ready()) |
82 openal_init(hardware ? 1 : 0, 5); |
83 openal_init(programname, hardware ? 1 : 0, 5); |
83 } |
84 } |
84 |
85 |