From e1687cb84eed49de1a1c87dd2867fc655571d78d Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 30 Jan 2013 11:55:52 -0800 Subject: [PATCH] cmScore.h/c: Added cmScoreSampleRate() --- app/cmScore.c | 7 +++++++ app/cmScore.h | 3 +++ 2 files changed, 10 insertions(+) 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 );