OSDN Git Service

SoundTimer を廃止し、デバイス位置取得機能を Device に組み込む。
[strokestylet/CsWin10Desktop3.git] / StrokeStyleT / IStrokeStyleTService.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Diagnostics;
4 using System.Linq;
5 using System.ServiceModel;
6
7 namespace SST
8 {
9         /// <summary>
10         /// SST がサービスとして公開するインターフェースを定義する。
11         /// </summary>
12         [ServiceContract]
13         public interface IStrokeStyleTService
14         {
15                 /// <summary>
16                 /// 曲を読み込み、演奏を開始する。
17                 /// </summary>
18                 /// <remarks>
19                 /// ビュアーモードのときのみ有効。
20                 /// </remarks>
21                 /// <param name="path">曲ファイルパス</param>
22                 /// <param name="startPart">演奏開始小節番号(0..)</param>
23                 /// <param name="drumsSound">ドラムチップ音を発声させるなら true。</param>
24                 [OperationContract]
25                 void ViewerPlay( string path, int startPart = 0, bool drumsSound = true );
26
27                 /// <summary>
28                 /// 現在の演奏を停止する。
29                 /// </summary>
30                 /// <remarks>
31                 /// ビュアーモードのときのみ有効。
32                 /// </remarks>
33                 [OperationContract]
34                 void ViewerStop();
35
36                 /// <summary>
37                 /// サウンドデバイスの発声遅延[ms]を返す。
38                 /// </summary>
39                 /// <returns>遅延量[ms]</returns>
40                 [OperationContract]
41                 float GetSoundDelay();
42         }
43 }