view src/audio/dc/aica.h @ 960:eec28a5278be

Date: Sat, 9 Oct 2004 02:46:18 +0300 (EEST) From: Hannu Savolainen Subject: SDL uses obsolete OSS features I was trying to compile SDL against the latest OSS version. It appeared that SDL 1.2.7 is using a very old SOUND_PCM_WRITE_RATE ioctl that is obsolete and has been removed from OSS. The right ioctl to call is SNDCTL_DSP_SPEED. Attached is a patch (works with all OSS versions).
author Sam Lantinga <slouken@libsdl.org>
date Sat, 09 Oct 2004 22:11:45 +0000
parents dad72daf44b3
children d910939febfa
line wrap: on
line source

#ifndef _AICA_H_
#define _AICA_H_

#define	AICA_MEM	0xa0800000

#define SM_8BIT		1
#define SM_16BIT	0
#define SM_ADPCM	2

void aica_play(int ch,int mode,unsigned long smpptr,int looptst,int loopend,int freq,int vol,int pan,int loopflag);
void aica_stop(int ch);
void aica_vol(int ch,int vol);
void aica_pan(int ch,int pan);
void aica_freq(int ch,int freq);
int aica_get_pos(int ch);

#endif