Subversion Repositories Games.Rick Dangerous

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
/*
2
 * src/syssnd.h
3
 *
4
 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
5
 *
6
 * The use and distribution terms for this software are contained in the file
7
 * named README, which can be found in the root of this distribution. By
8
 * using this software in any fashion, you are agreeing to be bound by the
9
 * terms of this license.
10
 *
11
 * You must not remove this notice, or any other, from this software.
12
 */
13
 
14
#ifndef _SYSSND_H
15
#define _SYSSND_H
16
 
17
#include "system.h"
18
 
19
/* 8-bit mono at 22050Hz */
20
#define SYSSND_FREQ 22050
21
#define SYSSND_CHANNELS 1
22
#define SYSSND_MAXVOL 10
23
#define SYSSND_MIXCHANNELS 8
24
/* MIXSAMPLES: 256 is too low on Windows. 512 means ~20 mix per second at 11025Hz */
25
/* MIXSAMPLES: ?? at 22050Hz */
26
#define SYSSND_MIXSAMPLES 1024
27
 
28
typedef struct
29
{
30
   sound_t *snd;
31
   U8 *buf;
32
   U32 len;
33
   S8 loop;
34
} channel_t;
35
 
36
#endif /* _SYSSND_H */