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_WavReader.hpp
- Revision:
- 11:c33c711a5712
- Parent:
- 2:511479736d6e
- Child:
- 16:299cc1052baa
--- a/SD_WavReader.hpp Mon Jan 16 00:41:10 2017 +0000
+++ b/SD_WavReader.hpp Wed Mar 15 23:45:48 2017 +0000
@@ -1,10 +1,10 @@
//--------------------------------------------------------------
// SD_WavReader class ---- Header
// SD カードの *.wav ファイルの内容を読み出す
-// 以下のフォーマット以外は扱わない
+// 以下の型式のファイルのみ扱う
// PCM,16 ビットステレオ,標本化周波数 44.1 kHz
//
-// 2016/07/12, Copyright (c) 2016 MIKAMI, Naoki
+// 2017/03/09, Copyright (c) 2017 MIKAMI, Naoki
//--------------------------------------------------------------
#ifndef SD_WAV_READER_HPP
@@ -28,8 +28,6 @@
void Close() { fclose(fp_); }
// ファイルのヘッダ読み込み
- // 戻り値: *.wav で,16 ビットステレオ,
- // 標本化周波数:44.1 kHz の場合 true
bool IsWavFile();
// ファイルからステレオデータの取得
@@ -60,7 +58,7 @@
bool ok_;
int32_t size_; // データサイズ(標本化点の数)
- Array<int16_t> buffer; // ステレオをモノラルに変換する際の作業領域
+ Array<int16_t> buffer; // 作業領域
void ErrorMsg(char msg[])
{ BlinkLabel errLabel(240, 100, msg, Label::CENTER); }