-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathapp_config.h
More file actions
59 lines (49 loc) · 1.72 KB
/
app_config.h
File metadata and controls
59 lines (49 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright 2026 Arm Limited and/or its affiliates.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef APP_CONFIG_H_
#define APP_CONFIG_H_
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
//------ With VS Code: Open Preview for Configuration Wizard -------------------
// <o> Stream duration (seconds)
// <i> Defines the streaming duration in seconds.
// <i> Default: 0 (stream indefinitely)
#ifndef AUDIO_STREAM_DURATION
#define AUDIO_STREAM_DURATION 0
#endif
// <h>Audio Configuration
// ======================
// <o> Number of channels <1=>Mono <2=>Stereo
// <i> Defines the number of audio channels in stream.
// <i> Default: 2
#ifndef AUDIO_CHANNELS
#define AUDIO_CHANNELS 2
#endif
// <o> Number of bits per sample <0=>8 <1=>16 <2=>24 <3=>32
// <i> Defines number of bits of information in each sample.
// <i> Default: 16
#ifndef AUDIO_SAMPLE_BITS
#define AUDIO_SAMPLE_BITS 16
#endif
// <o> Sample rate <8000=>8 kHz <16000=>16 kHz <44100=>44.1 kHz <48000=>48 kHz
// <i> Defines the number of samples captured per second.
// <i> Default: 16000
#ifndef AUDIO_SAMPLE_RATE
#define AUDIO_SAMPLE_RATE 16000
#endif
// </h>
#endif /* APP_CONFIG_H_ */