2006-04-24 01:14:18 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : snd.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : sound card detection.
|
|
|
|
*
|
|
|
|
* @author Jan.Wassenberg@stud.uni-karlsruhe.de
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2003-2005 Jan Wassenberg
|
|
|
|
*
|
|
|
|
* Redistribution and/or modification are also permitted under the
|
|
|
|
* terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation (version 2 or later, at your option).
|
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SND_H__
|
|
|
|
#define SND_H__
|
|
|
|
|
|
|
|
const size_t SND_CARD_LEN = 128;
|
2006-07-14 16:00:00 +02:00
|
|
|
/**
|
|
|
|
* description of sound card.
|
|
|
|
**/
|
2006-04-24 01:14:18 +02:00
|
|
|
extern char snd_card[SND_CARD_LEN];
|
|
|
|
|
|
|
|
const size_t SND_DRV_VER_LEN = 256;
|
2006-07-14 16:00:00 +02:00
|
|
|
/**
|
|
|
|
* sound driver identification and version.
|
|
|
|
**/
|
2006-04-24 01:14:18 +02:00
|
|
|
extern char snd_drv_ver[SND_DRV_VER_LEN];
|
|
|
|
|
2006-07-14 16:00:00 +02:00
|
|
|
/**
|
|
|
|
* detect sound card and set the above information.
|
|
|
|
**/
|
2006-04-24 01:14:18 +02:00
|
|
|
extern void snd_detect(void);
|
|
|
|
|
|
|
|
#endif // #ifndef SND_H__
|