Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
23
 CVS :        $Id: sound.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1.1.1 $
27
 Last update: $Date: 2002-03-29 14:12:51 $
28
 ------------
29
 
30
**/
31
 
32
/*
33
 * Copyright (C) 2000 Luca Abeni
34
 *
35
 * This program is free software; you can redistribute it and/or modify
36
 * it under the terms of the GNU General Public License as published by
37
 * the Free Software Foundation; either version 2 of the License, or
38
 * (at your option) any later version.
39
 *
40
 * This program is distributed in the hope that it will be useful,
41
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
42
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43
 * GNU General Public License for more details.
44
 *
45
 * You should have received a copy of the GNU General Public License
46
 * along with this program; if not, write to the Free Software
47
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
48
 *
49
 */
50
 
51
/* Project:     HARTIK 3.0 Sound Library                        */
52
/* Description: Hard Real TIme Kernel for 8086 compatible       */
53
/* Author:      Luca Abeni                                      */
54
/* Date:        5/12/1997                                       */
55
 
56
/* File:        Sound.H                                         */
57
/* Revision:    3.0                                             */
58
 
59
 
60
#include <drivers/dma.h>
61
 
62
#ifndef __SOUND_H__
63
#define __SOUND_H__
64
 
65
#ifdef __cplusplus
66
extern "C" {
67
#endif
68
#define ENABLE 1
69
#define DISABLE 0
70
 
71
#define PIO_OP          0x00
72
#define DMA_OP          0x01
73
 
74
#define PCM8            0x00
75
#define PCM16           0x02
76
 
77
#define SYNCH           0x00
78
#define ASYNCH          0x04
79
 
80
#define MYFUN           0x08
81
#define NOBUFF          0x10
82
 
83
#define STATBUFF        0x00
84
#define DYNBUFF         0x20
85
 
86
#define IN              0
87
#define OUT             1
88
 
89
 
90
#define BUFFSIZE 0xFFFF /* esattamente un segmento */
91
#define TICK /*91*/ 100
92
 
93
void sound_setfun(int (*infun)(void *rawbuff), int (*outfun)(void *rawbuff));
94
int sound_sample(BYTE *buff, DWORD sps, DWORD len, BYTE t, TASK_MODEL *m);
95
int sound_play(BYTE *buff, DWORD sps, DWORD len, BYTE t, TASK_MODEL *m);
96
int sound_wait(void);
97
void sound_stop(void);
98
int sound_init(WORD rawbuffsize, TASK_MODEL *m);
99
void sound_info(void);
100
int dummyfun1(struct dma_buff *d);
101
int dummyfun2(struct dma_buff *d);
102
 
103
#ifdef __cplusplus
104
 
105
};
106
 
107
#endif
108
 
109
 
110
 
111
#endif
112