Make some declarations static or static const
This commit is contained in:
parent
c3cbfecbae
commit
4d7aab1df4
@ -988,7 +988,7 @@ static void alsa_capture_samples(ALCdevice *Device, ALCvoid *Buffer, ALCuint Sam
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs alsa_funcs = {
|
||||
static const BackendFuncs alsa_funcs = {
|
||||
alsa_open_playback,
|
||||
alsa_close_playback,
|
||||
alsa_reset_playback,
|
||||
|
@ -73,7 +73,7 @@ static DevMap *DeviceList;
|
||||
static ALuint NumDevices;
|
||||
|
||||
|
||||
void *DSoundLoad(void)
|
||||
static void *DSoundLoad(void)
|
||||
{
|
||||
if(!ds_handle)
|
||||
{
|
||||
@ -538,7 +538,7 @@ static ALCuint DSoundAvailableSamples(ALCdevice *pDevice)
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs DSoundFuncs = {
|
||||
static const BackendFuncs DSoundFuncs = {
|
||||
DSoundOpenPlayback,
|
||||
DSoundClosePlayback,
|
||||
DSoundResetPlayback,
|
||||
|
@ -48,7 +48,7 @@ static void loopback_stop_playback(ALCdevice *device)
|
||||
(void)device;
|
||||
}
|
||||
|
||||
static BackendFuncs loopback_funcs = {
|
||||
static const BackendFuncs loopback_funcs = {
|
||||
loopback_open_playback,
|
||||
loopback_close_playback,
|
||||
loopback_reset_playback,
|
||||
|
@ -151,7 +151,7 @@ static ALCboolean null_open_capture(ALCdevice *device, const ALCchar *deviceName
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs null_funcs = {
|
||||
static const BackendFuncs null_funcs = {
|
||||
null_open_playback,
|
||||
null_close_playback,
|
||||
null_reset_playback,
|
||||
|
@ -476,7 +476,7 @@ static ALCuint oss_available_samples(ALCdevice *pDevice)
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs oss_funcs = {
|
||||
static const BackendFuncs oss_funcs = {
|
||||
oss_open_playback,
|
||||
oss_close_playback,
|
||||
oss_reset_playback,
|
||||
|
@ -1240,7 +1240,7 @@ static void pulse_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint sa
|
||||
} //}}}
|
||||
|
||||
|
||||
BackendFuncs pulse_funcs = { //{{{
|
||||
static const BackendFuncs pulse_funcs = { //{{{
|
||||
pulse_open_playback,
|
||||
pulse_close_playback,
|
||||
pulse_reset_playback,
|
||||
|
@ -273,7 +273,7 @@ static ALCuint solaris_available_samples(ALCdevice *pDevice)
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs solaris_funcs = {
|
||||
static const BackendFuncs solaris_funcs = {
|
||||
solaris_open_playback,
|
||||
solaris_close_playback,
|
||||
solaris_reset_playback,
|
||||
|
@ -321,7 +321,7 @@ static ALCboolean wave_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
|
||||
}
|
||||
|
||||
|
||||
BackendFuncs wave_funcs = {
|
||||
static const BackendFuncs wave_funcs = {
|
||||
wave_open_playback,
|
||||
wave_close_playback,
|
||||
wave_reset_playback,
|
||||
|
@ -729,7 +729,7 @@ static void WinMMCaptureSamples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint lS
|
||||
}
|
||||
|
||||
|
||||
static BackendFuncs WinMMFuncs = {
|
||||
static const BackendFuncs WinMMFuncs = {
|
||||
WinMMOpenPlayback,
|
||||
WinMMClosePlayback,
|
||||
WinMMResetPlayback,
|
||||
|
Loading…
Reference in New Issue
Block a user