mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 17:35:34 +00:00
get rid of PrepareToClose
This commit is contained in:
parent
e0236c02ce
commit
0770c5829c
|
@ -277,11 +277,6 @@ SDL_AudioFlushCapture_Default(_THIS)
|
||||||
{ /* no-op. */
|
{ /* no-op. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
SDL_AudioPrepareToClose_Default(_THIS)
|
|
||||||
{ /* no-op. */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SDL_AudioCloseDevice_Default(_THIS)
|
SDL_AudioCloseDevice_Default(_THIS)
|
||||||
{ /* no-op. */
|
{ /* no-op. */
|
||||||
|
@ -357,7 +352,6 @@ finish_audio_entry_points_init(void)
|
||||||
FILL_STUB(GetDeviceBuf);
|
FILL_STUB(GetDeviceBuf);
|
||||||
FILL_STUB(CaptureFromDevice);
|
FILL_STUB(CaptureFromDevice);
|
||||||
FILL_STUB(FlushCapture);
|
FILL_STUB(FlushCapture);
|
||||||
FILL_STUB(PrepareToClose);
|
|
||||||
FILL_STUB(CloseDevice);
|
FILL_STUB(CloseDevice);
|
||||||
FILL_STUB(LockDevice);
|
FILL_STUB(LockDevice);
|
||||||
FILL_STUB(UnlockDevice);
|
FILL_STUB(UnlockDevice);
|
||||||
|
@ -773,8 +767,6 @@ SDL_RunAudio(void *devicep)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
current_audio.impl.PrepareToClose(device);
|
|
||||||
|
|
||||||
/* Wait for the audio to drain. */
|
/* Wait for the audio to drain. */
|
||||||
SDL_Delay(((device->spec.samples * 1000) / device->spec.freq) * 2);
|
SDL_Delay(((device->spec.samples * 1000) / device->spec.freq) * 2);
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ typedef struct SDL_AudioDriverImpl
|
||||||
Uint8 *(*GetDeviceBuf) (_THIS);
|
Uint8 *(*GetDeviceBuf) (_THIS);
|
||||||
int (*CaptureFromDevice) (_THIS, void *buffer, int buflen);
|
int (*CaptureFromDevice) (_THIS, void *buffer, int buflen);
|
||||||
void (*FlushCapture) (_THIS);
|
void (*FlushCapture) (_THIS);
|
||||||
void (*PrepareToClose) (_THIS); /**< Called between run and draining wait for playback devices */
|
|
||||||
void (*CloseDevice) (_THIS);
|
void (*CloseDevice) (_THIS);
|
||||||
void (*LockDevice) (_THIS);
|
void (*LockDevice) (_THIS);
|
||||||
void (*UnlockDevice) (_THIS);
|
void (*UnlockDevice) (_THIS);
|
||||||
|
|
Loading…
Reference in a new issue