]> git.proxmox.com Git - qemu.git/blobdiff - audio/dsound_template.h
hw/i386/Makefile.obj: use $(PYTHON) to run .py scripts consistently
[qemu.git] / audio / dsound_template.h
index d517c90ce228d2d65f9e810bcecbe95cc1aa5e3c..8b37d16a8c3d4ed929a02ccc15a7ea9a174f9c6e 100644 (file)
@@ -174,16 +174,16 @@ static void dsound_fini_out (HWVoiceOut *hw)
 }
 
 #ifdef DSBTYPE_IN
-static int dsound_init_in (HWVoiceIn *hw, audsettings_t *as)
+static int dsound_init_in (HWVoiceIn *hw, struct audsettings *as)
 #else
-static int dsound_init_out (HWVoiceOut *hw, audsettings_t *as)
+static int dsound_init_out (HWVoiceOut *hw, struct audsettings *as)
 #endif
 {
     int err;
     HRESULT hr;
     dsound *s = &glob_dsound;
     WAVEFORMATEX wfx;
-    audsettings_t obt_as;
+    struct audsettings obt_as;
 #ifdef DSBTYPE_IN
     const char *typ = "ADC";
     DSoundVoiceIn *ds = (DSoundVoiceIn *) hw;
@@ -197,7 +197,7 @@ static int dsound_init_out (HWVoiceOut *hw, audsettings_t *as)
 #endif
 
     if (!s->FIELD2) {
-        dsound_logerr ("Attempt to initialize voice without " NAME2 " object");
+        dolog ("Attempt to initialize voice without " NAME2 " object\n");
         return -1;
     }
 
@@ -285,7 +285,9 @@ static int dsound_init_out (HWVoiceOut *hw, audsettings_t *as)
 }
 
 #undef NAME
+#undef NAME2
 #undef TYPE
 #undef IFACE
 #undef BUFPTR
 #undef FIELD
+#undef FIELD2