Ignore:
Timestamp:
Apr 24, 2000, 9:45:21 PM (25 years ago)
Author:
sandervl
Message:

Fixed wave volume, recording gain + wave recording

File:
1 edited

Legend:

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

    r142 r147  
    5656#include <sbversion.h>
    5757
     58#ifndef PCI_VENDOR_ID_CREATIVE
     59#define PCI_VENDOR_ID_CREATIVE 0x1102UL
     60#endif
     61
     62#ifndef PCI_DEVICE_ID_CREATIVE_EMU10K1
     63#define PCI_DEVICE_ID_CREATIVE_EMU10K1 0x0002UL
     64#endif
     65#define PCI_ID  ((PCI_VENDOR_ID_CREATIVE<<16UL)|PCI_DEVICE_ID_CREATIVE_EMU10K1)
     66
    5867// Default MIDI timer interval, milliseconds.
    5968static USHORT MIDI_TimerInterval = 10;
     
    6271static char szCopyRight[] = "Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)";
    6372static char NEWLINE[]     = "\r\n";
     73static char szSBLiveNotFound[] = "SB Live! hardware not detected!";
     74static char szAltF1[]     = "Reboot, press Alt-F1 during OS/2 startup and select Enable Hardware Detection";
    6475
    6576//
     
    122133      memcpy(phdr->abName,szCL_DevName,8);   // yes, copy it to the dev header
    123134
    124    // Resources identified by the Resource Manager are saved into the
    125    // *pResourcesWSS and *pResourcesICS objects, repectively.
    126 
    127135   pRM = new ResourceManager();        // Create the RM object.
    128136   if (! pRM) {
     
    131139   else if (pRM->getState() != rmDriverCreated) {
    132140      return;
     141   }
     142
     143   //SvL: Check if SB Live hardware has been detected by the resource manager
     144   //     If not, tell user to reboot, press alt-f1 and enable hardware detection
     145   if(!pRM->bIsDevDetected(PCI_ID, SEARCH_ID_DEVICEID, TRUE)) {
     146        USHORT result;
     147
     148        DosWrite(1, (VOID FAR*)szSBLiveNotFound, strlen(szSBLiveNotFound), &result);
     149        DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result);
     150        DosWrite(1, (VOID FAR*)szAltF1, sizeof(szAltF1), &result);
     151        DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result);
     152        return;
    133153   }
    134154
Note: See TracChangeset for help on using the changeset viewer.