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.
Dependents: WavPlayerSD WavPlayerUSB WavPlayerUSB WavPlayerSD_CB
WavPlayerConfig.h
- Committer:
- JostBaus
- Date:
- 2019-04-14
- Revision:
- 4:b0186c8dca92
- Parent:
- 0:3695886f3495
File content as of revision 4:b0186c8dca92:
/** * @author Giles Barton-Owen * * @section LICENSE * * Copyright (c) 2012 mbed * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @section DESCRIPTION * A WAV player configuration class for WavPlayer * */ #ifndef WAVPLAYERCONFIG_H #define WAVPLAYERCONFIG_H #include "mbed.h" class WavPlayerConfig { public: /*format_tag(uint16_t ft); channels(uint16_t n); samples_per_second(uint32_t sps); avg_bytes_per_second(uint32_t abps); block_align(uint16_t ba); bits_per_sample(uint16_t bps); data_length(uint32_t len);*/ WavPlayerConfig(); uint16_t format_tag; uint16_t channels; uint32_t samples_per_sec; uint32_t avg_bytes_per_sec; uint16_t block_align; uint16_t bits_per_sample; uint32_t data_length; uint32_t file_size; private: }; #endif