Re: [AD] get volume

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At least this patch should be applied. It's included in get_volume patch. It is not related to get_volume API, but fixes the code and a compiler warning (at the same time, what a deal!).


--
Milan Mimica
http://sparklet.sf.net
Index: src/win/wdsinput.c
===================================================================
--- src/win/wdsinput.c	(revision 5752)
+++ src/win/wdsinput.c	(working copy)
@@ -124,7 +124,7 @@
    HRESULT hr;
 
    /* create the capture buffer */
-   ZeroMemory(&dsc_trybuf, sizeof(DSCBUFFERDESC));
+   ZeroMemory(&dsc_trybuf_desc, sizeof(DSCBUFFERDESC));
    dsc_trybuf_desc.dwSize  = sizeof(DSCBUFFERDESC);
    dsc_trybuf_desc.dwFlags = 0;
    dsc_trybuf_desc.dwBufferBytes = 1024;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/