Mercurial > pygar
view modules/bluespec/Pygar/common/AudioProcessorRRR.h @ 32:0c775e733b81 pygar svn.33
[svn r33] audio core benchmark script added and the benchmark setup is half-way to working
author | punk |
---|---|
date | Mon, 03 May 2010 09:53:56 -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