-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* KallistiOS ##version## | ||
dc/sound/midi.h | ||
Copyright (C) 2020 Thomas Sowell | ||
*/ | ||
|
||
/** \file dc/sound/midi.h | ||
\brief MIDI support. | ||
\author Thomas Sowell | ||
*/ | ||
|
||
#ifndef __DC_SOUND_MIDI_H | ||
#define __DC_SOUND_MIDI_H | ||
|
||
#include <sys/cdefs.h> | ||
|
||
__BEGIN_DECLS | ||
|
||
void snd_midi(uint8 midi); | ||
|
||
__END_DECLS | ||
|
||
#endif /* __DC_SOUND_MIDI_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <dc/sound/sound.h> | ||
#include <dc/sound/midi.h> | ||
|
||
#include "arm/aica_cmd_iface.h" | ||
|
||
void snd_midi(uint8 midi) { | ||
AICA_CMDSTR_MIDI(tmp, cmd, cmdmidi); | ||
|
||
cmd->cmd = AICA_CMD_MIDI; | ||
cmd->timestamp = 0; | ||
cmd->size = AICA_CMDSTR_MIDI_SIZE; | ||
*cmdmidi = midi; | ||
snd_sh4_to_aica(tmp, cmd->size); | ||
} |