Author: LaTeX (mail.ase2i.fr)
Date: 07-23-2001 13:02
/********************************************************/
/* Ce fichier est destine a devenir l'entete d'une */
/* bibliotheque de fonctions pour gerer les sons sur */
/* machines de type STE. */
/* Frederic Dussin, 10 Mai 1998. */
/* derniere mise a jour : 27 Aout 1998 */
/********************************************************/
/********************************************************/
/* This file was originaly designed to be the header */
/* file of a C library to deal with STE sound system. */
/* Unfortunatly I never had time to learn MFP68901 */
/* programation so it remained as this and some */
/* functions are missing to be a full STE sound drive */
/* library. */
/* Frederic Dussin, 10 May 1998. */
/* Last update : 27 August 1998 */
/* English translation : 22 July 2001 */
/* This is public domain, Have fun with it ! */
/********************************************************/
/* STESOUND.H */
# ifndef STESOUND_H
# define STESOUND_H
/* Those are the play modes available */
typedef enum _PlayMode { STESOUND_NO_SOUND, STESOUND_PLAY_UNIQUE, STESOUND_NO_SOUND_LOOP, STESOUND_PLAY_LOOP } STESOUND_PlayMode;
/* Those are the polyphonic modes available */
typedef enum _Stereo { STESOUND_ON, STESOUND_OFF = 0x80 } STESOUND_Stereo;
/* Those are the sample rates available */
typedef enum _Frequency { STESOUND_BASSE, STESOUND_VOCALE, STESOUND_RADIO, STESOUND_CD } STESOUND_Frequency;
/* Those are the input selections available */
typedef enum _Chanel { STESOUND_NO_CHANEL, STESOUND_ALL_CHANEL, STESOUND_STE_ONLY, STESOUND_EXTERN_CHANEL } STESOUND_Chanel;
/* Set sample rate */
STESOUND_Frequency STESOUND_SetFrequency ( STESOUND_Frequency frequency );
/* Get sample rate */
STESOUND_Frequency STESOUND_GetFrequency ( void );
/* Set specific play mode */
void STESOUND_PlayLoop ( void );
void STESOUND_Play ( void );
void STESOUND_Stop ( void );
/* Set any play mode (same result as above) */
STESOUND_PlayMode STESOUND_SetPlayMode ( STESOUND_PlayMode mode );
/* Get the actual play mode */
STESOUND_PlayMode STESOUND_GetPlayMode( void );
/* Set and get sample start, stop and current addresses */
void* STESOUND_SetStart ( void* adress );
void* STESOUND_GetStart ( void );
void* STESOUND_SetStop ( void* adress );
void* STESOUND_GetStop ( void );
void* STESOUND_SetCurrent ( void* position );
void* STESOUND_GetCurrent ( void );
/* Set an get polyphonic mode */
STESOUND_Stereo STESOUND_SetStereo ( STESOUND_Stereo mode );
STESOUND_Stereo STESOUND_GetStereo ( void );
/* Set LMC1992 volume controls (any of them) */
int STESOUND_SetRightFrontVolume ( int volume );
int STESOUND_SetLeftFrontVolume ( int volume );
int STESOUND_SetRightRearVolume ( int volume );
int STESOUND_SetLeftRearVolume ( int volume );
int STESOUND_SetMainVolume ( int volume );
/* Set LMC1992 tone controls (any of them) */
int STESOUND_SetTreeble ( int treeble );
int STESOUND_SetBass ( int bass );
/* Set LMC1992 input channel */
STESOUND_Chanel STESOUND_SetChanel ( STESOUND_Chanel chanel );
# endif
|