Пример #1
0
function play($bid)
{
    global $tablepre, $db;
    $obj = new xajaxResponse();
    $bid = intval($bid);
    $query = $db->query("SELECT id,url,type FROM `{$tablepre}ubox` WHERE bid={$bid}") or error('', __FILE__, __LINE__, $db->error());
    if ($value) {
        $obj->assign('player_div', 'innerHTML', flv('http://localhost/mp3/flvplayer.swf'));
    } else {
        $obj->assign('player_div', 'innerHTML', mp3('http://localhost/star.mp3'));
    }
    return $obj;
}
Пример #2
0
If you have a multi-part song separated into multiple files, drag and drop all of the 
files in the song onto the player to open them as a single song.
</p>
<p>
You can paste ABC songs that you've copied out of a forum post or website (for example). 
Use Ctrl+V to paste a new song, or Ctrl+Shift+V to add the contents of the clipboard 
as a new part of the current song.  The latter is useful when pasting a multi-part song from 
<a href="http://www.thefatlute.com/">The Fat Lute</a>.
</p>
<p>
You can export the song to a .wav (uncompressed audio) file using File > Save as Wave file.  You can then
use a program like <a href="http://lame.sourceforge.net/">LAME</a> to convert the .wav file to .mp3.
</p>

<h2>Preview</h2>
<p>
<img src="images/abcplayer_1.3.0.png" alt="Screenshot of ABC Player"/>
</p>
<p>
This is what the song pictured above sounds like when played in ABC Player:
</p>
<?php 
mp3('herecomesthesun', 'Here Comes the Sun');
?>
<p>
If you want to try the song yourself, download <a class="dnld" href="files/sun.abc">sun.abc</a> 
and either open it in ABC Player, or get 9 friends together and play it in LotRO.
</p>

<?php 
require '_footer.php';
Пример #3
0
<h2>How to use</h2>
<p>
ABC Player is fairly straightforward.  If you used the installer, you can just double-click 
on an .abc file to play it.  You can also drag and drop an .abc file onto the player, or use File > Open.
</p>
<p>
If you have a multi-part song separated into multiple files, simply drag and drop all of the 
files in the song onto the player to open them as a single song.
</p>
<p>
You can export the song to a .wav (uncompressed audio) file using File > Save as Wave file.  You can then
use a program like <a href="http://lame.sourceforge.net/">LAME</a> to convert the .wav file to .mp3.
</p>

<h2>Preview</h2>
<p>
<div><img src="abcplayer.png"/></div>
</p>
<p>
This is what the song pictured above sounds like when played in ABC Player:
<?php 
mp3('sunshine', 'Walking on Sunshine');
?>
</p>
<p>
If you want to try the song yourself, download <a class="dnld" href="files/sunshine.abc">sunshine.abc</a> 
and either open it in ABC Player, or get 5 friends together and play it in LotRO.
</p>

<?php 
require '_footer.php';