ReactOS 0.4.16-dev-306-g647d351
|
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <ndk/iofuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/rtlfuncs.h>
#include <ntddbeep.h>
#include <math.h>
#include <mmddk.h>
Go to the source code of this file.
Classes | |
struct | _NoteNode |
struct | _DeviceInfo |
Macros | |
#define | TIMESLICE_SIZE 60 |
#define | ALLOW_DUPLICATE_NOTES |
#define | POLYPHONY 3 |
#define | CONTINUOUS_NOTES |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | COM_NO_WINDOWS_H |
#define | NTOS_MODE_USER |
#define | DPRINT FakePrintf |
#define | MIDI_NOTE_OFF 0x80 |
#define | MIDI_NOTE_ON 0x90 |
#define | MIDI_CONTROL_CHANGE 0xB0 |
#define | MIDI_PROGRAM 0xC0 |
#define | MIDI_PITCH_BEND 0xE0 |
#define | MIDI_SYSTEM 0xFF |
#define | MIDI_RESET 0xFF |
#define | PACK_MIDI(b1, b2, b3) ((b3 * 65536) + (b2 * 256) + b1); |
Typedefs | |
typedef struct _NoteNode | NoteNode |
typedef struct _DeviceInfo | DeviceInfo |
Functions | |
void | FakePrintf (char *str,...) |
DWORD WINAPI | ProcessPlayingNotes (LPVOID parameter) |
MMRESULT | GetDeviceCapabilities (MIDIOUTCAPS *caps) |
BOOL | CallClient (DeviceInfo *device_info, DWORD_PTR message, DWORD_PTR parameter1, DWORD_PTR parameter2) |
MMRESULT | OpenDevice (DeviceInfo **private_data, MIDIOPENDESC *open_desc, DWORD flags) |
MMRESULT | CloseDevice (DeviceInfo *device_info) |
MMRESULT | StopNote (DeviceInfo *device_info, UCHAR note) |
MMRESULT | PlayNote (DeviceInfo *device_info, UCHAR note, UCHAR velocity) |
MMRESULT | ProcessShortMidiMessage (DeviceInfo *device_info, DWORD message) |
MMRESULT | ProcessLongMidiMessage (DeviceInfo *device_info, MIDIHDR *header) |
MMRESULT FAR PASCAL | modMessage (UINT device_id, UINT message, DWORD_PTR private_data, DWORD_PTR parameter1, DWORD_PTR parameter2) |
LONG FAR PASCAL | DriverProc (DWORD driver_id, HDRVR driver_handle, UINT message, LONG parameter1, LONG parameter2) |
Variables | |
DeviceInfo * | the_device |
CRITICAL_SECTION | device_lock |
#define _INC_WINDOWS |
Definition at line 44 of file beepmidi.c.
#define ALLOW_DUPLICATE_NOTES |
Definition at line 26 of file beepmidi.c.
#define COM_NO_WINDOWS_H |
Definition at line 45 of file beepmidi.c.
#define CONTINUOUS_NOTES |
Definition at line 41 of file beepmidi.c.
#define DPRINT FakePrintf |
Definition at line 58 of file beepmidi.c.
#define MIDI_CONTROL_CHANGE 0xB0 |
Definition at line 63 of file beepmidi.c.
#define MIDI_NOTE_OFF 0x80 |
Definition at line 61 of file beepmidi.c.
#define MIDI_NOTE_ON 0x90 |
Definition at line 62 of file beepmidi.c.
#define MIDI_PITCH_BEND 0xE0 |
Definition at line 65 of file beepmidi.c.
#define MIDI_PROGRAM 0xC0 |
Definition at line 64 of file beepmidi.c.
#define MIDI_RESET 0xFF |
Definition at line 69 of file beepmidi.c.
#define MIDI_SYSTEM 0xFF |
Definition at line 66 of file beepmidi.c.
#define NTOS_MODE_USER |
Definition at line 49 of file beepmidi.c.
Definition at line 654 of file beepmidi.c.
#define POLYPHONY 3 |
Definition at line 33 of file beepmidi.c.
#define TIMESLICE_SIZE 60 |
Definition at line 18 of file beepmidi.c.
#define WIN32_NO_STATUS |
Definition at line 43 of file beepmidi.c.
typedef struct _DeviceInfo DeviceInfo |
BOOL CallClient | ( | DeviceInfo * | device_info, |
DWORD_PTR | message, | ||
DWORD_PTR | parameter1, | ||
DWORD_PTR | parameter2 | ||
) |
Definition at line 240 of file beepmidi.c.
Referenced by CloseDevice(), OpenDevice(), and ProcessLongMidiMessage().
MMRESULT CloseDevice | ( | DeviceInfo * | device_info | ) |
Definition at line 383 of file beepmidi.c.
Referenced by modMessage(), and wodMessage().
LONG FAR PASCAL DriverProc | ( | DWORD | driver_id, |
HDRVR | driver_handle, | ||
UINT | message, | ||
LONG | parameter1, | ||
LONG | parameter2 | ||
) |
Definition at line 853 of file beepmidi.c.
Definition at line 105 of file beepmidi.c.
MMRESULT GetDeviceCapabilities | ( | MIDIOUTCAPS * | caps | ) |
Definition at line 210 of file beepmidi.c.
Referenced by auxMessage(), midMessage(), modMessage(), and wodMessage().
MMRESULT FAR PASCAL modMessage | ( | UINT | device_id, |
UINT | message, | ||
DWORD_PTR | private_data, | ||
DWORD_PTR | parameter1, | ||
DWORD_PTR | parameter2 | ||
) |
Definition at line 771 of file beepmidi.c.
Referenced by MMDRV_Install().
MMRESULT OpenDevice | ( | DeviceInfo ** | private_data, |
MIDIOPENDESC * | open_desc, | ||
DWORD | flags | ||
) |
Definition at line 264 of file beepmidi.c.
Referenced by AuxGetAudio(), AuxSetAudio(), Enum(), modMessage(), OpenMidiDevice(), SysAudioOpenKMixer(), and wodMessage().
MMRESULT PlayNote | ( | DeviceInfo * | device_info, |
UCHAR | note, | ||
UCHAR | velocity | ||
) |
Definition at line 484 of file beepmidi.c.
Referenced by ProcessShortMidiMessage().
MMRESULT ProcessLongMidiMessage | ( | DeviceInfo * | device_info, |
MIDIHDR * | header | ||
) |
Definition at line 668 of file beepmidi.c.
Referenced by modMessage().
Definition at line 117 of file beepmidi.c.
Referenced by OpenDevice(), PlayNote(), and StopNote().
MMRESULT ProcessShortMidiMessage | ( | DeviceInfo * | device_info, |
DWORD | message | ||
) |
Definition at line 590 of file beepmidi.c.
Referenced by modMessage(), and ProcessLongMidiMessage().
MMRESULT StopNote | ( | DeviceInfo * | device_info, |
UCHAR | note | ||
) |
Definition at line 418 of file beepmidi.c.
Referenced by PlayNote(), and ProcessShortMidiMessage().
CRITICAL_SECTION device_lock |
Definition at line 102 of file beepmidi.c.
Referenced by DriverProc(), PlayNote(), ProcessPlayingNotes(), and StopNote().
DeviceInfo* the_device |
Definition at line 101 of file beepmidi.c.
Referenced by CloseDevice(), DriverProc(), OpenDevice(), ProcessLongMidiMessage(), and ProcessPlayingNotes().