{"id":1552,"date":"2019-04-02T15:32:54","date_gmt":"2019-04-02T13:32:54","guid":{"rendered":"https:\/\/demdlx704as001.ad.harman.com\/?p=1552"},"modified":"2021-12-16T17:17:49","modified_gmt":"2021-12-16T16:17:49","slug":"configure-xaf-workspace-in-visual-studio","status":"publish","type":"post","link":"https:\/\/audioworx.transfunnel.co\/old\/?p=1552","title":{"rendered":"Configure xAF Workspace in Visual Studio"},"content":{"rendered":"<p>The Visual Studio sln file, xAFVirtualAmp.sln, is generated and built by Python using cmake. Be sure you install Python<br \/>\n2.7 and add the installed location to the \u201cPaths\u201d environment variable under System Properties.<br \/>\nTo generate and build a solution:<br \/>\n1. By default, the solution virtual device wrapper is configured to work with one instance. If you would like to run multiple<br \/>\ninstances, you will need to modify the xAFVirtualAmpEffect.cpp and xAFVirtualAmpEffect.h files.<br \/>\n2. Configure the build by enabling or disabling the audio objects in extendable-audio-framework\\build\\<br \/>\nexternalObjConfig.cmake.<br \/>\nYou can toggle the fields on and off by setting the macros above to one or zero.<br \/>\n3. Once the above configuration is completed, open the command window and navigate to the xAF repository<br \/>\nbase directory.<br \/>\n4. To generate and build the Visual Studio project for the Win32 platform:<br \/>\na. Release mode \u2013type build.py &#8211;platform=WinPc &#8211;target=Win32 &#8211;profile=Release<br \/>\nb. Debug mode \u2013 type build.py &#8211;platform=WinPc &#8211;target=Win32 &#8211;profile=Debug<br \/>\nxAF libraries and VirtualAmp dll will be generated in the \\public\\lib\\win32\\Release folder for the Release mode<br \/>\nand in the \\public\\lib\\win32\\Debug folder for the Debug mode.<br \/>\nPage 7 of 17<br \/>\nxAF_Startup_Guide.docx Confidential \/ \u00a9 by HARMAN CoC Lifestyle Audio<br \/>\nIf you want to open the Visual Studio solution files, go to the output \uf0e0build_dir_Win32 folder and open<br \/>\nxAFVirtualAmp.sln with administrator privileges.<br \/>\n5. To generate and build a Visual Studio project for the Win64 platform:<br \/>\na. Release mode \u2013 type build.py &#8211;platform=WinPc &#8211;target=Win64 &#8211;profile=Release<br \/>\nb. Debug mode \u2013 type build.py &#8211;platform=WinPc &#8211;target=Win64 &#8211;profile=Debug<br \/>\nxAF libraries and virtualamp dll will be generated in the \\public\\lib\\win64\\Release folder for the Release mode<br \/>\nand in the \\public\\lib\\win64\\Debug folder for the Debug mode.<br \/>\nIf you want to open the Visual Studio solution files, go to the output \uf0e0 build_dir_Win64 folder and open<br \/>\nxAFVirtualAmp.sln with administrator privileges.<br \/>\n6. To run the xAF unit test:<br \/>\na. Release mode \u2013 type build.py &#8211;platform=WinPc &#8211;target=Win32 &#8211;profile=Release &#8211;program=unitTest<br \/>\nb. Debug mode \u2013 type build.py &#8211;platform=WinPc &#8211;target=Win32 &#8211;profile=Debug &#8211;program=unitTest<br \/>\nUnit tests are not currently supported on the Win64 platform.<br \/>\n7. To clean the build artifacts \u2013 type build.py &#8211;platform=WinPc \u2013clean<br \/>\n8. The xAF has tested the solution file using Microsoft Visual Studio 2015 Professional. Older versions may not<br \/>\nwork.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Visual Studio sln file, xAFVirtualAmp.sln, is generated and built by Python using cmake. Be sure you install Python 2.7 and add the installed location to the \u201cPaths\u201d environment variable under System Properties. To generate and build a solution: 1. By default, the solution virtual device wrapper is configured to work with one instance. If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[]},"categories":[54,10],"tags":[56],"coauthors":[165],"_links":{"self":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/1552"}],"collection":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1552"}],"version-history":[{"count":2,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/1552\/revisions"}],"predecessor-version":[{"id":14407,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/1552\/revisions\/14407"}],"wp:attachment":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1552"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}