// Stub functions for protofile "prelude_protos.h"
// Generated by genPPCStub 1.1 for StormC
// © 1996/97 HAAGE & PARTNER GmbH

// DO NOT EDIT

#ifndef PPC
#define PPC
#endif // PPC

#include <libraries/powerpc.h>

#include <ppcamiga.h>

UWORD GetPrlState()
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	__CallLibrary(PreludeBase,-30,regs);
	return (UWORD) regs[0];
}

VOID KillPrlPlayList()
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	__CallLibrary(PreludeBase,-36,regs);
}

void *PreludeInit(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-42,regs);
	return (void *) regs[0];
}

UWORD PrlPeak()
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	__CallLibrary(PreludeBase,-48,regs);
	return (UWORD) regs[0];
}

VOID PreludeQuit()
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	__CallLibrary(PreludeBase,-54,regs);
}

VOID PrlPlay(void *arg1,ULONG arg2,UWORD arg3,UWORD arg4)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	regs[0] = (ULONG) arg2;
	regs[1] = (ULONG) arg3;
	regs[2] = (ULONG) arg4;
	__CallLibrary(PreludeBase,-60,regs);
}

VOID PrlPlayBuff(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-66,regs);
}

VOID PrlPlayMix(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-72,regs);
}

VOID PrlRecord(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-78,regs);
}

VOID PrlStop(UWORD arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[0] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-84,regs);
}

VOID SetPrlCtrl(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-90,regs);
}

UWORD GetPrlFreq(UWORD arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[0] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-102,regs);
	return (UWORD) regs[0];
}

VOID datatofifo(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-138,regs);
}

VOID fifotodata(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-132,regs);
}

VOID FillFifo(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[8] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-126,regs);
}

ULONG InterruptRoutine(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[0] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-120,regs);
	return (ULONG) regs[0];
}

VOID irqroutine(void *arg1)
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	regs[0] = (ULONG) arg1;
	__CallLibrary(PreludeBase,-144,regs);
}

VOID NextFromPL_c()
{
	extern struct Library *PreludeBase;
	ULONG regs[16];
	__CallLibrary(PreludeBase,-114,regs);
}

