Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
f630a015
Commit
f630a015
authored
Oct 18, 2016
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C++ build for MSVC and DirectSound.
parent
3c4e46bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mini_al.h
mini_al.h
+3
-3
No files found.
mini_al.h
View file @
f630a015
...
@@ -494,7 +494,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
...
@@ -494,7 +494,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
#ifdef MAL_WIN32
#ifdef MAL_WIN32
#define MAL_THREADCALL WINAPI
#define MAL_THREADCALL WINAPI
typedef
mal_uint32
mal_thread_result
;
typedef
unsigned
long
mal_thread_result
;
#else
#else
#define MAL_THREADCALL
#define MAL_THREADCALL
typedef
void
*
mal_thread_result
;
typedef
void
*
mal_thread_result
;
...
@@ -1182,7 +1182,7 @@ mal_result mal_device_init__dsound(mal_device* pDevice, mal_device_type type, ma
...
@@ -1182,7 +1182,7 @@ mal_result mal_device_init__dsound(mal_device* pDevice, mal_device_type type, ma
// Unfortunately DirectSound uses different APIs and data structures for playback and catpure devices :(
// Unfortunately DirectSound uses different APIs and data structures for playback and catpure devices :(
if
(
type
==
mal_device_type_playback
)
{
if
(
type
==
mal_device_type_playback
)
{
mal_DirectSoundCreate8Proc
pDirectSoundCreate8
=
(
mal_DirectSoundCreate8Proc
)
GetProcAddress
(
pDevice
->
dsound
.
hDSoundDLL
,
"DirectSoundCreate8"
);
mal_DirectSoundCreate8Proc
pDirectSoundCreate8
=
(
mal_DirectSoundCreate8Proc
)
GetProcAddress
(
(
HMODULE
)
pDevice
->
dsound
.
hDSoundDLL
,
"DirectSoundCreate8"
);
if
(
pDirectSoundCreate8
==
NULL
)
{
if
(
pDirectSoundCreate8
==
NULL
)
{
mal_device_uninit__dsound
(
pDevice
);
mal_device_uninit__dsound
(
pDevice
);
return
mal_post_error
(
pDevice
,
"[DirectSound] Could not find DirectSoundCreate8()."
,
MAL_API_NOT_FOUND
);
return
mal_post_error
(
pDevice
,
"[DirectSound] Could not find DirectSoundCreate8()."
,
MAL_API_NOT_FOUND
);
...
@@ -1269,7 +1269,7 @@ mal_result mal_device_init__dsound(mal_device* pDevice, mal_device_type type, ma
...
@@ -1269,7 +1269,7 @@ mal_result mal_device_init__dsound(mal_device* pDevice, mal_device_type type, ma
return
mal_post_error
(
pDevice
,
"[DirectSound] IDirectSoundBuffer8_QueryInterface() failed for playback device's IDirectSoundNotify object."
,
MAL_DSOUND_FAILED_TO_QUERY_INTERFACE
);
return
mal_post_error
(
pDevice
,
"[DirectSound] IDirectSoundBuffer8_QueryInterface() failed for playback device's IDirectSoundNotify object."
,
MAL_DSOUND_FAILED_TO_QUERY_INTERFACE
);
}
}
}
else
{
}
else
{
mal_DirectSoundCaptureCreate8Proc
pDirectSoundCaptureCreate8
=
(
mal_DirectSoundCaptureCreate8Proc
)
GetProcAddress
(
pDevice
->
dsound
.
hDSoundDLL
,
"DirectSoundCaptureCreate8"
);
mal_DirectSoundCaptureCreate8Proc
pDirectSoundCaptureCreate8
=
(
mal_DirectSoundCaptureCreate8Proc
)
GetProcAddress
(
(
HMODULE
)
pDevice
->
dsound
.
hDSoundDLL
,
"DirectSoundCaptureCreate8"
);
if
(
pDirectSoundCaptureCreate8
==
NULL
)
{
if
(
pDirectSoundCaptureCreate8
==
NULL
)
{
mal_device_uninit__dsound
(
pDevice
);
mal_device_uninit__dsound
(
pDevice
);
return
mal_post_error
(
pDevice
,
"[DirectSound] Could not find DirectSoundCreate8()."
,
MAL_API_NOT_FOUND
);
return
mal_post_error
(
pDevice
,
"[DirectSound] Could not find DirectSoundCreate8()."
,
MAL_API_NOT_FOUND
);
...
...
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