]> git.ipfire.org Git - thirdparty/shairport-sync.git/blame - apple_alac.h
Update check_classic_mac_basic.yml
[thirdparty/shairport-sync.git] / apple_alac.h
CommitLineData
02224666
MB
1/*
2 * This file is part of Shairport Sync.
3 * Copyright (c) Mike Brady 2019
4 * All rights reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person
7 * obtaining a copy of this software and associated documentation
8 * files (the "Software"), to deal in the Software without
9 * restriction, including without limitation the rights to use,
10 * copy, modify, merge, publish, distribute, sublicense, and/or
11 * sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be
15 * included in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 * OTHER DEALINGS IN THE SOFTWARE.
25 */
945483d9
MB
26#ifndef __APPLE_ALAC_H
27#define __APPLE_ALAC_H
28
945483d9 29#include "config.h"
064bd293 30#include <stdint.h>
945483d9
MB
31
32#ifdef __cplusplus
064bd293 33#define EXTERNC extern "C"
945483d9 34#else
064bd293 35#define EXTERNC
945483d9
MB
36#endif
37
0479994c 38EXTERNC int apple_alac_init(int32_t fmtp[12]);
945483d9 39EXTERNC int apple_alac_terminate();
064bd293
MB
40EXTERNC int apple_alac_decode_frame(unsigned char *sampleBuffer, uint32_t bufferLength,
41 unsigned char *dest, int *outsize);
945483d9
MB
42
43#undef EXTERNC
44
45#endif /* __APPLE_ALAC_H */