1
0
Fork 0
forked from len0rd/rockbox

Move all of midiplay into its subdir and add a Makefile for it, add header files as necessary.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14841 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2007-09-24 15:57:32 +00:00
parent e24975a35f
commit 0e49605aaa
15 changed files with 377 additions and 195 deletions

View file

@ -5,6 +5,7 @@
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2005 Stepan Moskovchenko
*
@ -15,6 +16,9 @@
* KIND, either express or implied.
*
****************************************************************************/
#include "plugin.h"
#include "midiutil.h"
#include "guspat.h"
void setVolScale(int a);
@ -22,7 +26,6 @@ extern struct plugin_api * rb;
long tempo=375000;
inline void setVol(int ch, int vol)
{
int a=0;
@ -119,7 +122,6 @@ long pitchTbl[] ICONST_ATTR={
73297,73330,73363,73396,73429,73462,73495,73528
};
void findDelta(struct SynthObject * so, int ch, int note)
{
@ -147,7 +149,6 @@ inline void setPW(int ch, int msb, int lsb)
}
}
/* Sets the volume scaling by channel volume and note volume */
/* This way we can do the multiplication/indexing once per */
/* MIDI event at the most, instead of once per sample. */
@ -375,3 +376,4 @@ int tick(void)
else
return 0;
}