Changeset 205
- Timestamp:
- Jun 14, 2007, 3:33:51 AM (18 years ago)
- Location:
- sbliveos2/trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified sbliveos2/trunk/drv16/ioctl.cpp ¶
r191 r205 541 541 case DAUDIO_SETPROPERTY: 542 542 { 543 rc = pStream->SetProperty( pDAudioCmd->SetProperty.type, pDAudioCmd->SetProperty.value);543 rc = pStream->SetProperty((INT)pDAudioCmd->SetProperty.type, pDAudioCmd->SetProperty.value); 544 544 break; 545 545 } -
TabularUnified sbliveos2/trunk/drv16/irq.cpp ¶
r159 r205 27 27 #include "irq.hpp" // Object definition 28 28 29 const int NumIrqLevels = 16;29 const int NumIrqLevels = 24; 30 30 31 31 … … 49 49 void far ISR14( void ) { pIrqObject[14]->CallHandlers(); } 50 50 void far ISR15( void ) { pIrqObject[15]->CallHandlers(); } 51 // 13 Jun 07 MF 52 void far ISR16( void ) { pIrqObject[16]->CallHandlers(); } 53 void far ISR17( void ) { pIrqObject[17]->CallHandlers(); } 54 void far ISR18( void ) { pIrqObject[18]->CallHandlers(); } 55 void far ISR19( void ) { pIrqObject[19]->CallHandlers(); } 56 void far ISR20( void ) { pIrqObject[20]->CallHandlers(); } 57 void far ISR21( void ) { pIrqObject[21]->CallHandlers(); } 58 void far ISR22( void ) { pIrqObject[22]->CallHandlers(); } 59 void far ISR23( void ) { pIrqObject[23]->CallHandlers(); } 51 60 52 61 // List of handlers here. … … 68 77 (pfnISR) ISR13, 69 78 (pfnISR) ISR14, 70 (pfnISR) ISR15 79 (pfnISR) ISR15, 80 // 13 Jun 07 MF 81 (pfnISR) ISR16, 82 (pfnISR) ISR17, 83 (pfnISR) ISR18, 84 (pfnISR) ISR19, 85 (pfnISR) ISR20, 86 (pfnISR) ISR21, 87 (pfnISR) ISR22, 88 (pfnISR) ISR23 71 89 }; 72 90 … … 103 121 IRQ::IRQ( unsigned irq_level ) 104 122 { 105 memset( (PVOID) this, 0, sizeof(IRQ) ); // Set all data to 0. 123 // 13 Jun 07 SHL 124 _fmemset( (PVOID) this, 0, sizeof(IRQ) ); // Set all data to 0. 106 125 _usIRQLevel = irq_level; 107 126 pIrqObject[ _usIRQLevel ] = this; -
TabularUnified sbliveos2/trunk/drv16/irq.hpp ¶
r142 r205 51 51 // ###IHV: IRQ sharing flag. Set this to "0" for ISA bus, "1" for PCI 52 52 // PCI and Microchannel environments (where hardware can share an IRQ level. 53 const IRQ_HW_Sharing = 0;53 const IRQ_HW_Sharing = 1; // 13 Jun 07 MF 54 54 55 55 // Max num of int handlers per IRQ level. -
TabularUnified sbliveos2/trunk/drv16/maudio.cpp ¶
r142 r205 25 25 #include <os2medef.h> 26 26 #include <audio.h> 27 #include "..\midi\midi_idc.h" // RTMIDI interfaces, 27 28 #include "midi_idc.h" // RTMIDI interfaces, 28 29 #include "maudio.hpp" 29 30 -
TabularUnified sbliveos2/trunk/drv16/maudio.hpp ¶
r142 r205 29 29 #endif 30 30 31 #include " ..\midi\midi_idc.h"// RTMIDI interfaces, MIDI_NAME_LENGTH31 #include "midi_idc.h" // RTMIDI interfaces, MIDI_NAME_LENGTH 32 32 #include "audiohw.hpp" // Object definition. 33 33 #include "timer.hpp" // Object definition. -
TabularUnified sbliveos2/trunk/drv16/midistrm.cpp ¶
r147 r205 182 182 void MIDISTREAM::_allNotesOff( void ) 183 183 { 184 for ( USHORTnoteNum=0; noteNum < NUM_MidiNotes; ++noteNum)184 for ( BYTE noteNum=0; noteNum < NUM_MidiNotes; ++noteNum) 185 185 if (_notesOn[noteNum]) 186 186 // This note number is playing on one or more channels. 187 187 // Shut the note off on all channels on which it is playing. 188 for ( USHORTmchan=0; mchan < NUM_MidiChannels; ++mchan)188 for ( BYTE mchan=0; mchan < NUM_MidiChannels; ++mchan) 189 189 if (_notesOn[noteNum] & _usBitNumber[mchan]) { 190 190 ((MIDIAUDIO*) pahw)->noteOff( mchan, noteNum, 0 ); -
TabularUnified sbliveos2/trunk/drv16/mpu401.cpp ¶
r151 r205 30 30 #include <string.h> // strcpy(), strcat() 31 31 #include "sizedefs.h" //### NUM_DEVICES, MAX_MPU401 32 #include " ..\midi\midi_idc.h"// RTMIDI i/f32 #include "midi_idc.h" // RTMIDI i/f 33 33 #include "iodelay.h" 34 34 #include "malloc.h" -
TabularUnified sbliveos2/trunk/drv16/rm.cpp ¶
r178 r205 99 99 * allocate resources. 100 100 */ 101 ResourceManager::ResourceManager(ULONG pciId)101 ResourceManager::ResourceManager(ULONG) 102 102 { 103 103 APIRET rc; … … 418 418 int nResources; // Number of resources. 419 419 PRESOURCELIST pRL; // Return value, pointer to resource list 420 // construct ured in the heap.420 // constructed in the heap. 421 421 // Count up number of resources. 422 422 for ( i=0, nResources=0; i<MAX_ISA_Dev_IO; ++i) { … … 438 438 439 439 // Fill in resource list values. 440 _fmemset( (PVOID) pRL, 0, nBytes ); 440 _fmemset( (PVOID) pRL, 0, nBytes ); // 13 Jun 07 SHL 441 441 pRL->Count = nResources; 442 442 … … 485 485 } 486 486 487 return pRL;487 return (NPRESOURCELIST)pRL; 488 488 } 489 489 … … 652 652 { 653 653 APIRET rc; 654 // 13 Jun 07 SHL fixme to check overflow even though unlikely 654 655 USHORT nBytes = 655 sizeof(AHRESOURCE) + (sizeof(HRESOURCE) * pResourceList->Count);656 sizeof(AHRESOURCE) + (sizeof(HRESOURCE) * (USHORT)pResourceList->Count); 656 657 NPAHRESOURCE pahResource = (NPAHRESOURCE) malloc( nBytes ); 657 658 // Handles for allocated resources are saved here. -
TabularUnified sbliveos2/trunk/drv16/rtmidi.hpp ¶
r142 r205 28 28 #include <os2.h> 29 29 #endif 30 #include " ..\midi\midi_idc.h"// RTMIDI interfaces30 #include "midi_idc.h" // RTMIDI interfaces 31 31 #include "maudio.hpp" // MIDIAUDIO 32 32 -
TabularUnified sbliveos2/trunk/include/dbgos2.h ¶
r153 r205 22 22 // 23 23 //****************************************************************************** 24 #ifndef __ COMMDBG_H__25 #define __ COMMDBG_H__24 #ifndef __DBGOS2_H__ 25 #define __DBGOS2_H__ 26 26 27 27 #ifdef __cplusplus … … 50 50 #endif 51 51 52 #endif //__ COMMDBG_H__52 #endif //__DBGOS2_H__ -
TabularUnified sbliveos2/trunk/install/rcstub.c ¶
r192 r205 38 38 UCHAR uDummy = 0; 39 39 40 // 06 Jun 07 SHL 41 VOID APIENTRY __DLLstart_(VOID) 42 { 43 } 40 44 45 #if 0 // 06 Jun 07 SHL 41 46 VOID APIENTRY RCSTUB(VOID) 42 47 { 43 48 } 44 45 49 #endif -
TabularUnified sbliveos2/trunk/runtime/string.c ¶
r142 r205 12 12 #include <string.h> 13 13 14 char *strncpy(char *dst, const char *src, int n)14 char *strncpy(char *dst, const char *src, unsigned int n) 15 15 { 16 16 int i; … … 23 23 24 24 25 char __far *_fstrncpy(char __far *dst, const char __far *src, int n)25 char __far *_fstrncpy(char __far *dst, const char __far *src, unsigned int n) 26 26 { 27 27 int i; … … 33 33 } 34 34 35 int _fstrnicmp(const char __far *string1, const char __far *string2, int n)35 int _fstrnicmp(const char __far *string1, const char __far *string2, unsigned int n) 36 36 { 37 37 int i,a,b; -
TabularUnified sbliveos2/trunk/sblive/cardwo.c ¶
r153 r205 232 232 u8 t = (card_waveout->globalreverb & 0xff) + (wave_out->localreverb & 0xff); 233 233 234 left->send_a = ( t > 255) ? 255 : t;234 left->send_a = ((unsigned)t > 255) ? 255 : t; 235 235 } else { 236 236 left->send_a = 0; … … 240 240 u8 t = (card_waveout->globalchorus & 0xff) + (wave_out->localchorus & 0xff); 241 241 242 left->send_d = ( t > 255) ? 255 : t;242 left->send_d = ((unsigned)t > 255) ? 255 : t; 243 243 } else { 244 244 left->send_d = 0; -
TabularUnified sbliveos2/trunk/sblive/midi.c ¶
r151 r205 287 287 cnt = count; 288 288 289 if (cnt <= 0) {289 if (cnt == 0) { 290 290 if (file->f_flags & O_NONBLOCK) 291 291 return ret ? ret : -EAGAIN;
Note:
See TracChangeset
for help on using the changeset viewer.