Annotation of frontvm/hardware/audio.h, revision 1.1

1.1     ! root        1: /*
        !             2:   Hatari - audio.h
        !             3: 
        !             4:   This file is distributed under the GNU Public License, version 2 or at
        !             5:   your option any later version. Read the file gpl.txt for details.
        !             6: */
        !             7: 
        !             8: #ifndef HATARI_AUDIO_H
        !             9: #define HATARI_AUDIO_H
        !            10: 
        !            11: #include <SDL_types.h>
        !            12: 
        !            13: /* Frequency index */
        !            14: enum
        !            15: {
        !            16:   FREQ_11Khz,
        !            17:   FREQ_22Khz,
        !            18:   FREQ_44Khz
        !            19: };
        !            20: 
        !            21: /* Ramp settings to fade sound in/out */
        !            22: enum
        !            23: {
        !            24:   RAMP_HOLD,
        !            25:   RAMP_UP,
        !            26:   RAMP_DOWN
        !            27: };
        !            28: #define  RAMP_UP_VOLUME_LEVEL  0.20f    /* (1.0f/5.f) */
        !            29: #define  RAMP_DOWN_VOLUME_LEVEL  0.20f  /* (1.0f/5.f) */
        !            30: 
        !            31: 
        !            32: extern int SoundPlayBackFrequencies[];
        !            33: extern BOOL bDisableSound;
        !            34: extern BOOL bSoundWorking;
        !            35: extern int OutputAudioFreqIndex;
        !            36: extern int SoundBufferSize;
        !            37: extern int CompleteSndBufIdx;
        !            38: 
        !            39: extern void Call_PlaySFX (unsigned long params);
        !            40: extern void Audio_Reset ();
        !            41: extern void Audio_Init(void);
        !            42: extern void Audio_UnInit(void);
        !            43: extern void Audio_Lock(void);
        !            44: extern void Audio_Unlock(void);
        !            45: extern void Audio_FreeSoundBuffer(void);
        !            46: extern void Audio_SetOutputAudioFreq(int Frequency);
        !            47: extern void Audio_EnableAudio(BOOL bEnable);
        !            48: extern void Audio_WriteSamplesIntoBuffer(Sint8 *pSamples,int Index, int Length, int RampSetting, Sint8 *pDestBuffer);
        !            49: 
        !            50: #endif  /* HATARI_AUDIO_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.