Ignore:
Timestamp:
Apr 30, 2001, 11:08:00 PM (24 years ago)
Author:
sandervl
Message:

DirectAudio interface updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/drv16/init.cpp

    r176 r178  
    7474static char NEWLINE[]     = "\r\n";
    7575static char szSBLiveNotFound[] = "SB Live! hardware not detected!";
     76static char szSBLiveAllocResFailed1[] = "Another device driver was granted exclusive access to IRQ ";
     77static char szSBLiveAllocResFailed2[] = "Unable to allocate hardware resources! Aborting...";
    7678static char szSBLiveConfig1[]  = "SB Live! configuration: IRQ ";
    7779static char szSBLiveConfig2[]  = ", IO Port 0x";
     
    157159   if ((!pResources) || pResources->isEmpty()) {
    158160        goto hardware_notfound;
     161   }
     162   if (pRM->getState() == rmAllocFailed) {
     163        USHORT result;
     164
     165        DosWrite(1, (VOID FAR*)szSBLiveAllocResFailed1, sizeof(szSBLiveAllocResFailed1)-1, &result);
     166        DecWordToASCII(digit, (USHORT)pResources->uIRQLevel[0], 0);
     167        DosWrite(1, (VOID FAR*)digit, strlen(digit), &result);
     168        DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result);
     169        DosWrite(1, (VOID FAR*)szSBLiveAllocResFailed2, sizeof(szSBLiveAllocResFailed2)-1, &result);
     170        DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result);
     171        DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result);
     172        return;
    159173   }
    160174
Note: See TracChangeset for help on using the changeset viewer.