mirror of
https://github.com/jpd002/Play-.git
synced 2025-05-08 03:27:56 +03:00
PsfPlayer v0.16
git-svn-id: http://svn.purei.org/purei/trunk@416 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
parent
7bfac71738
commit
be0de1ee26
10 changed files with 98 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue