File: sound.h

package info (click to toggle)
wing 0.7-31
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 2,732 kB
  • sloc: cpp: 2,526; sh: 65; makefile: 14
file content (40 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _STREAM_H
#define _STREAM_H

#include <stdio.h>
#include <string.h>
#include <allegro.h>
#include "constants.h"

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Stream.h																				        *
 *                                                                           *
 * These functions deal with the streaming audio used to play the background *
 * music during the game. There is a load function, a song select, an unload *
 * and a callback that is used to fetch new song data								  *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

typedef struct WFXSTREAM
{
  char sig[10];
  int len;
  int bits;
  int stereo;
  int freq;
  int bps;
  int played;
} WFXSTREAM;

extern AUDIOSTREAM *stream;
extern FILE        *stream_file;
extern WFXSTREAM    wfx;
extern int 			stream_vol;
extern int 			sample_vol;

void install_stream();
void stream_start();
void stream_select_mfx( char *name );
void stream_stop();


#endif