36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* This file is part of vban_receptor.
|
|
* Copyright (c) 2015 by Benoît Quiniou <quiniouben@yahoo.fr>
|
|
*
|
|
* vban_receptor 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.
|
|
*
|
|
* vban_receptor 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 vban_receptor. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __AUDIO_H__
|
|
#define __AUDIO_H__
|
|
|
|
#include "vban.h"
|
|
#include <alsa/asoundlib.h>
|
|
#include <stddef.h>
|
|
#include <errno.h>
|
|
|
|
struct audio_t;
|
|
typedef struct audio_t* audio_handle_t;
|
|
|
|
int audio_init(audio_handle_t* handle, unsigned char quality);
|
|
int audio_release(audio_handle_t* handle);
|
|
|
|
int audio_process_packet(audio_handle_t handle, char const* buffer, int size);
|
|
|
|
#endif /*__AUDIO_H__*/
|