| 578 |
|
|
| 579 |
if ( strMes != null ) |
if ( strMes != null ) |
| 580 |
{ |
{ |
|
//Debug.WriteLine( "msg arg=" + strMes ); |
|
| 581 |
DTXVmode.ParseArguments( strMes ); |
DTXVmode.ParseArguments( strMes ); |
| 582 |
|
|
| 583 |
if ( DTXVmode.Enabled ) |
if ( DTXVmode.Enabled ) |
| 584 |
{ |
{ |
|
//Debug.WriteLine( "DTXV mode is enabled," ); |
|
| 585 |
bコンパクトモード = true; |
bコンパクトモード = true; |
| 586 |
strコンパクトモードファイル = DTXVmode.filename; |
strコンパクトモードファイル = DTXVmode.filename; |
| 587 |
|
if ( DTXVmode.Command == CDTXVmode.ECommand.Preview ) |
| 588 |
|
{ |
| 589 |
|
// preview soundの再生 |
| 590 |
|
string strPreviewFilename = DTXVmode.previewFilename; |
| 591 |
|
//Trace.TraceInformation( "Preview Filename=" + DTXVmode.previewFilename ); |
| 592 |
|
try |
| 593 |
|
{ |
| 594 |
|
if ( this.previewSound != null ) |
| 595 |
|
{ |
| 596 |
|
this.previewSound.tサウンドを停止する(); |
| 597 |
|
this.previewSound.Dispose(); |
| 598 |
|
this.previewSound = null; |
| 599 |
|
} |
| 600 |
|
this.previewSound = CDTXMania.Sound管理.tサウンドを生成する( strPreviewFilename ); |
| 601 |
|
this.previewSound.n音量 = DTXVmode.previewVolume; |
| 602 |
|
this.previewSound.n位置 = DTXVmode.previewPan; |
| 603 |
|
this.previewSound.t再生を開始する(); |
| 604 |
|
Trace.TraceInformation( "DTXCからの指示で、サウンドを生成しました。({0})", strPreviewFilename ); |
| 605 |
|
} |
| 606 |
|
catch |
| 607 |
|
{ |
| 608 |
|
Trace.TraceError( "DTXCからの指示での、サウンドの生成に失敗しました。({0})", strPreviewFilename ); |
| 609 |
|
if ( this.previewSound != null ) |
| 610 |
|
{ |
| 611 |
|
this.previewSound.Dispose(); |
| 612 |
|
} |
| 613 |
|
this.previewSound = null; |
| 614 |
|
} |
| 615 |
|
} |
| 616 |
} |
} |
| 617 |
} |
} |
| 618 |
} |
} |
| 664 |
case CStage.Eステージ.曲読み込み: |
case CStage.Eステージ.曲読み込み: |
| 665 |
if ( EnumSongs != null ) |
if ( EnumSongs != null ) |
| 666 |
{ |
{ |
| 667 |
|
DTXVmode.Refreshed = false; // 曲のリロード中に発生した再リロードは、無視する。 |
| 668 |
#region [ (特定条件時) 曲検索スレッドの起動・開始 ] |
#region [ (特定条件時) 曲検索スレッドの起動・開始 ] |
| 669 |
if ( r現在のステージ.eステージID == CStage.Eステージ.タイトル && |
if ( r現在のステージ.eステージID == CStage.Eステージ.タイトル && |
| 670 |
r直前のステージ.eステージID == CStage.Eステージ.起動 && |
r直前のステージ.eステージID == CStage.Eステージ.起動 && |
| 1166 |
#region [ *** ] |
#region [ *** ] |
| 1167 |
//----------------------------- |
//----------------------------- |
| 1168 |
|
|
| 1169 |
|
double n = (double)sw.ElapsedTicks / (double)Stopwatch.Frequency; |
| 1170 |
|
swlist.Add(n); |
| 1171 |
|
|
| 1172 |
#region [ DTXVモード中にDTXCreatorから指示を受けた場合の処理 ] |
#region [ DTXVモード中にDTXCreatorから指示を受けた場合の処理 ] |
| 1173 |
if ( DTXVmode.Enabled && DTXVmode.Refreshed ) |
if ( DTXVmode.Enabled && DTXVmode.Refreshed ) |
| 1174 |
{ |
{ |
| 1184 |
{ |
{ |
| 1185 |
CDTXMania.stage演奏ギター画面.t停止(); |
CDTXMania.stage演奏ギター画面.t停止(); |
| 1186 |
} |
} |
| 1187 |
|
if ( previewSound != null ) |
| 1188 |
|
{ |
| 1189 |
|
this.previewSound.tサウンドを停止する(); |
| 1190 |
|
this.previewSound.Dispose(); |
| 1191 |
|
this.previewSound = null; |
| 1192 |
|
} |
| 1193 |
} |
} |
| 1194 |
else if ( DTXVmode.Command == CDTXVmode.ECommand.Play ) |
else if ( DTXVmode.Command == CDTXVmode.ECommand.Play ) |
| 1195 |
{ |
{ |
| 1203 |
{ |
{ |
| 1204 |
CDTXMania.stage演奏ギター画面.t再読込(); |
CDTXMania.stage演奏ギター画面.t再読込(); |
| 1205 |
} |
} |
| 1206 |
|
|
| 1207 |
|
CDTXMania.ConfigIni.bDrums有効 = !DTXVmode.GRmode; |
| 1208 |
|
CDTXMania.ConfigIni.bGuitar有効 = true; |
| 1209 |
|
CDTXMania.ConfigIni.bTimeStretch = DTXVmode.TimeStretch; |
| 1210 |
|
CSound管理.bIsTimeStretch = DTXVmode.TimeStretch; |
| 1211 |
|
if ( CDTXMania.ConfigIni.b垂直帰線待ちを行う != DTXVmode.VSyncWait ) |
| 1212 |
|
{ |
| 1213 |
|
CDTXMania.ConfigIni.b垂直帰線待ちを行う = DTXVmode.VSyncWait; |
| 1214 |
|
CDTXMania.app.b次のタイミングで垂直帰線同期切り替えを行う = true; |
| 1215 |
|
} |
| 1216 |
} |
} |
| 1217 |
else |
else |
| 1218 |
{ |
{ |
| 1256 |
//----------------------------- |
//----------------------------- |
| 1257 |
scoreIni = this.tScoreIniへBGMAdjustとHistoryとPlayCountを更新( "Play canceled" ); |
scoreIni = this.tScoreIniへBGMAdjustとHistoryとPlayCountを更新( "Play canceled" ); |
| 1258 |
|
|
| 1259 |
|
double lastd = 0f; |
| 1260 |
|
int f = 0; |
| 1261 |
|
foreach ( double d in swlist ) |
| 1262 |
|
{ |
| 1263 |
|
double dif = d - lastd; |
| 1264 |
|
string s = ""; |
| 1265 |
|
if ( 0.016 < dif && dif < 0.017 ) |
| 1266 |
|
{ |
| 1267 |
|
} |
| 1268 |
|
else |
| 1269 |
|
{ |
| 1270 |
|
s = "★"; |
| 1271 |
|
} |
| 1272 |
|
//Trace.TraceInformation( "frame " + f + ": " + d + " (" + dif + ")" + s ); |
| 1273 |
|
lastd = d; |
| 1274 |
|
f++; |
| 1275 |
|
} |
| 1276 |
|
swlist.Clear(); |
| 1277 |
|
|
| 1278 |
#region [ プラグイン On演奏キャンセル() の呼び出し ] |
#region [ プラグイン On演奏キャンセル() の呼び出し ] |
| 1279 |
//--------------------- |
//--------------------- |
| 1280 |
foreach( STPlugin pg in this.listプラグイン ) |
foreach( STPlugin pg in this.listプラグイン ) |
| 1736 |
} |
} |
| 1737 |
} |
} |
| 1738 |
} |
} |
| 1739 |
|
private CSound previewSound; |
| 1740 |
|
|
| 1741 |
private void t起動処理() |
private void t起動処理() |
| 1742 |
{ |
{ |
| 2559 |
{ |
{ |
| 2560 |
if ( DTXVmode.Enabled ) |
if ( DTXVmode.Enabled ) |
| 2561 |
{ |
{ |
| 2562 |
Trace.TraceInformation( "DTXVモードだったため、Config.iniは保存しません。" ); |
DTXVmode.tUpdateConfigIni(); |
| 2563 |
|
Trace.TraceInformation( "DTXVモードの設定情報を、Config.iniに保存しました。" ); |
| 2564 |
} |
} |
| 2565 |
else |
else |
| 2566 |
{ |
{ |
| 2812 |
//} |
//} |
| 2813 |
|
|
| 2814 |
//----------------- |
//----------------- |
| 2815 |
|
|
| 2816 |
|
Stopwatch sw = new Stopwatch(); |
| 2817 |
|
List<double> swlist; |
| 2818 |
|
|
| 2819 |
#endregion |
#endregion |
| 2820 |
} |
} |
| 2821 |
} |
} |