Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/slmml/Sample.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37 - (hide annotations) (download)
Sun Mar 29 15:10:03 2009 UTC (15 years ago) by hikarin
File size: 441 byte(s)
[ocmml/slmml] * imported SlMML
1 hikarin 37 using System;
2    
3     namespace SlMML
4     {
5     public static class Sample
6     {
7     #region 定数の定義
8     public static readonly int RATE = 44100;
9     public static readonly int FREQUENCY_BASE = 440;
10     #endregion
11    
12     #region 公開メソッドの定義
13     public static short ToShort(this double s)
14     {
15     return (short)Math.Round(s * 32767);
16     }
17     #endregion
18     }
19     }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26