Annotation of uae/src/od-macos/sound.c, revision 1.1.1.2

1.1.1.2 ! root        1:  /*
1.1       root        2:   * UAE - The Un*x Amiga Emulator
1.1.1.2 ! root        3:   *
1.1       root        4:   * Support for Mac OS sound
1.1.1.2 ! root        5:   *
1.1       root        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)
1.1.1.2 ! root       38: {
        !            39:     if (SndNewChannel(&newChannel, sampledSynth, initMono, NULL))
1.1       root       40:        return 0;
                     41:     sndbufsize = 44100;
                     42:     init_sound_table8 ();
                     43: 
                     44:     sndbufpt = buffer0;
                     45:     sound_available = 1;
                     46:     return 1;
                     47: }
                     48: 

unix.superglobalmegacorp.com

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