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

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 "options.h"
                     13: #include "memory.h"
                     14: #include "custom.h"
                     15: #include "audio.h"
                     16: #include "gensound.h"
                     17: #include "sounddep/sound.h"
                     18: #include "events.h"
                     19: 
                     20: SndChannelPtr newChannel;
                     21: ExtSoundHeader theSndBuffer;
                     22: SndCommand theCmd;
                     23: int sndbufsize;
                     24: 
                     25: /* The buffer is too large... */
                     26: uae_u16 buffer0[44100], buffer1[44100], *sndbufpt;
                     27: 
                     28: int have_sound;
                     29: int nextbuf=0;
                     30: Boolean sFlag=true;
                     31: 
                     32: void close_sound(void)
                     33: {
                     34: }
                     35: 
                     36: int init_sound (void)
1.1.1.2   root       37: {
                     38:     if (SndNewChannel(&newChannel, sampledSynth, initMono, NULL))
1.1       root       39:        return 0;
                     40:     sndbufsize = 44100;
                     41:     init_sound_table8 ();
                     42: 
                     43:     sndbufpt = buffer0;
                     44:     sound_available = 1;
                     45:     return 1;
                     46: }
                     47: 

unix.superglobalmegacorp.com

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