home *** CD-ROM | disk | FTP | other *** search
/ M.u.C.S. Disc 2000 / MUCS2000.iso / sound / mp2 / src / gem / mp2exit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-24  |  676 b   |  40 lines

  1. #include <tos.h>
  2.  
  3. #include "snddefs.h"
  4. #include "mp2audio.h"
  5.  
  6. /* Functions in this module */
  7. void exit_replay(void);
  8. void pause_replay(void);
  9. void quit_stream(void);
  10.  
  11. /* global variables from mp2audio.c */
  12. extern int replay,fd,file_open;
  13.  
  14. /* Function from mp2extra.c */
  15. extern void mute(int mode);
  16.  
  17. /* Function from mp2file.c */
  18. extern void reset_file(int fd);
  19.  
  20. void exit_replay()
  21. {
  22.     quit_stream();
  23. /*    close_file(fd); */
  24.     reset_file(fd);
  25.     replay = 0;
  26. }
  27.  
  28. void pause_replay()
  29. {
  30.     Dsp_Hf0(1);                /* tell DSP to pause */
  31.     replay = 0;
  32. }
  33.  
  34. void quit_stream()
  35. {
  36.     mute(MUTE);
  37.     sndstatus(SND_RESET); /* Reset sound system */
  38.     mute(MUTE_RESTORE);
  39. }
  40.