Debian Codegraph @

utils/aplay/alsa-pcm.h

raw
1 /*
2 * BlueALSA - alsa-pcm.h
3 * Copyright (c) 2016-2023 Arkadiusz Bokowy
4 *
5 * This file is a part of bluez-alsa.
6 *
7 * This project is licensed under the terms of the MIT license.
8 *
9 */
10
11 #pragma once
12 #ifndef BLUEALSA_APLAY_ALSAPCM_H_
13 #define BLUEALSA_APLAY_ALSAPCM_H_
14
15 #include <stdio.h>
16
17 #include <alsa/asoundlib.h>
18
19 int alsa_pcm_open(snd_pcm_t **pcm, const char *name,
20 snd_pcm_format_t format, int channels, int rate,
21 unsigned int *buffer_time, unsigned int *period_time,
22 char **msg);
23
24 void alsa_pcm_dump(snd_pcm_t *pcm, FILE *fp);
25
26 #endif