59 lines
2.1 KiB
C
59 lines
2.1 KiB
C
/*
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _RBAUDIO_H
|
|
#define _RBAUDIO_H
|
|
|
|
#define RBA_MEDIA_CHANGED -1
|
|
|
|
typedef struct _RBACHANNELCTL {
|
|
unsigned int out0in, out0vol;
|
|
unsigned int out1in, out1vol;
|
|
unsigned int out2in, out2vol;
|
|
unsigned int out3in, out3vol;
|
|
} RBACHANNELCTL;
|
|
|
|
|
|
#if defined(__NT__)
|
|
extern void RBAInit(void); //drive a == 0, drive b == 1
|
|
#else
|
|
extern void RBAInit(ubyte cd_drive_num); //drive a == 0, drive b == 1
|
|
#endif
|
|
extern void RBARegisterCD(void);
|
|
extern long RBAGetDeviceStatus(void);
|
|
extern int RBAPlayTrack(int track);
|
|
extern int RBAPlayTracks(int first, int last); //plays tracks first through last, inclusive
|
|
extern int RBACheckMediaChange();
|
|
extern long RBAGetHeadLoc(int *min, int *sec, int *frame);
|
|
extern int RBAPeekPlayStatus(void);
|
|
extern void RBAStop(void);
|
|
extern void RBASetStereoAudio(RBACHANNELCTL *channels);
|
|
extern void RBASetQuadAudio(RBACHANNELCTL *channels);
|
|
extern void RBAGetAudioInfo(RBACHANNELCTL *channels);
|
|
extern void RBASetChannelVolume(int channel, int volume);
|
|
extern void RBASetVolume(int volume);
|
|
extern int RBAEnabled(void);
|
|
extern void RBADisable(void);
|
|
extern void RBAEnable(void);
|
|
extern int RBAGetNumberOfTracks(void);
|
|
extern void RBAPause();
|
|
extern int RBAResume();
|
|
|
|
//return the track number currently playing. Useful if RBAPlayTracks()
|
|
//is called. Returns 0 if no track playing, else track number
|
|
int RBAGetTrackNum();
|
|
|
|
#endif
|