Browse Source

cmScore.h/c: Added cmScoreSampleRate()

master
kevin 11 years ago
parent
commit
e1687cb84e
2 changed files with 10 additions and 0 deletions
  1. 7
    0
      app/cmScore.c
  2. 3
    0
      app/cmScore.h

+ 7
- 0
app/cmScore.c View File

@@ -1183,6 +1183,13 @@ const cmChar_t* cmScoreFileName( cmScH_t h )
1183 1183
   return p->fn;
1184 1184
 }
1185 1185
 
1186
+double          cmScoreSampleRate( cmScH_t h )
1187
+{
1188
+  cmSc_t* p = _cmScHandleToPtr(h);
1189
+  return p->srate;
1190
+}
1191
+
1192
+
1186 1193
 bool     cmScoreIsValid( cmScH_t h )
1187 1194
 { return h.h != NULL; }
1188 1195
 

+ 3
- 0
app/cmScore.h View File

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

Loading…
Cancel
Save