Annotation of hatari/src/includes/audio.h, revision 1.1.1.4

1.1       root        1: /*
1.1.1.4 ! root        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.
1.1       root        6: */
                      7: 
1.1.1.4 ! root        8: #ifndef HATARI_AUDIO_H
        !             9: #define HATARI_AUDIO_H
        !            10: 
        !            11: #include <SDL_types.h>
        !            12: 
        !            13: /* Frequency index */
        !            14: enum
        !            15: {
1.1       root       16:   FREQ_11Khz,
                     17:   FREQ_22Khz,
                     18:   FREQ_44Khz
                     19: };
                     20: 
1.1.1.4 ! root       21: /* Ramp settings to fade sound in/out */
        !            22: enum
        !            23: {
1.1       root       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[];
1.1.1.2   root       33: extern BOOL bDisableSound;
                     34: extern BOOL bSoundWorking;
1.1       root       35: extern int OutputAudioFreqIndex;
1.1.1.4 ! root       36: extern int SoundBufferSize;
        !            37: extern int CompleteSndBufIdx;
1.1       root       38: 
1.1.1.2   root       39: extern void Audio_Init(void);
                     40: extern void Audio_UnInit(void);
1.1.1.4 ! root       41: extern void Audio_Lock(void);
        !            42: extern void Audio_Unlock(void);
1.1.1.2   root       43: extern void Audio_FreeSoundBuffer(void);
                     44: extern void Audio_SetOutputAudioFreq(int Frequency);
1.1.1.4 ! root       45: extern void Audio_EnableAudio(BOOL bEnable);
        !            46: extern void Audio_WriteSamplesIntoBuffer(Sint8 *pSamples,int Index, int Length, int RampSetting, Sint8 *pDestBuffer);
        !            47: 
        !            48: #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.