PsfPlayer v0.16

git-svn-id: http://svn.purei.org/purei/trunk@416 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2008-11-14 17:10:21 +00:00
parent 7bfac71738
commit be0de1ee26
10 changed files with 98 additions and 18 deletions

View file

@ -256,6 +256,12 @@ void CSpuBase::Render(int16* samples, unsigned int sampleCount, unsigned int sam
}
else
{
if(reader.IsDone())
{
channel.status = STOPPED;
channel.adsrVolume = 0;
continue;
}
uint8* repeat = reader.GetRepeat();
channel.repeat = repeat - m_ram;
}
@ -726,6 +732,11 @@ uint8* CSpuBase::CSampleReader::GetCurrent() const
return m_nextSample;
}
bool CSpuBase::CSampleReader::IsDone() const
{
return m_done;
}
double CSpuBase::CSampleReader::GetSamplingRate() const
{
return m_sourceSamplingRate;