home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / Modules / sound_null.c < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-19  |  905 b   |  72 lines

  1. #include "v9t9_common.h"
  2. #include "sound.h"
  3.  
  4. static      vmResult
  5. nullspeaker_detect(void)
  6. {
  7.     return vmOk;
  8. }
  9.  
  10. static      vmResult
  11. nullspeaker_init(void)
  12. {
  13.     return vmOk;
  14. }
  15.  
  16. static      vmResult
  17. nullspeaker_term(void)
  18. {
  19.     return vmOk;
  20. }
  21.  
  22. static      vmResult
  23. nullspeaker_enable(void)
  24. {
  25.     return vmOk;
  26. }
  27.  
  28. static      vmResult
  29. nullspeaker_disable(void)
  30. {
  31.     return vmOk;
  32. }
  33.  
  34. static      vmResult
  35. nullspeaker_restart(void)
  36. {
  37.     logger(LOG_WARN|LOG_USER, "No sound driver loaded\n");
  38.     return vmOk;
  39. }
  40.  
  41. static      vmResult
  42. nullspeaker_restop(void)
  43. {
  44.     return vmOk;
  45. }
  46.  
  47. static vmSoundModule nullSoundModule = {
  48.     3,
  49.     NULL,
  50.     NULL,
  51.     NULL
  52. };
  53.  
  54. vmModule    nullSound = {
  55.     3,
  56.     "Null sound",
  57.     "sndNull",
  58.  
  59.     vmTypeSound,
  60.     vmFlagsExclusive,
  61.  
  62.     nullspeaker_detect,
  63.     nullspeaker_init,
  64.     nullspeaker_term,
  65.     nullspeaker_enable,
  66.     nullspeaker_disable,
  67.     nullspeaker_restart,
  68.     nullspeaker_restop,
  69.  
  70.     {(vmGenericModule *) & nullSoundModule}
  71. };
  72.