{"id":1890,"date":"2018-12-04T01:23:44","date_gmt":"2018-12-03T23:23:44","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1890"},"modified":"2018-12-03T14:01:34","modified_gmt":"2018-12-03T12:01:34","slug":"getting-started-with-wasapi","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1890","title":{"rendered":"Getting started with WASAPI"},"content":{"rendered":"<p>Reader&#8217;s question:<\/p>\n<blockquote><p>\u00e2\u20ac\u00a6 Audio field is very new to me. But I must use WASAPI for one of my project. Would you mind give me a direction where should I start learning in order to be able to implement WASAPI to my project .<\/p><\/blockquote>\n<p>WASAPI basics are straightforward:<\/p>\n<ul>\n<li>enumerate devices<\/li>\n<li>capture audio<\/li>\n<li>play (render) audio back<\/li>\n<\/ul>\n<p>To start WASAPI development I recommend looking at Microsoft\u00e2\u20ac\u2122s SDK samples <a href=\"https:\/\/github.com\/Microsoft\/Windows-classic-samples\/tree\/master\/Samples\/Win7Samples\/multimedia\/audio\">here<\/a>. The samples include both capture and playback tasks in simple scenarios.<\/p>\n<p>A few more samples for WASAPI on UWP:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/Microsoft\/Windows-universal-samples\/tree\/master\/Samples\/WindowsAudioSession\">Windows audio session (WASAPI) sample<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Microsoft\/Windows-universal-samples\/tree\/master\/Samples\/VoIP\">Voice over IP (VoIP) sample<\/a><\/li>\n<\/ul>\n<p>You will need MSDN documentation for <a href=\"http:\/\/msdn.microsoft.com\/library\/windows\/apps\/dd371455\">Windows Audio Session API (WASAPI)<\/a> to get details on API calls.<\/p>\n<p>Related MSDN API links:<\/p>\n<ul>\n<li><a href=\"http:\/\/msdn.microsoft.com\/library\/windows\/apps\/dd370802\">Core Audio APIs<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/library\/windows\/apps\/ms694197\">Media Foundation<\/a><\/li>\n<li><a href=\"https:\/\/msdn.microsoft.com\/library\/windows\/apps\/mt203788\">Audio, video, and camera<\/a><\/li>\n<\/ul>\n<p>Once you have more specific questions I suggest that you search StackOverflow and MSDN Forums and ask on StackOverflow if you still need help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reader&#8217;s question: \u00e2\u20ac\u00a6 Audio field is very new to me. But I must use WASAPI for one of my project. Would you mind give me a direction where should I start learning in order to be able to implement WASAPI to my project . WASAPI basics are straightforward: enumerate devices capture audio play (render) audio&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1890\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[555,485,377],"class_list":["post-1890","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-555","tag-audio","tag-wasapi"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=1890"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1890\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}