Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
6412a314
Commit
6412a314
authored
Aug 22, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed SDL_xaudio2.h ... no real need for this to be separate.
parent
02350337
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
66 deletions
+26
-66
SDL_VS2005.vcproj
VisualC/SDL/SDL_VS2005.vcproj
+0
-4
SDL_VS2008.vcproj
VisualC/SDL/SDL_VS2008.vcproj
+0
-4
SDL_VS2010.vcxproj
VisualC/SDL/SDL_VS2010.vcxproj
+0
-1
SDL_xaudio2.c
src/audio/xaudio2/SDL_xaudio2.c
+26
-2
SDL_xaudio2.h
src/audio/xaudio2/SDL_xaudio2.h
+0
-55
No files found.
VisualC/SDL/SDL_VS2005.vcproj
View file @
6412a314
...
@@ -851,10 +851,6 @@
...
@@ -851,10 +851,6 @@
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.c"
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.c"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.h"
>
</File>
<File
<File
RelativePath=
"..\..\src\joystick\windows\SDL_dxjoystick.c"
RelativePath=
"..\..\src\joystick\windows\SDL_dxjoystick.c"
>
>
...
...
VisualC/SDL/SDL_VS2008.vcproj
View file @
6412a314
...
@@ -840,10 +840,6 @@
...
@@ -840,10 +840,6 @@
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.c"
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.c"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\audio\xaudio2\SDL_xaudio2.h"
>
</File>
<File
<File
RelativePath=
"..\..\src\joystick\windows\SDL_dxjoystick.c"
RelativePath=
"..\..\src\joystick\windows\SDL_dxjoystick.c"
>
>
...
...
VisualC/SDL/SDL_VS2010.vcxproj
View file @
6412a314
...
@@ -280,7 +280,6 @@
...
@@ -280,7 +280,6 @@
<ClInclude
Include=
"..\..\src\audio\disk\SDL_diskaudio.h"
/>
<ClInclude
Include=
"..\..\src\audio\disk\SDL_diskaudio.h"
/>
<ClInclude
Include=
"..\..\src\audio\dummy\SDL_dummyaudio.h"
/>
<ClInclude
Include=
"..\..\src\audio\dummy\SDL_dummyaudio.h"
/>
<ClInclude
Include=
"..\..\src\audio\directsound\SDL_directsound.h"
/>
<ClInclude
Include=
"..\..\src\audio\directsound\SDL_directsound.h"
/>
<ClInclude
Include=
"..\..\src\audio\xaudio2\SDL_xaudio2.h"
/>
<ClInclude
Include=
"..\..\src\SDL_error_c.h"
/>
<ClInclude
Include=
"..\..\src\SDL_error_c.h"
/>
<ClInclude
Include=
"..\..\src\SDL_hints_c.h"
/>
<ClInclude
Include=
"..\..\src\SDL_hints_c.h"
/>
<ClInclude
Include=
"..\..\src\events\SDL_events_c.h"
/>
<ClInclude
Include=
"..\..\src\events\SDL_events_c.h"
/>
...
...
src/audio/xaudio2/SDL_xaudio2.c
View file @
6412a314
...
@@ -24,11 +24,35 @@
...
@@ -24,11 +24,35 @@
#include "../SDL_audio_c.h"
#include "../SDL_audio_c.h"
#include "SDL_assert.h"
#include "SDL_assert.h"
#define INITGUID 1
#include "../SDL_sysaudio.h"
#include "SDL_xaudio2.h"
#if SDL_AUDIO_DRIVER_XAUDIO2
#include <dxsdkver.h>
/* XAudio2 exists as of the March 2008 DirectX SDK */
#if (defined(_DXSDK_BUILD_MAJOR) && (_DXSDK_BUILD_MAJOR >= 1284))
# define SDL_HAVE_XAUDIO2_H 1
#endif
#endif
#ifdef SDL_HAVE_XAUDIO2_H
#ifdef SDL_HAVE_XAUDIO2_H
#define INITGUID 1
#include <XAudio2.h>
/* Hidden "this" pointer for the audio functions */
#define _THIS SDL_AudioDevice *this
struct
SDL_PrivateAudioData
{
IXAudio2
*
ixa2
;
IXAudio2SourceVoice
*
source
;
IXAudio2MasteringVoice
*
mastering
;
HANDLE
semaphore
;
Uint8
*
mixbuf
;
int
mixlen
;
Uint8
*
nextbuf
;
};
static
__inline__
char
*
static
__inline__
char
*
utf16_to_utf8
(
const
WCHAR
*
S
)
utf16_to_utf8
(
const
WCHAR
*
S
)
{
{
...
...
src/audio/xaudio2/SDL_xaudio2.h
deleted
100644 → 0
View file @
02350337
/*
Simple DirectMedia Layer
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#ifndef _SDL_xaudio2_h
#define _SDL_xaudio2_h
#include "../SDL_sysaudio.h"
#if SDL_AUDIO_DRIVER_XAUDIO2
#include <dxsdkver.h>
/* XAudio2 exists as of the March 2008 DirectX SDK */
#if (defined(_DXSDK_BUILD_MAJOR) && (_DXSDK_BUILD_MAJOR >= 1284))
# define SDL_HAVE_XAUDIO2_H 1
#endif
#endif
#ifdef SDL_HAVE_XAUDIO2_H
#include <XAudio2.h>
/* Hidden "this" pointer for the audio functions */
#define _THIS SDL_AudioDevice *this
struct
SDL_PrivateAudioData
{
IXAudio2
*
ixa2
;
IXAudio2SourceVoice
*
source
;
IXAudio2MasteringVoice
*
mastering
;
HANDLE
semaphore
;
Uint8
*
mixbuf
;
int
mixlen
;
Uint8
*
nextbuf
;
};
#endif
#endif
/* _SDL_xaudio2_h */
/* vi: set ts=4 sw=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment