Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem_Warning_Fixed
Diff: SD_PlayerSkeleton.hpp
- Revision:
- 5:7c8f0fc9dfb6
- Parent:
- 4:d730d024ac32
- Child:
- 6:6fe2b62f259d
diff -r d730d024ac32 -r 7c8f0fc9dfb6 SD_PlayerSkeleton.hpp
--- a/SD_PlayerSkeleton.hpp Mon Nov 07 00:54:55 2016 +0000
+++ b/SD_PlayerSkeleton.hpp Tue Nov 08 05:03:43 2016 +0000
@@ -1,7 +1,7 @@
//--------------------------------------------------------------
// SD プレーヤー用抽象基底クラス(ヘッダ)
//
-// 2016/11/07, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/11/08, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------------
#ifndef F746_SD_PLAYER_SKELETON_HPP
@@ -19,8 +19,8 @@
class SD_PlayerSkeleton
{
public:
- // リセット・ボタンを使う場合は reset を true とする
- SD_PlayerSkeleton(string str, int fs, bool reset = false);
+ // リセット・ボタンを使う場合は resetButton を true とする
+ SD_PlayerSkeleton(string str, int fs, bool resetButton = false);
virtual ~SD_PlayerSkeleton() { if (reset_ != NULL) delete reset_; }
void Execute();
@@ -44,14 +44,13 @@
Label title_; // 上部に表示されるタイトル
FileSelector selector_;
ButtonGroup menu_;
- ResetButton *reset_;
- bool resetActive_;
+ ResetButton *reset_; // リセットボタン用オブジェクトのポインタ
// SD カードのファイルのオープン
int32_t SD_Open();
// ファイルの選択
void SelectFile();
- // パネル操作のチェック
+ // パネルが操作された場合の処理
void CheckCtrl();
// コピー・コンストラクタとオブジェクトの代入演算子は使用禁止
@@ -61,15 +60,14 @@
//-------------------------------------
// 以下は仮想関数
//-------------------------------------
- // 1フレーム分の信号処理の実行
+ // 1フレーム分の信号処理
virtual void SignalProcessing() = 0;
- // サウンドエフェクタのパラメータ変更など
+ // 信号処理のパラメータ変更など
virtual void Modefy() {}
- // 曲の再生中に表示する
+ // 曲の再生時のに表示
virtual void Display() {}
- // サウンドエフェクタ処理のデータ等のクリア
+ // 信号処理で必要になる,データ等のクリア
virtual void Clear() {}
};
}
#endif // F746_SD_PLAYER_SKELETON_HPP
-