kobodl/sound/audiodev.h
Ville Lindholm dbc223eb84
Initial commit
Import existing source tree; original VCS history is no longer available.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-28 16:35:31 +03:00

33 lines
662 B
C

/*
------------------------------------------------------------
audiodev.h: Little silly audio device "class"
------------------------------------------------------------
* Copyright (C) David Olofson, 1999-2001
* This code is released under the terms of the LGPL
*/
#ifndef _AUDIODEV_H_
#define _AUDIODEV_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct audiodev_t
{
const char *devicename;
int outfd, infd;
int mode;
int rate;
int fragmentsize;
int fragments;
} audiodev_t;
void audiodev_init(struct audiodev_t *ad);
int audiodev_open(struct audiodev_t *ad);
void audiodev_close(struct audiodev_t *ad);
#ifdef __cplusplus
};
#endif
#endif