-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net35 hooks, fixed invalid device hook
hooks now use .net 3.5. this is because 4.0 will run load 3.5 dll's, but certainly not the other way around. hooking dll retargeted 3.5 because of this. fixed the hook, if an invalid device id is passed and a device is not found then resort to the actual default.
- Loading branch information
1 parent
c59aca2
commit e89d4e3
Showing
5 changed files
with
31 additions
and
47 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
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 |
---|---|---|
@@ -1,29 +1,12 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace AudioSwitcher.AudioApi.Hooking.ComObjects | ||
{ | ||
/// <summary> | ||
/// The ERole enumeration defines constants that indicate the role | ||
/// that the system has assigned to an audio endpoint device | ||
/// </summary> | ||
[Flags] | ||
[ComVisible(true)] | ||
public enum Role | ||
public enum Role : uint | ||
{ | ||
/// <summary> | ||
/// Games, system notification sounds, and voice commands. | ||
/// </summary> | ||
Console, | ||
|
||
/// <summary> | ||
/// Music, movies, narration, and live music recording | ||
/// </summary> | ||
Multimedia, | ||
|
||
/// <summary> | ||
/// Voice communications (talking to another person). | ||
/// </summary> | ||
Communications, | ||
Console = 0, | ||
Multimedia = 1, | ||
Communications = 2 | ||
} | ||
} |
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