mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
qnx: Removed unnecessary check for available audio devices.
This commit is contained in:
parent
1e60ea76db
commit
7c5078d8bd
@ -722,7 +722,6 @@ static int
|
|||||||
QSA_Init(SDL_AudioDriverImpl * impl)
|
QSA_Init(SDL_AudioDriverImpl * impl)
|
||||||
{
|
{
|
||||||
snd_pcm_t *handle = NULL;
|
snd_pcm_t *handle = NULL;
|
||||||
int32_t status = 0;
|
|
||||||
|
|
||||||
/* Clear devices array */
|
/* Clear devices array */
|
||||||
SDL_zero(qsa_playback_device);
|
SDL_zero(qsa_playback_device);
|
||||||
@ -751,13 +750,6 @@ QSA_Init(SDL_AudioDriverImpl * impl)
|
|||||||
impl->OnlyHasDefaultOutputDevice = 0;
|
impl->OnlyHasDefaultOutputDevice = 0;
|
||||||
impl->OnlyHasDefaultCaptureDevice = 0;
|
impl->OnlyHasDefaultCaptureDevice = 0;
|
||||||
|
|
||||||
/* Check if io-audio manager is running or not */
|
|
||||||
status = snd_cards();
|
|
||||||
if (status == 0) {
|
|
||||||
/* if no, return immediately */
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1; /* this audio target is available. */
|
return 1; /* this audio target is available. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user