view modules/bluespec/Pygar/common/AudioProcessorRRR.h @ 23:90197e3375e2 pygar svn.24

[svn r24] added testing, but something is wrong with our c++ file.
author rlm
date Wed, 28 Apr 2010 08:19:09 -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_CLASS
16 {
17 private:
18 // self-instantiation
19 static AUDIOPROCESSORRRR_SERVER_CLASS instance;
20 FILE *outputFile;
22 // server stub
23 RRR_SERVER_STUB serverStub;
25 int count;
27 public:
28 AUDIOPROCESSORRRR_SERVER_CLASS();
29 ~AUDIOPROCESSORRRR_SERVER_CLASS();
31 // static methods
32 static AUDIOPROCESSORRRR_SERVER GetInstance() { return &instance; }
34 // required RRR methods
35 void Init(PLATFORMS_MODULE);
36 void Uninit();
37 void Cleanup();
39 //
40 // RRR service methods
41 //
42 void SendProcessedStream(UINT16 control, UINT16 data0);
43 };
47 // include server stub
48 #include "asim/rrr/server_stub_AUDIOPROCESSORRRR.h"
50 #endif