VSF Documented
vsf_wav.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_WAV_H__
19#define __VSF_WAV_H__
20
21#include "../../../vsf_av_cfg.h"
22
23#if VSF_AUDIO_USE_DECODER_WAV == ENABLED
24
25#include "kernel/vsf_kernel.h"
26
27#if defined(__VSF_WAV_CLASS_IMPLEMENT)
28# undef __VSF_WAV_CLASS_IMPLEMENT
29# define __VSF_CLASS_IMPLEMENT__
30#endif
31
32#include "utilities/ooc_class.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/*============================ INCLUDES ======================================*/
39/*============================ MACROS ========================================*/
40/*============================ MACROFIED FUNCTIONS ===========================*/
41/*============================ TYPES =========================================*/
42
43typedef enum vk_wav_state_t {
50
52 public_member(
53 vk_audio_dev_t *audio_dev;
55 vsf_stream_t *stream;
56 vsf_err_t result;
57 )
58 private_member(
59 vsf_eda_t eda;
60 uint32_t skip_size;
63 )
64};
65
66/*============================ GLOBAL VARIABLES ==============================*/
67/*============================ PROTOTYPES ====================================*/
68
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif // VSF_AUDIO_USE_DECODER_WAV
77#endif // __VSF_WAV_H__
vsf_err_t
Definition __type.h:42
Definition vsf_audio.h:158
Definition vsf_wav.h:51
Definition vsf_eda.h:766
Definition vsf_simple_stream.h:254
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_audio.h:126
vk_audio_stream_t * audio_stream
Definition vsf_audio.h:169
uint8_t state
Definition vsf_msg_tree.h:247
SDL_PixelFormat format
Definition vsf_sdl2_pixelformat.c:32
vsf_err_t vk_wav_playback_start(vk_wav_t *wav)
Definition vsf_wav.c:184
vk_wav_state_t
Definition vsf_wav.h:43
@ VSF_WAV_STATE_PLAYBACK
Definition vsf_wav.h:48
@ VSF_WAV_STATE_RIFF
Definition vsf_wav.h:44
@ VSF_WAV_STATE_SEARCH_DATA_TRUNK
Definition vsf_wav.h:46
@ VSF_WAV_STATE_SKIP_TRUNK
Definition vsf_wav.h:47
@ VSF_WAV_STATE_FORMAT
Definition vsf_wav.h:45
vsf_err_t vk_wav_playback_stop(vk_wav_t *wav)
Definition vsf_wav.c:197