VSF Documented
vsf_audio_dummy.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_AUDIO_DUMMY_H__
19#define __VSF_AUDIO_DUMMY_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../../vsf_av_cfg.h"
24
25#if VSF_USE_AUDIO == ENABLED && VSF_AUDIO_USE_DUMMY == ENABLED
26
27#include "component/av/vsf_av.h"
28
29#if defined(__VSF_AUDIO_DUMMY_CLASS_IMPLEMENT)
30# undef __VSF_AUDIO_DUMMY_CLASS_IMPLEMENT
31# define __VSF_CLASS_IMPLEMENT__
32#endif
33
34#include "utilities/ooc_class.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/*============================ MACROS ========================================*/
41/*============================ MACROFIED FUNCTIONS ===========================*/
42/*============================ TYPES =========================================*/
43
44#if VSF_AUDIO_USE_PLAYBACK == ENABLED
45
49
53
54#endif
55
57 public_member(
58 implement(vk_audio_dev_t)
59 )
60
61 private_member(
62#if VSF_AUDIO_USE_PLAYBACK == ENABLED
64#endif
65 vk_audio_stream_t __stream[
66#if VSF_AUDIO_USE_PLAYBACK == ENABLED && VSF_AUDIO_USE_CAPTURE == ENABLED
67 2
68#else
69 1
70#endif
71 ];
72 )
73};
74
75/*============================ GLOBAL VARIABLES ==============================*/
76
78
79/*============================ PROTOTYPES ====================================*/
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif // VSF_USE_AUDIO && VSF_AUDIO_USE_DUMMY
86#endif // __VSF_AUDIO_DUMMY_H__
#define ENABLED
Definition __type.h:28
Definition vsf_audio.h:158
Definition vsf_audio.h:74
Definition vsf_audio_dummy.h:56
Definition vsf_audio.h:145
Definition vsf_eda.h:848
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_audio_dummy.h:46
vsf_callback_timer_t timer
Definition vsf_audio_dummy.h:48
bool is_playing
Definition vsf_audio_dummy.h:50
vk_audio_stream_t * audio_stream
Definition vsf_audio_dummy.h:47
bool is_timing
Definition vsf_audio_dummy.h:51
const vk_audio_drv_t vk_audio_dummy_drv