Debian Codegraph @

modules/lsp-runtime-lib/include/lsp-plug.in/fmt/lspc/IAudioFormatSelector.h

raw
1 /*
2 * Copyright (C) 2022 Linux Studio Plugins Project <https://lsp-plug.in/>
3 * (C) 2022 Vladimir Sadovnikov <[email protected]>
4 *
5 * This file is part of lsp-runtime-lib
6 * Created on: 23 окт. 2022 г.
7 *
8 * lsp-runtime-lib is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * any later version.
12 *
13 * lsp-runtime-lib is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with lsp-runtime-lib. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #ifndef LSP_PLUG_IN_FMT_LSPC_IAUDIOFORMATSELECTOR_H_
23 #define LSP_PLUG_IN_FMT_LSPC_IAUDIOFORMATSELECTOR_H_
24
25 #include <lsp-plug.in/runtime/version.h>
26
27 #include <lsp-plug.in/common/status.h>
28 #include <lsp-plug.in/fmt/lspc/lspc.h>
29 #include <lsp-plug.in/mm/types.h>
30
31 namespace lsp
32 {
33 namespace lspc
34 {
35 class IAudioFormatSelector
36 {
37 private:
38 IAudioFormatSelector(const IAudioFormatSelector &);
39 IAudioFormatSelector & operator = (const IAudioFormatSelector &);
40
41 public:
42 IAudioFormatSelector();
43 virtual ~IAudioFormatSelector();
44
45 public:
46 /**
47 * Decide which audio format to use at output conversion depending on the input format
48 * @param out pointer to store the output format data
49 * @param in input format description
50 * @return status of operation
51 */
52 virtual status_t decide(lspc::audio_format_t *out, const mm::audio_stream_t *in);
53 };
54 } /* namespace lspc */
55 } /* namespace lsp */
56
57
58 #endif /* LSP_PLUG_IN_FMT_LSPC_IAUDIOFORMATSELECTOR_H_ */