home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
SOUNDUTILS
/
audioplay.lzh
/
AUDIOPLAY
/
SRC
/
play.h
< prev
next >
Wrap
Text File
|
1995-04-19
|
2KB
|
84 lines
#ifdef MAIN
#define global
#else
#define global extern
#endif
#include <stdio.h>
#include <types.h>
#include <modes.h>
#include <events.h>
#include <errno.h>
#include <sound.h>
#define MAX_FILES 64 /* maximum files on command line */
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
/* Sun/Dec Audio files */
#define MagicSun 0x2e736e64 /* ".snd" */
#define MagicSunI 0x646e732e /* "dns." */
#define MagicDec 0x2e736400 /* ".sd\0" */
#define MagicDecI 0x0064732e /* "\0ds." */
#define DecDiva 0xffff7f80 /* really a ".sd\0" w/DIVA header */
#define MagicIFF 0x464f524d /* "FORM" */
#define MagicVOC 0x43726561 /* "Crea" */
/* WAV files */
#define MagicRIFF 0x52494646 /* "RIFF" */
#define MagicWAVE 0x57415645 /* "WAVE" */
#define Magicfmt 0x666d7420 /* "fmt " */
#define Magicdata 0x64617461 /* "data" */
#ifndef _TYPES_H
#define _TYPES_H
typedef unsigned int u_int32;
typedef int int32;
typedef u_int32 signal_code;
typedef u_int32 process_id;
typedef u_int32 event_id;
typedef int32 path_id;
#endif
global signal_code sig;
global process_id pid;
global u_int32 sigarrived;
global u_int32 quiet;
global u_int32 force;
global char *file[MAX_FILES];
global event_id eventID;
global u_int32 size, bufferSize, fileCount;
global int32 debug;
void gotsignl();
void vocplay();
#define DEFAULT_BUFFER 100000 /* 100K default buffer size */
#define MINIMUM_BUFFER 10000 /* 10K minimum buffer size */
#define SIG_CODE 234 /* code to get back from _ss_play() */
#ifndef SND_EVENT_NAME
#define SND_EVENT_NAME "mm1_sound"
#define SND_FREE 0
#define SND_SIG_INC -1
#define SND_WAIT_INC 1
#endif