mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
Fixed warning: no previous prototype for function
This commit is contained in:
@@ -371,7 +371,7 @@ bool SDL_IsAudioDevicePhysical(SDL_AudioDeviceID devid)
|
|||||||
return (devid & (1 << 1)) != 0;
|
return (devid & (1 << 1)) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SDL_IsAudioDeviceLogical(SDL_AudioDeviceID devid)
|
static bool SDL_IsAudioDeviceLogical(SDL_AudioDeviceID devid)
|
||||||
{
|
{
|
||||||
// bit #1 of devid is set for physical devices and unset for logical.
|
// bit #1 of devid is set for physical devices and unset for logical.
|
||||||
return (devid & (1 << 1)) == 0;
|
return (devid & (1 << 1)) == 0;
|
||||||
@@ -383,7 +383,7 @@ bool SDL_IsAudioDevicePlayback(SDL_AudioDeviceID devid)
|
|||||||
return (devid & (1 << 0)) != 0;
|
return (devid & (1 << 0)) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SDL_IsAudioDeviceRecording(SDL_AudioDeviceID devid)
|
static bool SDL_IsAudioDeviceRecording(SDL_AudioDeviceID devid)
|
||||||
{
|
{
|
||||||
// bit #0 of devid is set for playback devices and unset for recording.
|
// bit #0 of devid is set for playback devices and unset for recording.
|
||||||
return (devid & (1 << 0)) == 0;
|
return (devid & (1 << 0)) == 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user