/[qemu]/qemu/hw/sb16.c
ViewVC logotype

Diff of /qemu/hw/sb16.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by bellard, Sun Nov 7 18:04:02 2004 UTC revision 1.12 by bellard, Tue Nov 9 23:08:30 2004 UTC
# Line 23  Line 23 
23   */   */
24  #include "vl.h"  #include "vl.h"
25    
 /* #define DEBUG */  
 #define AUDIO_CAP "sb16"  
 #include "audio/audio.h"  
   
26  #define LENOFA(a) ((int) (sizeof(a)/sizeof(a[0])))  #define LENOFA(a) ((int) (sizeof(a)/sizeof(a[0])))
27    
28    #define dolog(...) AUD_log ("sb16", __VA_ARGS__)
29    #ifdef DEBUG
30    #define ldebug(...) dolog (__VA_ARGS__)
31    #else
32    #define ldebug(...)
33    #endif
34    
35    /* #define DEBUG */
36  /* #define DEBUG_SB16_MOST */  /* #define DEBUG_SB16_MOST */
37    
38  #define IO_READ_PROTO(name)                             \  #define IO_READ_PROTO(name)                             \
# Line 511  static void command (SB16State *s, uint8 Line 515  static void command (SB16State *s, uint8
515      return;      return;
516    
517   warn:   warn:
518      dolog ("warning command %#x,%d is not trully understood yet\n",      dolog ("warning: command %#x,%d is not trully understood yet\n",
519             cmd, s->needed_bytes);             cmd, s->needed_bytes);
520      s->cmd = cmd;      s->cmd = cmd;
521      return;      return;
# Line 1172  static int SB_load (QEMUFile *f, void *o Line 1176  static int SB_load (QEMUFile *f, void *o
1176      qemu_get_be32s (f, &s->mixer_nreg);      qemu_get_be32s (f, &s->mixer_nreg);
1177      qemu_get_buffer (f, s->mixer_regs, 256);      qemu_get_buffer (f, s->mixer_regs, 256);
1178    
1179      if (s->voice)      if (s->voice) {
1180          AUD_reset (s->voice);          AUD_close (s->voice);
1181            s->voice = NULL;
1182        }
1183    
1184      if (s->dma_running) {      if (s->dma_running) {
1185          if (s->freq)          if (s->freq)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26