A library which allows the playing of Wav files using the TLV320

Dependents:   RSALB_hbridge_helloworld RSALB_lobster WavPlayer_test AudioCODEC_HelloWorld

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WavPlayerConfig.h Source File

WavPlayerConfig.h

00001 /**
00002 * @author Giles Barton-Owen
00003 *
00004 * @section LICENSE
00005 *
00006 * Copyright (c) 2012 mbed
00007 *
00008 * Permission is hereby granted, free of charge, to any person obtaining a copy
00009 * of this software and associated documentation files (the "Software"), to deal
00010 * in the Software without restriction, including without limitation the rights
00011 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00012 * copies of the Software, and to permit persons to whom the Software is
00013 * furnished to do so, subject to the following conditions:
00014 *
00015 * The above copyright notice and this permission notice shall be included in
00016 * all copies or substantial portions of the Software.
00017 *
00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00019 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00020 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00021 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00022 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00023 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00024 * THE SOFTWARE.
00025 *
00026 * @section DESCRIPTION
00027 *    A WAV player configuration class for WavPlayer
00028 *
00029 */ 
00030 
00031 
00032 #ifndef WAVPLAYERCONFIG_H
00033 #define WAVPLAYERCONFIG_H
00034 
00035 #include "mbed.h"
00036 
00037 class WavPlayerConfig
00038 {
00039 public:
00040     /*format_tag(uint16_t ft);
00041      channels(uint16_t n);
00042      samples_per_second(uint32_t sps);
00043      avg_bytes_per_second(uint32_t abps);
00044      block_align(uint16_t ba);
00045      bits_per_sample(uint16_t bps);
00046      data_length(uint32_t len);*/
00047 
00048     WavPlayerConfig();
00049 
00050     uint16_t format_tag;
00051     uint16_t channels;
00052     uint32_t samples_per_sec;
00053     uint32_t avg_bytes_per_sec;
00054     uint16_t block_align;
00055     uint16_t bits_per_sample;
00056     uint32_t data_length;
00057     uint32_t file_size;
00058 
00059 private:
00060 
00061 };
00062 
00063 #endif