{"action":"created","issue":{"url":"https://api.github.com/repos/naudio/NAudio/issues/407","repository_url":"https://api.github.com/repos/naudio/NAudio","labels_url":"https://api.github.com/repos/naudio/NAudio/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/naudio/NAudio/issues/407/comments","events_url":"https://api.github.com/repos/naudio/NAudio/issues/407/events","html_url":"https://github.com/naudio/NAudio/issues/407","id":372696271,"node_id":"MDU6SXNzdWUzNzI2OTYyNzE=","number":407,"title":"Enabling disabled device and setting is as a default device","user":{"login":"EbramTawfik","id":12788360,"node_id":"MDQ6VXNlcjEyNzg4MzYw","avatar_url":"https://avatars2.githubusercontent.com/u/12788360?v=4","gravatar_id":"","url":"https://api.github.com/users/EbramTawfik","html_url":"https://github.com/EbramTawfik","followers_url":"https://api.github.com/users/EbramTawfik/followers","following_url":"https://api.github.com/users/EbramTawfik/following{/other_user}","gists_url":"https://api.github.com/users/EbramTawfik/gists{/gist_id}","starred_url":"https://api.github.com/users/EbramTawfik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EbramTawfik/subscriptions","organizations_url":"https://api.github.com/users/EbramTawfik/orgs","repos_url":"https://api.github.com/users/EbramTawfik/repos","events_url":"https://api.github.com/users/EbramTawfik/events{/privacy}","received_events_url":"https://api.github.com/users/EbramTawfik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-22T20:55:31Z","updated_at":"2018-10-23T18:16:22Z","closed_at":null,"author_association":"NONE","body":"Is there a way for enabling disabled audio device and setting is as a default device?\r\n\r\n![image](https://user-images.githubusercontent.com/12788360/47318890-22631e80-d602-11e8-8b18-6cb55f6dbd7f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/naudio/NAudio/issues/comments/432360878","html_url":"https://github.com/naudio/NAudio/issues/407#issuecomment-432360878","issue_url":"https://api.github.com/repos/naudio/NAudio/issues/407","id":432360878,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjM2MDg3OA==","user":{"login":"EbramTawfik","id":12788360,"node_id":"MDQ6VXNlcjEyNzg4MzYw","avatar_url":"https://avatars2.githubusercontent.com/u/12788360?v=4","gravatar_id":"","url":"https://api.github.com/users/EbramTawfik","html_url":"https://github.com/EbramTawfik","followers_url":"https://api.github.com/users/EbramTawfik/followers","following_url":"https://api.github.com/users/EbramTawfik/following{/other_user}","gists_url":"https://api.github.com/users/EbramTawfik/gists{/gist_id}","starred_url":"https://api.github.com/users/EbramTawfik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EbramTawfik/subscriptions","organizations_url":"https://api.github.com/users/EbramTawfik/orgs","repos_url":"https://api.github.com/users/EbramTawfik/repos","events_url":"https://api.github.com/users/EbramTawfik/events{/privacy}","received_events_url":"https://api.github.com/users/EbramTawfik/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T18:16:22Z","updated_at":"2018-10-23T18:16:22Z","author_association":"NONE","body":"I think It may be Activate method :\r\n[IMMDevice::Activate method](https://docs.microsoft.com/en-us/windows/desktop/api/mmdeviceapi/nf-mmdeviceapi-immdevice-activate) \r\n\r\nI tried also Registry Edit :\r\n\r\n```\r\n//Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\MMDevices\\Audio\\Render\\{87bd5990-b012-41f1-83f7-f267ed7780a7}\r\n    \r\nRegistryKey root = Registry.LocalMachine.OpenSubKey(\"SOFTWARE\", true).OpenSubKey(\"Microsoft\", true).OpenSubKey(\"Windows\", true).OpenSubKey(\"CurrentVersion\", true).OpenSubKey(\"MMDevices\", true).OpenSubKey(\"Audio\", true).OpenSubKey(\"Render\", true).OpenSubKey(\"{87bd5990-b012-41f1-83f7-f267ed7780a7}\", true); //{87bd5990-b012-41f1-83f7-f267ed7780a7} any Playback Device ID\r\n   \r\nMessageBox.Show($\"Value Before {root.GetValue(\"DeviceState\")}   { root.GetValueKind(\"DeviceState\")}\");\r\n  \r\nroot.SetValue(\"DeviceState\", 0x10000001, RegistryValueKind.DWord);\r\n   \r\nMessageBox.Show($\"Value After {root.GetValue(\"DeviceState\")}    { root.GetValueKind(\"DeviceState\")}\");\r\n```\r\n\r\nbut this didn't work the value wasn't changed in the registry."}}
{"actor":{"display_login":"EbramTawfik"}}