forked from libsdl-org/SDL
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential issue with audio recording cleanup. Pending I/O request…
… wasn't aborted
- Loading branch information
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2023 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2024 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -38,14 +38,13 @@ struct SDL_PrivateAudioData | |
struct AHIRequest *ahiRequest[2]; | ||
uint32 ahiType; | ||
int currentBuffer; // buffer number to fill | ||
struct AHIRequest *link; // point to previous I/O request sent | ||
struct AHIRequest *link; // point to previous I/O request sent (both recording and playing) | ||
|
||
SDL_bool deviceOpen; | ||
Uint32 audioBufferSize; | ||
Uint8 *audioBuffer[2]; | ||
|
||
Uint32 lastCaptureTicks; | ||
SDL_bool requestSent; // Keeps book of IO done with SendIO(), to avoid issues with WaitIO() | ||
}; | ||
|
||
typedef struct SDL_PrivateAudioData OS4AudioData; | ||
|