ソースを参照

cmScore.h/c: Added cmScoreSampleRate()

master
kevin 11年前
コミット
e1687cb84e
2個のファイルの変更10行の追加0行の削除
  1. 7
    0
      app/cmScore.c
  2. 3
    0
      app/cmScore.h

+ 7
- 0
app/cmScore.c ファイルの表示

1183
   return p->fn;
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
 bool     cmScoreIsValid( cmScH_t h )
1193
 bool     cmScoreIsValid( cmScH_t h )
1187
 { return h.h != NULL; }
1194
 { return h.h != NULL; }
1188
 
1195
 

+ 3
- 0
app/cmScore.h ファイルの表示

137
 
137
 
138
   // Filename of last successfuly loaded score file.
138
   // Filename of last successfuly loaded score file.
139
   const cmChar_t* cmScoreFileName( cmScH_t h );
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
   // Validate the score handle
144
   // Validate the score handle
142
   bool          cmScoreIsValid( cmScH_t h );
145
   bool          cmScoreIsValid( cmScH_t h );

読み込み中…
キャンセル
保存