Mercurial > pygar
view modules/bluespec/Pygar/common/AudioProcessorRRR.h @ 9:a66d70a89c85 pygar svn.10
[svn r10] added week 3 progress report. Please tell me what you think!
author | rlm |
---|---|
date | Fri, 23 Apr 2010 06:08:21 -0400 |
parents | 74716e9a81cc |
children |
line wrap: on
line source
2 #ifndef _AUDIOPROCESSORRRR_3 #define _AUDIOPROCESSORRRR_5 #include <stdio.h>6 #include <sys/time.h>8 #include "asim/provides/low_level_platform_interface.h"10 #include "asim/provides/rrr.h"14 typedef class AUDIOPROCESSORRRR_SERVER_CLASS* AUDIOPROCESSORRRR_SERVER;15 class AUDIOPROCESSORRRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS16 {17 private:18 // self-instantiation19 static AUDIOPROCESSORRRR_SERVER_CLASS instance;20 FILE *outputFile;22 // server stub23 RRR_SERVER_STUB serverStub;25 int count;27 public:28 AUDIOPROCESSORRRR_SERVER_CLASS();29 ~AUDIOPROCESSORRRR_SERVER_CLASS();31 // static methods32 static AUDIOPROCESSORRRR_SERVER GetInstance() { return &instance; }34 // required RRR methods35 void Init(PLATFORMS_MODULE);36 void Uninit();37 void Cleanup();39 //40 // RRR service methods41 //42 void SendProcessedStream(UINT16 control, UINT16 data0);43 };47 // include server stub48 #include "asim/rrr/server_stub_AUDIOPROCESSORRRR.h"50 #endif