Fixed error messages.
This commit is contained in:
parent
3747221dfa
commit
cb1f2c43f2
|
@ -341,7 +341,7 @@ static DWORD wodWrite(WORD wDevID, LPWAVEHDR lpWaveHdr, DWORD dwSize)
|
|||
count = write (WOutDev[wDevID].unixdev, lpData, lpWaveHdr->dwBufferLength);
|
||||
TRACE(wave,"write returned count %u !\n",count);
|
||||
if (count != lpWaveHdr->dwBufferLength) {
|
||||
WARN(wave, " error writting !\n");
|
||||
WARN(wave, " error writing !\n");
|
||||
return MMSYSERR_NOTENABLED;
|
||||
}
|
||||
WOutDev[wDevID].dwTotalPlayed += count;
|
||||
|
|
|
@ -2099,12 +2099,12 @@ HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUn
|
|||
audiofd = open("/dev/audio",O_WRONLY);
|
||||
if (audiofd == -1) {
|
||||
if (errno == ENODEV) {
|
||||
TRACE(dsound, "No sound hardware\n");
|
||||
MSG("No sound hardware found.\n");
|
||||
return DSERR_NODRIVER;
|
||||
} else if (errno == EBUSY) {
|
||||
TRACE(dsound, "Sound device busy, will keep trying\n");
|
||||
MSG("Sound device busy, will keep trying.\n");
|
||||
} else {
|
||||
TRACE(dsound, "Unexpected error while checking for sound support\n");
|
||||
MSG("Unexpected error while checking for sound support.\n");
|
||||
return DSERR_GENERIC;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue