Skip to content

Commit 356e447

Browse files
committed
update (upgraded wiiu sdl2 to sdl3)
1 parent c93362e commit 356e447

File tree

10 files changed

+844
-981
lines changed

10 files changed

+844
-981
lines changed

src/audio/wiiu/SDL_wiiuaudio.c

Lines changed: 107 additions & 238 deletions
Large diffs are not rendered by default.

src/audio/wiiu/SDL_wiiuaudio.h

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,34 @@
1010
including commercial applications, and to alter it and redistribute it
1111
freely, subject to the following restrictions:
1212
13-
1. The origin of this software must not be misrepresented; you must not
14-
claim that you wrote the original software. If you use this software
15-
in a product, an acknowledgment in the product documentation would be
16-
appreciated but is not required.
17-
2. Altered source versions must be plainly marked as such, and must not be
18-
misrepresented as being the original software.
13+
1. The origin of this software must not be misrepresented.
14+
2. Altered source versions must be plainly marked as such.
1915
3. This notice may not be removed or altered from any source distribution.
2016
*/
2117

2218
#ifndef SDL_wiiuaudio_h_
2319
#define SDL_wiiuaudio_h_
2420

2521
#include "../SDL_sysaudio.h"
26-
2722
#include <sndcore2/voice.h>
2823

29-
/* Hidden "this" pointer for the audio functions */
30-
#define _THIS SDL_AudioDevice *this
31-
3224
#define NUM_BUFFERS 2
33-
3425
#define SIZEOF_ARR(arr) (sizeof(arr) / sizeof(arr[0]))
3526

36-
struct SDL_PrivateAudioData {
27+
/* Hidden private data for the Wii U audio device */
28+
typedef struct SDL_PrivateAudioData {
3729
/* 6 possible voices for 6 channels */
3830
AXVoice* voice[6];
39-
/* The raw allocated mixing buffer. */
40-
Uint8 *rawbuf;
41-
/* Individual mixing buffers. */
42-
Uint8 *mixbufs[NUM_BUFFERS];
43-
/* Deinterleaving buffer. */
44-
Uint8 *deintvbuf;
31+
/* Raw allocated mixing buffer */
32+
Uint8* rawbuf;
33+
/* Individual mixing buffers */
34+
Uint8* mixbufs[NUM_BUFFERS];
35+
/* Deinterleaving buffer */
36+
Uint8* deintvbuf;
4537

4638
int renderingid;
4739
int playingid;
4840
uint32_t last_loopcount;
49-
};
41+
} SDL_PrivateAudioData;
5042

5143
#endif /* SDL_wiiuaudio_h_ */

0 commit comments

Comments
 (0)