mirror of https://github.com/encounter/SDL.git
get rid of BeginLoopIteration
This commit is contained in:
parent
0770c5829c
commit
4a17612bff
|
@ -245,11 +245,6 @@ SDL_AudioThreadDeinit_Default(_THIS)
|
||||||
{ /* no-op. */
|
{ /* no-op. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
SDL_AudioBeginLoopIteration_Default(_THIS)
|
|
||||||
{ /* no-op. */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SDL_AudioWaitDevice_Default(_THIS)
|
SDL_AudioWaitDevice_Default(_THIS)
|
||||||
{ /* no-op. */
|
{ /* no-op. */
|
||||||
|
@ -346,7 +341,6 @@ finish_audio_entry_points_init(void)
|
||||||
FILL_STUB(OpenDevice);
|
FILL_STUB(OpenDevice);
|
||||||
FILL_STUB(ThreadInit);
|
FILL_STUB(ThreadInit);
|
||||||
FILL_STUB(ThreadDeinit);
|
FILL_STUB(ThreadDeinit);
|
||||||
FILL_STUB(BeginLoopIteration);
|
|
||||||
FILL_STUB(WaitDevice);
|
FILL_STUB(WaitDevice);
|
||||||
FILL_STUB(PlayDevice);
|
FILL_STUB(PlayDevice);
|
||||||
FILL_STUB(GetDeviceBuf);
|
FILL_STUB(GetDeviceBuf);
|
||||||
|
@ -704,7 +698,6 @@ SDL_RunAudio(void *devicep)
|
||||||
|
|
||||||
/* Loop, filling the audio buffers */
|
/* Loop, filling the audio buffers */
|
||||||
while (!SDL_AtomicGet(&device->shutdown)) {
|
while (!SDL_AtomicGet(&device->shutdown)) {
|
||||||
current_audio.impl.BeginLoopIteration(device);
|
|
||||||
data_len = device->callbackspec.size;
|
data_len = device->callbackspec.size;
|
||||||
|
|
||||||
/* Fill the current buffer with sound */
|
/* Fill the current buffer with sound */
|
||||||
|
@ -810,8 +803,6 @@ SDL_CaptureAudio(void *devicep)
|
||||||
int still_need;
|
int still_need;
|
||||||
Uint8 *ptr;
|
Uint8 *ptr;
|
||||||
|
|
||||||
current_audio.impl.BeginLoopIteration(device);
|
|
||||||
|
|
||||||
if (SDL_AtomicGet(&device->paused)) {
|
if (SDL_AtomicGet(&device->paused)) {
|
||||||
SDL_Delay(delay); /* just so we don't cook the CPU. */
|
SDL_Delay(delay); /* just so we don't cook the CPU. */
|
||||||
if (device->stream) {
|
if (device->stream) {
|
||||||
|
|
|
@ -68,7 +68,6 @@ typedef struct SDL_AudioDriverImpl
|
||||||
int (*OpenDevice) (_THIS, void *handle, const char *devname, int iscapture);
|
int (*OpenDevice) (_THIS, void *handle, const char *devname, int iscapture);
|
||||||
void (*ThreadInit) (_THIS); /* Called by audio thread at start */
|
void (*ThreadInit) (_THIS); /* Called by audio thread at start */
|
||||||
void (*ThreadDeinit) (_THIS); /* Called by audio thread at end */
|
void (*ThreadDeinit) (_THIS); /* Called by audio thread at end */
|
||||||
void (*BeginLoopIteration)(_THIS); /* Called by audio thread at top of loop */
|
|
||||||
void (*WaitDevice) (_THIS);
|
void (*WaitDevice) (_THIS);
|
||||||
void (*PlayDevice) (_THIS);
|
void (*PlayDevice) (_THIS);
|
||||||
Uint8 *(*GetDeviceBuf) (_THIS);
|
Uint8 *(*GetDeviceBuf) (_THIS);
|
||||||
|
|
|
@ -691,12 +691,6 @@ WASAPI_ThreadDeinit(_THIS)
|
||||||
WASAPI_PlatformThreadDeinit(this);
|
WASAPI_PlatformThreadDeinit(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
WASAPI_BeginLoopIteration(_THIS)
|
|
||||||
{
|
|
||||||
/* no-op. */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
WASAPI_Deinitialize(void)
|
WASAPI_Deinitialize(void)
|
||||||
{
|
{
|
||||||
|
@ -727,7 +721,6 @@ WASAPI_Init(SDL_AudioDriverImpl * impl)
|
||||||
impl->DetectDevices = WASAPI_DetectDevices;
|
impl->DetectDevices = WASAPI_DetectDevices;
|
||||||
impl->ThreadInit = WASAPI_ThreadInit;
|
impl->ThreadInit = WASAPI_ThreadInit;
|
||||||
impl->ThreadDeinit = WASAPI_ThreadDeinit;
|
impl->ThreadDeinit = WASAPI_ThreadDeinit;
|
||||||
impl->BeginLoopIteration = WASAPI_BeginLoopIteration;
|
|
||||||
impl->OpenDevice = WASAPI_OpenDevice;
|
impl->OpenDevice = WASAPI_OpenDevice;
|
||||||
impl->PlayDevice = WASAPI_PlayDevice;
|
impl->PlayDevice = WASAPI_PlayDevice;
|
||||||
impl->WaitDevice = WASAPI_WaitDevice;
|
impl->WaitDevice = WASAPI_WaitDevice;
|
||||||
|
|
|
@ -74,7 +74,6 @@ int WASAPI_ActivateDevice(_THIS, const SDL_bool isrecovery);
|
||||||
void WASAPI_PlatformThreadInit(_THIS);
|
void WASAPI_PlatformThreadInit(_THIS);
|
||||||
void WASAPI_PlatformThreadDeinit(_THIS);
|
void WASAPI_PlatformThreadDeinit(_THIS);
|
||||||
void WASAPI_PlatformDeleteActivationHandler(void *handler);
|
void WASAPI_PlatformDeleteActivationHandler(void *handler);
|
||||||
void WASAPI_BeginLoopIteration(_THIS);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue