cmScore.h/c: Added cmScoreSampleRate()

This commit is contained in:
kevin 2013-01-30 11:55:52 -08:00
parent ec73cb280b
commit e1687cb84e
2 changed files with 10 additions and 0 deletions

View File

@ -1183,6 +1183,13 @@ const cmChar_t* cmScoreFileName( cmScH_t h )
return p->fn; return p->fn;
} }
double cmScoreSampleRate( cmScH_t h )
{
cmSc_t* p = _cmScHandleToPtr(h);
return p->srate;
}
bool cmScoreIsValid( cmScH_t h ) bool cmScoreIsValid( cmScH_t h )
{ return h.h != NULL; } { return h.h != NULL; }

View File

@ -138,6 +138,9 @@ extern "C" {
// Filename of last successfuly loaded score file. // Filename of last successfuly loaded score file.
const cmChar_t* cmScoreFileName( cmScH_t h ); const cmChar_t* cmScoreFileName( cmScH_t h );
// Sample rate as set in cmScoreInitialize()
double cmScoreSampleRate( cmScH_t h );
// Validate the score handle // Validate the score handle
bool cmScoreIsValid( cmScH_t h ); bool cmScoreIsValid( cmScH_t h );