punk@16: punk@16: // The MIT License punk@16: punk@16: // Copyright (c) 2009 Massachusetts Institute of Technology punk@16: punk@16: // Permission is hereby granted, free of charge, to any person obtaining a copy punk@16: // of this software and associated documentation files (the "Software"), to deal punk@16: // in the Software without restriction, including without limitation the rights punk@16: // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell punk@16: // copies of the Software, and to permit persons to whom the Software is punk@16: // furnished to do so, subject to the following conditions: punk@16: punk@16: // The above copyright notice and this permission notice shall be included in punk@16: // all copies or substantial portions of the Software. punk@16: punk@16: // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR punk@16: // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, punk@16: // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE punk@16: // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER punk@16: // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, punk@16: // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN punk@16: // THE SOFTWARE. punk@16: punk@16: // Author: Ker punk@16: // min Fleming kfleming@mit.edu punk@16: punk@16: import Connectable::*; punk@16: import GetPut::*; punk@16: import ClientServer::*; punk@16: punk@16: typedef Int#(16) Sample; punk@16: punk@16: typedef enum { punk@16: EndOfFile = 0, punk@16: Data = 1 punk@16: } AudioProcessorControl deriving (Bits,Eq); punk@16: punk@16: punk@16: typedef struct { punk@16: Sample left; punk@16: Sample right; punk@16: } StereoSample deriving (Bits,Eq); punk@16: punk@16: typedef union tagged{ punk@16: Sample Sample; punk@16: void EndOfFile; punk@16: } AudioProcessorUnit deriving (Bits,Eq); punk@16: punk@16: punk@16: