- Fixed: FString::StripRight() stripped the final character of the string if

there were no designated characters to strip at the end of it.
- Added support for Shoutcast/Icecast playlists.
- Added an error message when a playlist could not be opened.
- Added support for PLS format playlists, in addition to M3U.
- Changed FPlayList to use an array of FStrings.
- Fixed: Playlists required every song to be specified by an absolute path.


SVN r951 (trunk)
This commit is contained in:
Randy Heit 2008-04-30 05:36:24 +00:00
commit c86d7e0afd
12 changed files with 291 additions and 125 deletions

View file

@ -8,7 +8,6 @@ void StreamSong::Play (bool looping)
if (m_Stream->Play (m_Looping, 1))
{
m_Status = STATE_Playing;
m_LastPos = 0;
}
}
@ -65,18 +64,11 @@ bool StreamSong::IsPlaying ()
{
if (m_Status != STATE_Stopped)
{
if (m_Looping)
return true;
int pos = m_Stream->GetPosition ();
if (pos < m_LastPos)
if (m_Stream->IsEnded())
{
Stop ();
Stop();
return false;
}
m_LastPos = pos;
return true;
}
return false;