Changeset 553
- Timestamp:
- Jul 27, 2011, 7:54:48 PM (14 years ago)
- Location:
- cmedia/trunk
- Files:
-
- 12 edited
-
Cmpciset/cmpciset.c (modified) (1 diff)
-
Drv16/fmdo.cpp (modified) (3 diffs)
-
Drv16/irq.hpp (modified) (1 diff)
-
Drv16/log.cpp (modified) (4 diffs)
-
Drv16/midimsg.hpp (modified) (2 diffs)
-
Drv16/midistrm.hpp (modified) (1 diff)
-
Drv16/mpu401.cpp (modified) (7 diffs)
-
Drv16/sizedefs.h (modified) (1 diff)
-
Drv16/stream.cpp (modified) (1 diff)
-
Drv16/waudio.cpp (modified) (1 diff)
-
Install/rcstub.c (modified) (1 diff)
-
Runtime/string.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cmedia/trunk/Cmpciset/cmpciset.c
r354 r553 28 28 #include <malloc.h> 29 29 30 #if defined(__BORLANDC__) || __WATCOMC__ < 1200 30 31 #include "warp4.h" 31 32 #endif 32 33 33 34 //#define DEBUG -
cmedia/trunk/Drv16/fmdo.cpp
r354 r553 478 478 * Standard MIDI channel status command - unimplemented. 479 479 */ 480 v irtual void FMSYNTH::polyphonicPressure( BYTE mchan, BYTE note, BYTE value )480 void FMSYNTH::polyphonicPressure( BYTE mchan, BYTE note, BYTE value ) 481 481 { 482 482 BYTE dummy; // Suppress warnings about parms not used. … … 489 489 * Standard MIDI channel status command - unimplemented. 490 490 */ 491 v irtual void FMSYNTH::channelPressure( BYTE mchan, BYTE value )491 void FMSYNTH::channelPressure( BYTE mchan, BYTE value ) 492 492 { 493 493 BYTE dummy; // Suppress warnings about parms not used. … … 495 495 dummy = value; 496 496 } 497 -
cmedia/trunk/Drv16/irq.hpp
r354 r553 47 47 #endif 48 48 49 // clude <stddef.h> //### NULL? to be removed50 51 // ###IHV: IRQ sharing flag. Set this to "0" for ISA bus, "1" for PCI52 // PCI and Microchannel environments (where hardware can share an IRQ level.53 const IRQ_HW_Sharing = 0;54 49 55 50 // Max num of int handlers per IRQ level. 56 const MAX_HandlersPerIRQLevel = 3;51 const int MAX_HandlersPerIRQLevel = 3; 57 52 58 53 -
cmedia/trunk/Drv16/log.cpp
r354 r553 452 452 453 453 454 v irtual void LOG::vTrace( USHORT eventNum )454 void LOG::vTrace( USHORT eventNum ) 455 455 /* Log the specified event. */ 456 456 { … … 460 460 461 461 462 v irtual void LOG::vLog( USHORT eventNum, ... )462 void LOG::vLog( USHORT eventNum, ... ) 463 463 /* Log the specified event, with data. */ 464 464 { … … 490 490 } 491 491 492 v irtual void PERFLOG::vTrace( USHORT eventNum )492 void PERFLOG::vTrace( USHORT eventNum ) 493 493 { 494 494 RDTSC_COUNT rdtsc_result; // Output from Pentium timing instruction. … … 586 586 587 587 588 v irtual void BINARYLOG::vTrace( USHORT eventNum )588 void BINARYLOG::vTrace( USHORT eventNum ) 589 589 /* Log the specified trace point. */ 590 590 { -
cmedia/trunk/Drv16/midimsg.hpp
r354 r553 55 55 56 56 // Byte length of the IBM Sysex Signature (0xF000003A). 57 const IBMSysexSigLen = 4;57 const int IBMSysexSigLen = 4; 58 58 59 59 // Miscellaneous error codes, must be <0. … … 68 68 // Longest message at time of this writing is 4 byte IBM Sysex signature 69 69 // plus 4 bytes sysex command and data == 8 bytes. We'll tack on 2 extra. 70 const MAX_MidiMsgLen = (IBMSysexSigLen + 4 + 2);70 const int MAX_MidiMsgLen = (IBMSysexSigLen + 4 + 2); 71 71 72 72 // We use this class to build up MIDI messages as we receive the bytes. -
cmedia/trunk/Drv16/midistrm.hpp
r354 r553 39 39 40 40 // Number of notes in the MIDI definition. 41 const NUM_MidiNotes = 128;41 const USHORT NUM_MidiNotes = 128; 42 42 43 43 // Number of channels in the MIDI definition. 44 const NUM_MidiChannels = 16;44 const USHORT NUM_MidiChannels = 16; 45 45 46 46 // The MIDI parser is always in one of the following states. -
cmedia/trunk/Drv16/mpu401.cpp
r354 r553 65 65 } 66 66 67 v irtual void MPU_401::noteOff( BYTE mchan, BYTE note, BYTE velocity )67 void MPU_401::noteOff( BYTE mchan, BYTE note, BYTE velocity ) 68 68 { 69 69 writeByte( (BYTE) 0x80 | mchan ); … … 72 72 } 73 73 74 v irtual void MPU_401::noteOn( BYTE mchan, BYTE note, BYTE velocity )74 void MPU_401::noteOn( BYTE mchan, BYTE note, BYTE velocity ) 75 75 { 76 76 writeByte( (BYTE) 0x90 | mchan ); … … 79 79 } 80 80 81 v irtual void MPU_401::polyphonicPressure( BYTE mchan, BYTE note, BYTE value )81 void MPU_401::polyphonicPressure( BYTE mchan, BYTE note, BYTE value ) 82 82 { 83 83 writeByte( (BYTE) 0xA0 | mchan ); … … 86 86 } 87 87 88 v irtual void MPU_401::controlChange( BYTE mchan, BYTE control_number, BYTE value )88 void MPU_401::controlChange( BYTE mchan, BYTE control_number, BYTE value ) 89 89 { 90 90 writeByte( (BYTE) 0xB0 | mchan ); … … 93 93 } 94 94 95 v irtual void MPU_401::programChange( BYTE mchan, BYTE program_number )95 void MPU_401::programChange( BYTE mchan, BYTE program_number ) 96 96 { 97 97 writeByte( (BYTE) 0xC0 | mchan ); … … 99 99 } 100 100 101 v irtual void MPU_401::channelPressure( BYTE mchan, BYTE value )101 void MPU_401::channelPressure( BYTE mchan, BYTE value ) 102 102 { 103 103 writeByte( (BYTE) 0xD0 | mchan ); … … 105 105 } 106 106 107 v irtual void MPU_401::pitchBend( BYTE mchan, BYTE value_lsb, BYTE value_msb )107 void MPU_401::pitchBend( BYTE mchan, BYTE value_lsb, BYTE value_msb ) 108 108 { 109 109 writeByte( (BYTE) 0xE0 | mchan ); -
cmedia/trunk/Drv16/sizedefs.h
r354 r553 24 24 #define SIZEDEFS_H 25 25 26 const NumLogicalDevices = 5; // Number of PNP logical devices on adapter.27 28 26 #define HEAP_SIZE 16384 // must be a multiple of 4 29 27 #define DEFAULT_HEAP 4096 -
cmedia/trunk/Drv16/stream.cpp
r354 r553 199 199 200 200 #pragma off (unreferenced) 201 virtualULONG STREAM::Write(PSTREAMBUF pbuf, ULONG uLength, BOOL fLooping)201 ULONG STREAM::Write(PSTREAMBUF pbuf, ULONG uLength, BOOL fLooping) 202 202 #pragma on (unreferenced) 203 203 { -
cmedia/trunk/Drv16/waudio.cpp
r354 r553 337 337 * 338 338 */ 339 v irtual void WAVEAUDIO::ConfigDev(STREAM *stream, PWAVECONFIGINFO pConfigInfo)339 void WAVEAUDIO::ConfigDev(STREAM *stream, PWAVECONFIGINFO pConfigInfo) 340 340 { 341 341 FORMAT_INFO formatInfo; -
cmedia/trunk/Install/rcstub.c
r354 r553 39 39 40 40 41 VOID APIENTRY RCSTUB(VOID)41 ULONG __DLLstart(VOID) 42 42 { 43 return 0; 43 44 } 44 45 -
cmedia/trunk/Runtime/string.c
r354 r553 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, size_t n) 15 15 { 16 int i;16 size_t i; 17 17 18 18 for (i=0; i<n; 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, size_t n) 26 26 { 27 int i;27 size_t i; 28 28 29 29 for (i=0; i<n; 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, size_t n) 36 36 { 37 int i,a,b; 37 size_t i; 38 int a,b; 38 39 39 40 for (i=0; i<n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
