Gerald Pfeifer : wineoss.drv: Use AFMT_S24_LE instead of AFMT_S24_PACKED.

Alexandre Julliard julliard at winehq.org
Mon May 9 13:34:45 CDT 2011


Module: wine
Branch: master
Commit: 051b64b66f82801d43016068639468575dc3974e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=051b64b66f82801d43016068639468575dc3974e

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun May  8 02:04:06 2011 +0200

wineoss.drv: Use AFMT_S24_LE instead of AFMT_S24_PACKED.

---

 dlls/wineoss.drv/mmdevdrv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c
index b9af940..64c06cd 100644
--- a/dlls/wineoss.drv/mmdevdrv.c
+++ b/dlls/wineoss.drv/mmdevdrv.c
@@ -525,7 +525,7 @@ static int get_oss_format(const WAVEFORMATEX *fmt)
         case 16:
             return AFMT_S16_LE;
         case 24:
-            return AFMT_S24_PACKED;
+            return AFMT_S24_LE;
         case 32:
             return AFMT_S32_LE;
         }
@@ -1026,7 +1026,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
     }else if(formats & AFMT_S32_LE){
         fmt->Format.wBitsPerSample = 32;
         fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
-    }else if(formats & AFMT_S24_PACKED){
+    }else if(formats & AFMT_S24_LE){
         fmt->Format.wBitsPerSample = 24;
         fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
     }else{




More information about the wine-cvs mailing list