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
48 void *param;
50
54
59
60#endif
61
63 public_member(
64 implement(vk_audio_dev_t)
65 )
66
67 private_member(
68#if VSF_AUDIO_USE_PLAYBACK == ENABLED
70#endif
71 vk_audio_stream_t __stream[
72#if VSF_AUDIO_USE_PLAYBACK == ENABLED && VSF_AUDIO_USE_CAPTURE == ENABLED
73 2
74#else
75 1
76#endif
77 ];
78 )
79};
80
81/*============================ GLOBAL VARIABLES ==============================*/
82
84
85/*============================ PROTOTYPES ====================================*/
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif // VSF_USE_AUDIO && VSF_AUDIO_USE_DUMMY
92#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:62
Definition vsf_audio.h:145
Definition vsf_eda.h:848
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_audio_dummy.h:46
void * param
Definition vsf_audio_dummy.h:48
vsf_callback_timer_t timer
Definition vsf_audio_dummy.h:47
Definition vsf_audio_dummy.h:51
bool is_playing
Definition vsf_audio_dummy.h:55
uint8_t buffer_taken
Definition vsf_audio_dummy.h:57
bool fill_ticktock
Definition vsf_audio_dummy.h:56
vk_audio_dummy_playback_buffer_t buffer[2]
Definition vsf_audio_dummy.h:53
vk_audio_stream_t * audio_stream
Definition vsf_audio_dummy.h:52
const vk_audio_drv_t vk_audio_dummy_drv