cmScore.h/c: Added cmScoreSampleRate()
This commit is contained in:
parent
ec73cb280b
commit
e1687cb84e
@ -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; }
|
||||||
|
|
||||||
|
@ -137,6 +137,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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user