Get the length from sounds when possible
This commit is contained in:
parent
fd25ec2a62
commit
c6bb52c866
6 changed files with 22 additions and 2 deletions
|
|
@ -106,4 +106,9 @@ size_t SndFileDecoder::getSampleOffset()
|
|||
return sf_seek(SndFile, 0, SEEK_CUR);
|
||||
}
|
||||
|
||||
size_t SndFileDecoder::getSampleLength()
|
||||
{
|
||||
return (SndInfo.frames > 0) ? SndInfo.frames : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue