|
|
1.1 ! root 1: /* ! 2: * UAE - The Un*x Amiga Emulator ! 3: * ! 4: * Support for Mac OS sound ! 5: * ! 6: * Copyright 1996 Ernesto Corvi ! 7: */ ! 8: ! 9: #include "sysconfig.h" ! 10: #include "sysdeps.h" ! 11: ! 12: #include "config.h" ! 13: #include "options.h" ! 14: #include "memory.h" ! 15: #include "custom.h" ! 16: #include "audio.h" ! 17: #include "gensound.h" ! 18: #include "sounddep/sound.h" ! 19: #include "events.h" ! 20: ! 21: SndChannelPtr newChannel; ! 22: ExtSoundHeader theSndBuffer; ! 23: SndCommand theCmd; ! 24: int sndbufsize; ! 25: ! 26: /* The buffer is too large... */ ! 27: uae_u16 buffer0[44100], buffer1[44100], *sndbufpt; ! 28: ! 29: int have_sound; ! 30: int nextbuf=0; ! 31: Boolean sFlag=true; ! 32: ! 33: void close_sound(void) ! 34: { ! 35: } ! 36: ! 37: int init_sound (void) ! 38: { ! 39: if (SndNewChannel(&newChannel, sampledSynth, initMono, NULL)) ! 40: return 0; ! 41: sndbufsize = 44100; ! 42: init_sound_table8 (); ! 43: ! 44: sndbufpt = buffer0; ! 45: sound_available = 1; ! 46: return 1; ! 47: } ! 48:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.