|
10 | 10 | including commercial applications, and to alter it and redistribute it |
11 | 11 | freely, subject to the following restrictions: |
12 | 12 |
|
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. |
19 | 15 | 3. This notice may not be removed or altered from any source distribution. |
20 | 16 | */ |
21 | 17 |
|
22 | 18 | #ifndef SDL_wiiuaudio_h_ |
23 | 19 | #define SDL_wiiuaudio_h_ |
24 | 20 |
|
25 | 21 | #include "../SDL_sysaudio.h" |
26 | | - |
27 | 22 | #include <sndcore2/voice.h> |
28 | 23 |
|
29 | | -/* Hidden "this" pointer for the audio functions */ |
30 | | -#define _THIS SDL_AudioDevice *this |
31 | | - |
32 | 24 | #define NUM_BUFFERS 2 |
33 | | - |
34 | 25 | #define SIZEOF_ARR(arr) (sizeof(arr) / sizeof(arr[0])) |
35 | 26 |
|
36 | | -struct SDL_PrivateAudioData { |
| 27 | +/* Hidden private data for the Wii U audio device */ |
| 28 | +typedef struct SDL_PrivateAudioData { |
37 | 29 | /* 6 possible voices for 6 channels */ |
38 | 30 | 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; |
45 | 37 |
|
46 | 38 | int renderingid; |
47 | 39 | int playingid; |
48 | 40 | uint32_t last_loopcount; |
49 | | -}; |
| 41 | +} SDL_PrivateAudioData; |
50 | 42 |
|
51 | 43 | #endif /* SDL_wiiuaudio_h_ */ |
0 commit comments