2008-05-24 08:59:35 +00:00
|
|
|
/*
|
|
|
|
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
|
2013-02-24 02:39:48 +00:00
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
2008-05-24 08:59:35 +00:00
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _RBAUDIO_H
|
|
|
|
#define _RBAUDIO_H
|
|
|
|
|
|
|
|
#define RBA_MEDIA_CHANGED -1
|
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2013-12-22 22:03:07 +00:00
|
|
|
struct RBACHANNELCTL
|
|
|
|
{
|
2008-05-24 08:59:35 +00:00
|
|
|
unsigned int out0in, out0vol;
|
|
|
|
unsigned int out1in, out1vol;
|
|
|
|
unsigned int out2in, out2vol;
|
|
|
|
unsigned int out3in, out3vol;
|
2013-12-22 22:03:07 +00:00
|
|
|
};
|
2008-05-24 08:59:35 +00:00
|
|
|
|
2008-11-14 16:56:40 +00:00
|
|
|
extern void RBAInit(void);
|
|
|
|
extern void RBAExit();
|
2008-05-24 08:59:35 +00:00
|
|
|
extern long RBAGetDeviceStatus(void);
|
|
|
|
extern int RBAPlayTrack(int track);
|
2009-03-03 12:55:27 +00:00
|
|
|
extern int RBAPlayTracks(int first, int last, void (*hook_finished)(void)); //plays tracks first through last, inclusive
|
2008-05-24 08:59:35 +00:00
|
|
|
extern int RBACheckMediaChange();
|
|
|
|
extern long RBAGetHeadLoc(int *min, int *sec, int *frame);
|
|
|
|
extern int RBAPeekPlayStatus(void);
|
|
|
|
extern void RBAStop(void);
|
2008-06-15 08:50:05 +00:00
|
|
|
extern void RBAEjectDisk(void);
|
2008-05-24 08:59:35 +00:00
|
|
|
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);
|
2009-03-03 12:55:27 +00:00
|
|
|
extern void RBACheckFinishedHook();
|
2008-05-24 08:59:35 +00:00
|
|
|
extern void RBAPause();
|
|
|
|
extern int RBAResume();
|
2008-06-15 08:50:05 +00:00
|
|
|
extern int RBAPauseResume();
|
2008-05-24 08:59:35 +00:00
|
|
|
|
|
|
|
//return the track number currently playing. Useful if RBAPlayTracks()
|
|
|
|
//is called. Returns 0 if no track playing, else track number
|
|
|
|
int RBAGetTrackNum();
|
|
|
|
|
|
|
|
// get the cddb discid for the current cd.
|
|
|
|
unsigned long RBAGetDiscID();
|
|
|
|
|
2009-03-03 12:55:27 +00:00
|
|
|
// List the tracks on the CD
|
|
|
|
void RBAList(void);
|
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|
|
|
|
|
2008-05-24 08:59:35 +00:00
|
|
|
#endif
|