Output the audio signal with filtering by graphic equalizer in the *.wav file on the SD card using onboard CODEC. SD カードの *.wav ファイルのオーディオ信号をグラフィック・イコライザを通して,ボードに搭載されているCODEC で出力する.

Dependencies:   F746_GUI F746_SAI_IO SD_PlayerSkeleton FrequencyResponseDrawer

Committer:
MikamiUitOpen
Date:
Mon Apr 10 04:07:35 2017 +0000
Revision:
24:f78f9d0ac262
Parent:
16:cbb726ac20d8
25

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikamiUitOpen 16:cbb726ac20d8 1 /* mbed Microcontroller Library
MikamiUitOpen 16:cbb726ac20d8 2 * Copyright (c) 2006-2013 ARM Limited
MikamiUitOpen 16:cbb726ac20d8 3 *
MikamiUitOpen 16:cbb726ac20d8 4 * Licensed under the Apache License, Version 2.0 (the "License");
MikamiUitOpen 16:cbb726ac20d8 5 * you may not use this file except in compliance with the License.
MikamiUitOpen 16:cbb726ac20d8 6 * You may obtain a copy of the License at
MikamiUitOpen 16:cbb726ac20d8 7 *
MikamiUitOpen 16:cbb726ac20d8 8 * http://www.apache.org/licenses/LICENSE-2.0
MikamiUitOpen 16:cbb726ac20d8 9 *
MikamiUitOpen 16:cbb726ac20d8 10 * Unless required by applicable law or agreed to in writing, software
MikamiUitOpen 16:cbb726ac20d8 11 * distributed under the License is distributed on an "AS IS" BASIS,
MikamiUitOpen 16:cbb726ac20d8 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MikamiUitOpen 16:cbb726ac20d8 13 * See the License for the specific language governing permissions and
MikamiUitOpen 16:cbb726ac20d8 14 * limitations under the License.
MikamiUitOpen 16:cbb726ac20d8 15 */
MikamiUitOpen 16:cbb726ac20d8 16 #ifndef MBED_STREAM_H
MikamiUitOpen 16:cbb726ac20d8 17 #define MBED_STREAM_H
MikamiUitOpen 16:cbb726ac20d8 18
MikamiUitOpen 16:cbb726ac20d8 19 #include "platform.h"
MikamiUitOpen 16:cbb726ac20d8 20 #include "FileLike.h"
MikamiUitOpen 16:cbb726ac20d8 21 #include <cstdarg>
MikamiUitOpen 16:cbb726ac20d8 22
MikamiUitOpen 16:cbb726ac20d8 23 namespace mbed {
MikamiUitOpen 16:cbb726ac20d8 24
MikamiUitOpen 16:cbb726ac20d8 25 extern void mbed_set_unbuffered_stream(FILE *_file);
MikamiUitOpen 16:cbb726ac20d8 26 extern int mbed_getc(FILE *_file);
MikamiUitOpen 16:cbb726ac20d8 27 extern char* mbed_gets(char *s, int size, FILE *_file);
MikamiUitOpen 16:cbb726ac20d8 28
MikamiUitOpen 16:cbb726ac20d8 29 class Stream : public FileLike {
MikamiUitOpen 16:cbb726ac20d8 30
MikamiUitOpen 16:cbb726ac20d8 31 public:
MikamiUitOpen 16:cbb726ac20d8 32 Stream(const char *name=NULL);
MikamiUitOpen 16:cbb726ac20d8 33 virtual ~Stream();
MikamiUitOpen 16:cbb726ac20d8 34
MikamiUitOpen 16:cbb726ac20d8 35 int putc(int c);
MikamiUitOpen 16:cbb726ac20d8 36 int puts(const char *s);
MikamiUitOpen 16:cbb726ac20d8 37 int getc();
MikamiUitOpen 16:cbb726ac20d8 38 char *gets(char *s, int size);
MikamiUitOpen 16:cbb726ac20d8 39 int printf(const char* format, ...);
MikamiUitOpen 16:cbb726ac20d8 40 int scanf(const char* format, ...);
MikamiUitOpen 16:cbb726ac20d8 41 int vprintf(const char* format, std::va_list args);
MikamiUitOpen 16:cbb726ac20d8 42 int vscanf(const char* format, std::va_list args);
MikamiUitOpen 16:cbb726ac20d8 43
MikamiUitOpen 16:cbb726ac20d8 44 operator std::FILE*() {return _file;}
MikamiUitOpen 16:cbb726ac20d8 45
MikamiUitOpen 16:cbb726ac20d8 46 protected:
MikamiUitOpen 16:cbb726ac20d8 47 virtual int close();
MikamiUitOpen 16:cbb726ac20d8 48 virtual ssize_t write(const void* buffer, size_t length);
MikamiUitOpen 16:cbb726ac20d8 49 virtual ssize_t read(void* buffer, size_t length);
MikamiUitOpen 16:cbb726ac20d8 50 virtual off_t lseek(off_t offset, int whence);
MikamiUitOpen 16:cbb726ac20d8 51 virtual int isatty();
MikamiUitOpen 16:cbb726ac20d8 52 virtual int fsync();
MikamiUitOpen 16:cbb726ac20d8 53 virtual off_t flen();
MikamiUitOpen 16:cbb726ac20d8 54
MikamiUitOpen 16:cbb726ac20d8 55 virtual int _putc(int c) = 0;
MikamiUitOpen 16:cbb726ac20d8 56 virtual int _getc() = 0;
MikamiUitOpen 16:cbb726ac20d8 57
MikamiUitOpen 16:cbb726ac20d8 58 std::FILE *_file;
MikamiUitOpen 16:cbb726ac20d8 59
MikamiUitOpen 16:cbb726ac20d8 60 /* disallow copy constructor and assignment operators */
MikamiUitOpen 16:cbb726ac20d8 61 private:
MikamiUitOpen 16:cbb726ac20d8 62 Stream(const Stream&);
MikamiUitOpen 16:cbb726ac20d8 63 Stream & operator = (const Stream&);
MikamiUitOpen 16:cbb726ac20d8 64 };
MikamiUitOpen 16:cbb726ac20d8 65
MikamiUitOpen 16:cbb726ac20d8 66 } // namespace mbed
MikamiUitOpen 16:cbb726ac20d8 67
MikamiUitOpen 16:cbb726ac20d8 68 #endif