{"id":419,"date":"2016-10-31T20:09:43","date_gmt":"2016-11-01T00:09:43","guid":{"rendered":"https:\/\/portfolios.cs.earlham.edu\/?p=419"},"modified":"2016-11-01T17:02:15","modified_gmt":"2016-11-01T21:02:15","slug":"testing-portaudio","status":"publish","type":"post","link":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/10\/31\/testing-portaudio\/","title":{"rendered":"Testing PortAudio"},"content":{"rendered":"<p>I don&#8217;t know what took me so long to do it, but I finally installed PortAudio so that I can actually use it in my prototype program. To make sure it works, I ran one of the example programs, &#8220;paex_sine&#8221;, which plays a sine wave for five seconds, and got the following output:<\/p>\n<div>\n<pre>esly14@mc-1:~\/Documents\/git\/edward1617\/portaudio\/bin$ .\/paex_sine\r\nPortAudio Test: output sine wave. SR = 44100, BufSize = 64\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\nbt_audio_service_open: connect() failed: Connection refused (111)\r\nbt_audio_service_open: connect() failed: Connection refused (111)\r\nbt_audio_service_open: connect() failed: Connection refused (111)\r\nbt_audio_service_open: connect() failed: Connection refused (111)\r\nPlay for 5 seconds.\r\nALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred\r\nStream Completed: No Message\r\nTest finished.<\/pre>\n<p>I&#8217;m not entirely sure what is causing the errors to appear, but the sine wave still played just fine, so I&#8217;ll leave it alone for now unless something else happens along the way.<\/p>\n<p>Now that I have all the libraries I need for my prototype program, all I need to do next is to make some changes to the demo program to suit my initial needs. I&#8217;ll also need to figure out how to compile the program once the code is done and then write my own Makefile.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know what took me so long to do it, but I finally installed PortAudio so that I can actually use it in my prototype program. To make sure it works, I ran one of the example programs, &#8220;paex_sine&#8221;, which plays a sine wave for five seconds, and got the following output: esly14@mc-1:~\/Documents\/git\/edward1617\/portaudio\/bin$ .\/paex_sine &#8230; <a title=\"Testing PortAudio\" class=\"read-more\" href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/10\/31\/testing-portaudio\/\" aria-label=\"Read more about Testing PortAudio\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-edward"],"_links":{"self":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":3,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/419\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}