This file is indexed.

/usr/include/pcaudiolib/audio.h is in libpcaudio-dev 1.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* Audio API.
 *
 * Copyright (C) 2016 Reece H. Dunn
 *
 * This file is part of pcaudiolib.
 *
 * pcaudiolib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * pcaudiolib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with pcaudiolib.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef PCAUDIOLIB_AUDIO_H
#define PCAUDIOLIB_AUDIO_H

#include <stdint.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C"
{
#endif

enum audio_object_format
{
	AUDIO_OBJECT_FORMAT_S8,
	AUDIO_OBJECT_FORMAT_U8,

	AUDIO_OBJECT_FORMAT_S16LE,
	AUDIO_OBJECT_FORMAT_S16BE,
	AUDIO_OBJECT_FORMAT_U16LE,
	AUDIO_OBJECT_FORMAT_U16BE,

	AUDIO_OBJECT_FORMAT_S18LE,
	AUDIO_OBJECT_FORMAT_S18BE,
	AUDIO_OBJECT_FORMAT_U18LE,
	AUDIO_OBJECT_FORMAT_U18BE,

	AUDIO_OBJECT_FORMAT_S20LE,
	AUDIO_OBJECT_FORMAT_S20BE,
	AUDIO_OBJECT_FORMAT_U20LE,
	AUDIO_OBJECT_FORMAT_U20BE,

	AUDIO_OBJECT_FORMAT_S24LE,
	AUDIO_OBJECT_FORMAT_S24BE,
	AUDIO_OBJECT_FORMAT_U24LE,
	AUDIO_OBJECT_FORMAT_U24BE,

	AUDIO_OBJECT_FORMAT_S24_32LE,
	AUDIO_OBJECT_FORMAT_S24_32BE,
	AUDIO_OBJECT_FORMAT_U24_32LE,
	AUDIO_OBJECT_FORMAT_U24_32BE,

	AUDIO_OBJECT_FORMAT_S32LE,
	AUDIO_OBJECT_FORMAT_S32BE,
	AUDIO_OBJECT_FORMAT_U32LE,
	AUDIO_OBJECT_FORMAT_U32BE,

	AUDIO_OBJECT_FORMAT_FLOAT32LE,
	AUDIO_OBJECT_FORMAT_FLOAT32BE,
	AUDIO_OBJECT_FORMAT_FLOAT64LE,
	AUDIO_OBJECT_FORMAT_FLOAT64BE,

	AUDIO_OBJECT_FORMAT_IEC958LE,
	AUDIO_OBJECT_FORMAT_IEC958BE,

	AUDIO_OBJECT_FORMAT_ALAW,
	AUDIO_OBJECT_FORMAT_ULAW,
	AUDIO_OBJECT_FORMAT_ADPCM,
	AUDIO_OBJECT_FORMAT_MPEG,
	AUDIO_OBJECT_FORMAT_GSM,
	AUDIO_OBJECT_FORMAT_AC3,
};

struct audio_object;

int
audio_object_open(struct audio_object *object,
                  enum audio_object_format format,
                  uint32_t rate,
                  uint8_t channels);

void
audio_object_close(struct audio_object *object);

void
audio_object_destroy(struct audio_object *object);

int
audio_object_write(struct audio_object *object,
                   const void *data,
                   size_t bytes);

int
audio_object_drain(struct audio_object *object);

int
audio_object_flush(struct audio_object *object);

const char *
audio_object_strerror(struct audio_object *object,
                      int error);

struct audio_object *
create_audio_device_object(const char *device,
                           const char *application_name,
                           const char *description);

#ifdef __cplusplus
}
#endif

#endif