File:  [Tom Morton FrontierVM] / frontvm / hardware / audio.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:57:25 2018 UTC (8 years, 2 months ago) by root
Branches: frontvm, MAIN
CVS tags: frontvm2-20061120, HEAD
Tom Morton

/*
  Hatari - audio.h

  This file is distributed under the GNU Public License, version 2 or at
  your option any later version. Read the file gpl.txt for details.
*/

#ifndef HATARI_AUDIO_H
#define HATARI_AUDIO_H

#include <SDL_types.h>

/* Frequency index */
enum
{
  FREQ_11Khz,
  FREQ_22Khz,
  FREQ_44Khz
};

/* Ramp settings to fade sound in/out */
enum
{
  RAMP_HOLD,
  RAMP_UP,
  RAMP_DOWN
};
#define  RAMP_UP_VOLUME_LEVEL  0.20f    /* (1.0f/5.f) */
#define  RAMP_DOWN_VOLUME_LEVEL  0.20f  /* (1.0f/5.f) */


extern int SoundPlayBackFrequencies[];
extern BOOL bDisableSound;
extern BOOL bSoundWorking;
extern int OutputAudioFreqIndex;
extern int SoundBufferSize;
extern int CompleteSndBufIdx;

extern void Call_PlaySFX ();
extern void Audio_Reset ();
extern void Audio_Init(void);
extern void Audio_UnInit(void);
extern void Audio_Lock(void);
extern void Audio_Unlock(void);
extern void Audio_FreeSoundBuffer(void);
extern void Audio_SetOutputAudioFreq(int Frequency);
extern void Audio_EnableAudio(BOOL bEnable);
extern void Audio_WriteSamplesIntoBuffer(Sint8 *pSamples,int Index, int Length, int RampSetting, Sint8 *pDestBuffer);

#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.