cmScore.h/c: Added cmScoreSampleRate()

This commit is contained in:
kevin 2013-01-30 11:55:52 -08:00
förälder ec73cb280b
incheckning e1687cb84e
2 ändrade filer med 10 tillägg och 0 borttagningar

Visa fil

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

Visa fil

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