diff --git a/app/cmScore.c b/app/cmScore.c index 085d1b4..983046e 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -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; } diff --git a/app/cmScore.h b/app/cmScore.h index 2223e9c..a2bba53 100644 --- a/app/cmScore.h +++ b/app/cmScore.h @@ -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 );