OSDN Git Service

Add readme
[cinnamon-audio/cinnamon.git] / cin_common.h
1 /*
2  * Copyright (c) 2018 AlaskanEmily
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6  */
7
8 #ifndef CIN_COMMON_H
9 #define CIN_COMMON_H
10 #pragma once
11
12 #include "cin_export.h"
13 #include "cin_format.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 struct Cin_Driver;
20 struct Cin_Loader;
21 struct Cin_Sound;
22
23 CIN_PRIVATE(enum Cin_LoaderError) Cin_FormatCompatible(struct Cin_Driver *drv,
24     unsigned sample_rate,
25     unsigned num_channels,
26     enum Cin_Format format);
27
28 CIN_PRIVATE_PURE(unsigned) Cin_BytesPerSample(enum Cin_Format format);
29
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif
33
34 #endif /* CIN_COMMON_H */