Changeset 70737 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jan 25, 2018 11:31:09 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r70671 r70737 1988 1988 continue; 1989 1989 1990 #ifdef DEBUG 1990 #ifdef VBOX_STRICT 1991 /* 1992 * Sanity. Make sure that all streams have the same configuration 1993 * to get SB16's DMA transfers right. 1994 * 1995 * SB16 only allows one output configuration per serial data out, 1996 * so check if all streams have the same configuration. 1997 */ 1991 1998 PSB16DRIVER pDrvPrev = RTListNodeGetPrev(&pDrv->Node, SB16DRIVER, Node); 1992 1999 if ( pDrvPrev … … 1994 2001 { 1995 2002 PPDMAUDIOSTREAM pStreamPrev = pDrvPrev->Out.pStream; 1996 AssertPtr(pStreamPrev); 1997 1998 /* 1999 * Sanity. Make sure that all streams have the same configuration 2000 * to get SB16's DMA transfers right. 2001 * 2002 * SB16 only allows one output configuration per serial data out, 2003 * so check if all streams have the same configuration. 2004 */ 2005 AssertMsg(pStream->Cfg.Props.uHz == pStreamPrev->Cfg.Props.uHz, 2006 ("%RU32Hz vs. %RU32Hz\n", pStream->Cfg.Props.uHz, pStreamPrev->Cfg.Props.uHz)); 2007 AssertMsg(pStream->Cfg.Props.cChannels == pStreamPrev->Cfg.Props.cChannels, 2008 ("%RU8 vs. %RU8 channels\n", pStream->Cfg.Props.cChannels, pStreamPrev->Cfg.Props.cChannels)); 2009 AssertMsg(pStream->Cfg.Props.cBits == pStreamPrev->Cfg.Props.cBits, 2010 ("%d vs. %d bits\n", pStream->Cfg.Props.cBits, pStreamPrev->Cfg.Props.cBits)); 2011 AssertMsg(pStream->Cfg.Props.fSigned == pStreamPrev->Cfg.Props.fSigned, 2012 ("%RTbool vs. %RTbool signed\n", pStream->Cfg.Props.fSigned, pStreamPrev->Cfg.Props.fSigned)); 2003 if (pStreamPrev) 2004 { 2005 AssertMsg(pStream->Cfg.Props.uHz == pStreamPrev->Cfg.Props.uHz, 2006 ("%RU32Hz vs. %RU32Hz\n", pStream->Cfg.Props.uHz, pStreamPrev->Cfg.Props.uHz)); 2007 AssertMsg(pStream->Cfg.Props.cChannels == pStreamPrev->Cfg.Props.cChannels, 2008 ("%RU8 vs. %RU8 channels\n", pStream->Cfg.Props.cChannels, pStreamPrev->Cfg.Props.cChannels)); 2009 AssertMsg(pStream->Cfg.Props.cBits == pStreamPrev->Cfg.Props.cBits, 2010 ("%d vs. %d bits\n", pStream->Cfg.Props.cBits, pStreamPrev->Cfg.Props.cBits)); 2011 AssertMsg(pStream->Cfg.Props.fSigned == pStreamPrev->Cfg.Props.fSigned, 2012 ("%RTbool vs. %RTbool signed\n", pStream->Cfg.Props.fSigned, pStreamPrev->Cfg.Props.fSigned)); 2013 } 2013 2014 } 2014 2015 #endif
Note:
See TracChangeset
for help on using the changeset viewer.