forked from naudio/NAudio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE-59] Windows 10 Mobile ole32.dll error when playing
- Loading branch information
1 parent
a996e1b
commit 801c068
Showing
8 changed files
with
40 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using NAudio.CoreAudioApi.Interfaces; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace NAudio.CoreAudioApi.Interfaces | ||
{ | ||
class PropVariantNative | ||
{ | ||
// Windows 10 requires api-ms-win-core-com-l1-1-1.dll | ||
[DllImport("api-ms-win-core-com-l1-1-1.dll")] | ||
internal static extern int PropVariantClear(ref PropVariant pvar); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using NAudio.CoreAudioApi.Interfaces; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace NAudio.CoreAudioApi.Interfaces | ||
{ | ||
class PropVariantNative | ||
{ | ||
// For Windows 8 we need to import api-ms-win-core-com-l1-1-0.dll, so we use this since we target 8.0 | ||
// TODO Windows 8.1 requires api-ms-win-core-com-l1-1-1.dll for PropVariantClear | ||
[DllImport("api-ms-win-core-com-l1-1-0.dll")] | ||
internal static extern int PropVariantClear(ref PropVariant pvar); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace NAudio.CoreAudioApi.Interfaces | ||
{ | ||
class PropVariantNative | ||
{ | ||
[DllImport("ole32.dll")] | ||
internal static extern int PropVariantClear(ref PropVariant pvar); | ||
} | ||
} |
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