Changeset 35487 in vbox for trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
- Timestamp:
- Jan 11, 2011 1:45:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r35353 r35487 1634 1634 ac97Reset (pDevIns); 1635 1635 1636 if (! s->voice_pi)1636 if (!AUD_is_host_voice_in_ok(s->voice_pi)) 1637 1637 LogRel (("AC97: WARNING: Unable to open PCM IN!\n")); 1638 if (! s->voice_mc)1638 if (!AUD_is_host_voice_in_ok(s->voice_mc)) 1639 1639 LogRel (("AC97: WARNING: Unable to open PCM MC!\n")); 1640 if (! s->voice_po)1640 if (!AUD_is_host_voice_out_ok(s->voice_po)) 1641 1641 LogRel (("AC97: WARNING: Unable to open PCM OUT!\n")); 1642 1642 1643 if (!s->voice_pi && !s->voice_po && !s->voice_mc) 1643 if ( !AUD_is_host_voice_in_ok(s->voice_pi) 1644 && !AUD_is_host_voice_out_ok(s->voice_po) 1645 && !AUD_is_host_voice_in_ok(s->voice_mc)) 1644 1646 { 1645 1647 /* Was not able initialize *any* voice. Select the NULL audio driver instead */ … … 1657 1659 "with the consequence that no sound is audible")); 1658 1660 } 1659 else if (!s->voice_pi || !s->voice_po || !s->voice_mc) 1661 else if ( !AUD_is_host_voice_in_ok(s->voice_pi) 1662 || !AUD_is_host_voice_out_ok(s->voice_po) 1663 || !AUD_is_host_voice_in_ok(s->voice_mc)) 1660 1664 { 1661 1665 char szMissingVoices[128]; 1662 1666 size_t len = 0; 1663 if (! s->voice_pi)1667 if (!AUD_is_host_voice_in_ok(s->voice_pi)) 1664 1668 len = RTStrPrintf (szMissingVoices, sizeof(szMissingVoices), "PCM_in"); 1665 if (! s->voice_po)1669 if (!AUD_is_host_voice_out_ok(s->voice_po)) 1666 1670 len += RTStrPrintf (szMissingVoices + len, sizeof(szMissingVoices) - len, len ? ", PCM_out" : "PCM_out"); 1667 if (! s->voice_mc)1671 if (!AUD_is_host_voice_in_ok(s->voice_mc)) 1668 1672 len += RTStrPrintf (szMissingVoices + len, sizeof(szMissingVoices) - len, len ? ", PCM_mic" : "PCM_mic"); 1669 1673
Note:
See TracChangeset
for help on using the changeset viewer.