MusicKit  0.0.0
orch.h
00001 /*
00002   $Id$
00003   Defined In: The MusicKit
00004 
00005   Description:
00006   Original Author: David Jaffe
00007 
00008   Copyright (c) 1988-1992, NeXT Computer, Inc.
00009   Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT
00010   Portions Copyright (c) 1994 Stanford University
00011   Portions Copyright (c) 1999-2005, The MusicKit Project.
00012 */
00013 #ifndef __MK_orch_H___
00014 #define __MK_orch_H___
00015 
00016 #ifndef MK_ORCH_H
00017 #define MK_ORCH_H
00018 
00019 #import <MKDSP/dsp.h>             /* Contains DSPAddress, etc. */
00020 
00031 typedef enum _MKOrchMemSegment {
00032     MK_noSegment = 0,            
00033     MK_pLoop,                    
00034     MK_pSubr,                    
00035     MK_xArg,                     
00036     MK_yArg,                     
00037     MK_lArg,                     
00038     MK_xData,                    
00039     MK_yData,                    
00040     MK_lData,                    
00041     MK_xPatch,                   
00042     MK_yPatch,                   
00043     MK_lPatch,                   
00044     MK_numOrchMemSegments        
00045 } MKOrchMemSegment;
00046 
00052 typedef struct _MKOrchMemStruct {
00053     unsigned xArg;   
00054     unsigned yArg;   
00055     unsigned lArg;   
00056     unsigned pLoop;  
00057     unsigned pSubr;  
00058     unsigned xData;  
00059     unsigned yData;  
00060     unsigned lData;  
00061 } MKOrchMemStruct;
00062 
00066 typedef struct _MKOrchAddrStruct {
00067     DSPAddress address;            
00068     DSPMemorySpace memSpace;       
00069     MKOrchMemSegment memSegment;   
00070     int orchIndex;                 
00071 } MKOrchAddrStruct;
00072 
00077 typedef enum _MKSynthStatus {
00079     MK_idle,
00081     MK_running,               /* The meaning of this is defined by the ug */
00083     MK_finishing,             /* The meaning of this is defined by the ug */
00084 } MKSynthStatus;
00085 
00086 #endif /* MK_ORCH_H */
00087 
00088 #endif