Library for Skeleton of SD card player. SD カードプレーヤのための骨組みとして使うためのライブラリ.このライブラリを登録した際のプログラム:「F746_SD_Player_Demo」

Dependencies:   SDFileSystem_Warning_Fixed

Dependents:   F746_SD_Player_Demo F746_SD_VarableFilter F746_SD_GraphicEqualizer F746_MySoundMachine ... more

Revision:
11:c33c711a5712
Parent:
5:7c8f0fc9dfb6
Child:
12:f73e11831c1c
--- a/FileSelectorWav.cpp	Mon Jan 16 00:41:10 2017 +0000
+++ b/FileSelectorWav.cpp	Wed Mar 15 23:45:48 2017 +0000
@@ -126,18 +126,20 @@
 
     // ファイルの一覧の消去
     void FileSelector::Erase(uint16_t x, uint16_t y, uint16_t width, uint16_t height,
-               uint32_t color)
+                             uint32_t color)
     {
         lcd_->SetTextColor(color);
         lcd_->FillRect(x, y, width, height);
     }
 
-    // 拡張子を削除した文字列を取得
+    // 拡張子を削除したファイル名を取得
     string FileSelector::GetFileNameNoExt(int n)
     {
         string name = fileNames_[n];
         int k = name.rfind(".");
-        if (k != string::npos) return name.erase(k);
-        else                   return name;
+        if (k != string::npos)
+            return name.erase(k);
+        else
+            return name;
     }
 }