Mercurial > sdl-ios-xcode
comparison src/audio/paudio/SDL_paudio.c @ 3699:4160ba33b597
Removed test for "driver is valid, but doesn't see any audio devices."
It was causing problems, and it really doesn't make sense to do it that way.
Fixes Bugzilla #834.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 26 Jan 2010 06:01:33 +0000 |
parents | f7b03b6838cb |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
3698:17376128fb56 | 3699:4160ba33b597 |
---|---|
542 impl->PlayDevice = DSP_WaitDevice; | 542 impl->PlayDevice = DSP_WaitDevice; |
543 impl->GetDeviceBuf = DSP_GetDeviceBuf; | 543 impl->GetDeviceBuf = DSP_GetDeviceBuf; |
544 impl->CloseDevice = DSP_CloseDevice; | 544 impl->CloseDevice = DSP_CloseDevice; |
545 impl->OnlyHasDefaultOutputDevice = 1; /* !!! FIXME: add device enum! */ | 545 impl->OnlyHasDefaultOutputDevice = 1; /* !!! FIXME: add device enum! */ |
546 | 546 |
547 /* !!! FIXME: device enum might make this 1. */ | 547 return 1; /* this audio target is available. */ |
548 return 2; /* 2 == definitely has an audio device. */ | |
549 } | 548 } |
550 | 549 |
551 AudioBootStrap PAUDIO_bootstrap = { | 550 AudioBootStrap PAUDIO_bootstrap = { |
552 PAUDIO_DRIVER_NAME, "AIX Paudio", PAUDIO_Init, 0 | 551 PAUDIO_DRIVER_NAME, "AIX Paudio", PAUDIO_Init, 0 |
553 }; | 552 }; |