![]() |
LibDriver WM8978
|
wav player source file More...
#include "wav_player.h"Go to the source code of this file.
Functions | |
| uint8_t | wav_init (wav_handle_t *handle) |
| initialize the wav | |
| uint8_t | wav_deinit (wav_handle_t *handle) |
| wav deinit | |
| uint8_t | wav_player_init (wav_handle_t *handle, char *path) |
| initialize the wav player | |
| uint8_t | wav_player_config (wav_handle_t *handle, uint32_t standard, uint32_t mode, uint32_t polarity, uint32_t format, uint32_t enable, uint32_t freq) |
| wav player config | |
| uint8_t | wav_player_start (wav_handle_t *handle) |
| wav player start | |
| uint8_t | wav_record_start (wav_handle_t *handle, uint32_t sample_rate, char *path) |
| wav record start | |
| uint8_t | wav_record_file_fill (wav_handle_t *handle, uint8_t index) |
| wav record file fill | |
| uint8_t | wav_record_stop (wav_handle_t *handle) |
| wav record stop | |
| uint8_t | wav_player_stop (wav_handle_t *handle) |
| wav player stop | |
| uint8_t | wav_player_pause (wav_handle_t *handle) |
| wav player pause | |
| uint8_t | wav_player_resume (wav_handle_t *handle) |
| wav player resume | |
| uint8_t | wav_player_get_status (wav_handle_t *handle, wav_status_t *status) |
| wav get status | |
| uint8_t | wav_player_buffer_fill (wav_handle_t *handle, uint8_t index) |
| wav player buffer fill | |
wav player source file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
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.
| Date | Version | Author | Description |
|---|---|---|---|
| 2023/07/31 | 1.0 | Shifeng Li | first upload |
Definition in file wav_player.c.