⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 network_audio_player.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#network_audio_player" class="toc">Network Audio Player</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#purpose" class="toc">Purpose</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#features" class="toc">Features</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#enable_the_audio_node" class="toc">Enable the Audio Node</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#kernel_settings" class="toc">Kernel Settings</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#application_settings" class="toc">Application Settings</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#testing_server_setup" class="toc">Testing Server Setup</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#testing_the_node" class="toc">Testing The Node</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#playing_with_the_node" class="toc">Playing with the Node</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#reference_information" class="toc">Reference Information</a></span></div></li></ul></li></ul></div></div><h1><a name="network_audio_player" id="network_audio_player">Network Audio Player</a></h1><div class="level1"></div><!-- SECTION [1-37] --><h2><a name="purpose" id="purpose">Purpose</a></h2><div class="level2"><p>This is a uClinux/Blackfin Networked Audio Media Node.  This Networked Audio media node, which can play audio files that are mounted on Linux / Windows PCs and which can be selected through a web interface.</p></div><!-- SECTION [38-265] --><h2><a name="features" id="features">Features</a></h2><div class="level2"><ol><li class="level1"><div class="li"> Play various audio files, <acronym title="Motion Picture Experts Group Layer 3">MP3</acronym>, FLAC, OGG, AAC and WAVE.</div></li><li class="level1"><div class="li"> Play audio files mounted on Windows / Linux PC.</div></li><li class="level1"><div class="li"> Web interface for playing and selecting audio files.</div></li><li class="level1"><div class="li"> Options to Next/Prev audio file play supported.</div></li><li class="level1"><div class="li"> Status of current playing audio file on demand.</div></li><li class="level1"><div class="li"> Options to pause songs, repeat play list and random play are provided.</div></li></ol></div><!-- SECTION [266-635] --><h2><a name="enable_the_audio_node" id="enable_the_audio_node">Enable the Audio Node</a></h2><div class="level2"></div><!-- SECTION [636-670] --><h3><a name="kernel_settings" id="kernel_settings">Kernel Settings</a></h3><div class="level3"><ol><li class="level1"><div class="li"> Enable <a href="audio.html" class="wikilink1" title="audio.html">audio</a> in the kernel</div></li><li class="level1"><div class="li"> Enable <a href="enabling_smb.html" class="wikilink1" title="enabling_smb.html">Windows Networking</a> in the kernel</div></li></ol><p> <code>insmod</code></p></div><!-- SECTION [671-1043] --><h3><a name="application_settings" id="application_settings">Application Settings</a></h3><div class="level3"><ol><li class="level1"><div class="li"> Enable the following user applications<pre class="code">	Blackfin app programs  ---&gt;	  	[*] Netaudio	Filesystem Applications  ---&gt;			[*] samba		[*]   smbmount		[*]   smbumount	Network Applications  ---&gt;		[*] boa-new(ver 0.94.14)	BusyBox  ---&gt;		[*] shell	Library Configuration  --&gt;		[*] Build faad2		[*] Build flac		[*] Build tremor		[*] Build libao-0.8.6		[*] Build libaudio		[*] Build libmad		[*] Build libid3tag</pre></div></li><li class="level1"><div class="li"> Build the kernel</div></li><li class="level1"><div class="li"> Load the image onto the Stamp board using uboot:</div><ol><li class="level2"><div class="li"> Copy the images/linux file into the tftp server</div></li><li class="level2"><div class="li"> Power on the STAMP board</div></li><li class="level2"><div class="li"> Configure the boot loader to download the image from the tftp server and boot it. Refer to the u-boot <a href="http://blackfin.uclinux.org/frs/download.php/502/Release_Notes_rc3.pdf" class="urlextern" title="http://blackfin.uclinux.org/frs/download.php/502/Release_Notes_rc3.pdf"  rel="nofollow">release notes</a> for more details.</div></li></ol></li></ol></div><!-- SECTION [1044-1881] --><h2><a name="testing_server_setup" id="testing_server_setup">Testing Server Setup</a></h2><div class="level2"><p> Before running the Network Audio demo, some songs should be stored in a shared directory on your server machine. This machine can be a Windows or a Linux PC. The Network Audio demo will use samba to map the shared directory and load the songs to play.</p></div><h5><a name="for_windows_systems" id="for_windows_systems">For Windows systems:</a></h5><div class="level5"><ol><li class="level1"><div class="li"> Create a shared directory, say &ldquo;MyMusic&rdquo;. To share a directory, you can right-click your mouse on the directory in Windows and a menu will pop up. Select &ldquo;Properties&rdquo; then click on &ldquo;Sharing&rdquo; tab. The directory will be shared after you select &ldquo;share this folder&rdquo;.</div></li><li class="level1"><div class="li"> Create a sub-directory named &ldquo;mp3&rdquo; under the directory &ldquo;MyMusic&rdquo;. The sub-directory name must be &ldquo;mp3&rdquo;. If this sub-directory is not named &ldquo;mp3&rdquo;, then the Network Audio demo will fail to work.</div></li><li class="level1"><div class="li"> Copy your mp3 files to this new &ldquo;mp3&rdquo; sub-directoy.</div></li></ol></div><h5><a name="for_linux_systems" id="for_linux_systems">For Linux systems:</a></h5><div class="level5"><ol><li class="level1"><div class="li"> Make sure samba is installed on your Linux box. This is quite distro-specific so please see the documentation for your distro.</div></li><li class="level1"><div class="li"> Edit the smb.conf configuration file and create a new samba share. Generally this can be found in /etc/samba/ or /etc/config/ (depending on your distro).</div></li><li class="level1"><div class="li"> Start the samba server smbd. Generally this can be accomplished by running &ldquo;/etc/init.d/smbd start&rdquo;.</div></li><li class="level1"><div class="li"> Create a sub-directory named &ldquo;mp3&rdquo; under the new samba share. The sub-directory name must be &ldquo;mp3&rdquo;. If this sub-directory is not named &ldquo;mp3&rdquo;, then the Network Audio demo will fail to work.</div></li><li class="level1"><div class="li"> Copy your mp3 files to this new &ldquo;mp3&rdquo; sub-directory.</div></li></ol><p>  &ldquo;&rdquo; </p></div><!-- SECTION [1882-3635] --><h2><a name="testing_the_node" id="testing_the_node">Testing The Node</a></h2><div class="level2"><p> 1. Configure your board&rsquo;s IP address by typing one of the following commands:</p><pre class="code">  root:~&gt; ifconfig eth0 my.ip.address</pre><p>or</p><pre class="code">  root:~&gt; dhcpcd &amp;</pre><p>For more information, see the <a href="setting_up_the_network.html" class="wikilink1" title="setting_up_the_network.html">Network Setup Page</a>.</p><p>2. Add some settings to your smb.conf to use smbmount more easily. To edit this file, run the following: </p><pre class="code">  root:~&gt; vi ./etc/config/smb.conf</pre><p> If your machine is setup in a workgroup, you can use these settings: </p><pre class="code">  [global]     workgroup = WORKGROUP     encrypt passwords = yes</pre><p> If your machine is setup in a domain, you can use these settings: </p><pre class="code">  [global]     workgroup = [name of domain]     encrypt passwords = yes</pre><p> 3. Launch the web server. Here we use <a href="boa.html" class="wikilink1" title="boa.html">Boa</a>: </p><pre class="code">  boa -c /etc &amp;</pre><p> 4. Open your web browser and browse to the board&rsquo;s ip address, meaning something like <a href="http://ipaddress/" class="urlextern" title="http://ipaddress/"  rel="nofollow">http://ipaddress/</a>. If all went well, you should see a welcome page outlining the features of the Network Audio Node.</p><p>5. Click on the &ldquo;Samba Mount&rdquo; link on the top of the page to mount the remote share full of mp3 files. </p><ul><li class="level1"><div class="li"> In the &ldquo;Samba Source&rdquo; textbox, enter: &ldquo;//host.server.ip.address/shared.directory&rdquo;</div></li><li class="level1"><div class="li"> Click the &ldquo;Next&rdquo; button</div></li><li class="level1"><div class="li"> Enter a username and password which has write access to the remote share</div></li><li class="level1"><div class="li"> Click the &ldquo;Mount&rdquo; button</div></li><li class="level1"><div class="li"> Hopefully the resulting screen should contain no errors</div></li><li class="level1"><div class="li"> Click the &ldquo;Check Samba Status&rdquo; link at the top of the page to verify everything is in order</div></li></ul><p>   </p><p>6. Click on the &ldquo;Start NetAudio&rdquo; link an the top of the page to start the Network Audio server daemon.</p><p>7. Click on the &ldquo;Direct Play&rdquo; link an the top of the page to control the Network Audio Node.</p><p>8. Play some music!</p></div><!-- SECTION [3636-5556] --><h2><a name="playing_with_the_node" id="playing_with_the_node">Playing with the Node</a></h2><div class="level2"><ul><li class="level1"><div class="li"> <strong>Playing</strong></div><ul><li class="level2"><div class="li"> Click on the name of a song you wish to play from the file list</div></li></ul></li></ul><ul><li class="level1"><div class="li"> <strong>Adding to the Playlist</strong></div><ul><li class="level2"><div class="li"> Check the checkbox to select the files you wish to queue</div></li><li class="level2"><div class="li"> Click the &ldquo;ADD&rdquo; link to add them to the current playlist</div></li><li class="level2"><div class="li"> The selected files will appear in the current playlist table</div></li><li class="level2"><div class="li"> Click the play button to play the song, or you can simply click on the song in the playlist</div></li></ul></li></ul><ul><li class="level1"><div class="li"> <strong>Deleting from the Playlist</strong></div><ul><li class="level2"><div class="li"> To clear the playlist, click &ldquo;CLEAR&rdquo;</div></li></ul></li></ul><ul><li class="level1"><div class="li"> <strong>Saving the Playlist</strong></div><ul><li class="level2"><div class="li"> Click &ldquo;SAVE&rdquo; and you will be prompted for the filename</div></li><li class="level2"><div class="li"> Enter the file name and click OK</div></li><li class="level2"><div class="li"> The saved playlist will be listed in the playlist table</div></li><li class="level2"><div class="li"> You can load or delete the saved playlist</div></li></ul></li></ul></div><!-- SECTION [5557-6319] --><h2><a name="reference_information" id="reference_information">Reference Information</a></h2><div class="level2"><ul><li class="level1"><div class="li"> <strong>Web Functions</strong></div><ul><li class="level2"><div class="li"> &ldquo;Samba Mount&rdquo; - mount music shared directory</div></li><li class="level2"><div class="li"> &ldquo;Start NetAudio&rdquo; - start the Network Audio Media Node</div></li><li class="level2"><div class="li"> &ldquo;Direct Play&rdquo; - control the player</div></li><li class="level2"><div class="li"> &ldquo;Stop NetAudio&rdquo; - stop the Network Audio Media Node</div></li><li class="level2"><div class="li"> &ldquo;Samba Unmount&rdquo; - unmount the music shared directory</div></li><li class="level2"><div class="li"> &ldquo;Check Samba status&rdquo; - check samba status</div></li></ul></li></ul><ul><li class="level1"><div class="li"> <strong>Quick Procedure Reference</strong></div><ol><li class="level2"><div class="li"> Mount the music directory</div></li><li class="level2"><div class="li"> Start NetAudio</div></li><li class="level2"><div class="li"> Direct Play (To listen songs)</div></li><li class="level2"><div class="li"> Stop NetAudio</div></li><li class="level2"><div class="li"> Unmount Samba</div></li></ol></li></ul><ul><li class="level1"><div class="li"> <strong>Samba Status Info</strong></div><ul><li class="level2"><div class="li"> To check whether the samba mount is success or failure click on the link &ldquo;Check Samba Status&rdquo; found in the top of the page</div></li><li class="level2"><div class="li"> If the samba mount has been successful, then the message &ldquo;smbmount found&rdquo; will be displayed</div></li><li class="level2"><div class="li"> Otherwise, the &ldquo;smbmount not found&rdquo; will be displayed</div></li></ul></li></ul></div><!-- SECTION [6320-] --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -