Mercurial > pygar
diff modules/bluespec/Pygar/common/AudioProcessorRRR.h @ 8:74716e9a81cc pygar svn.9
[svn r9] Pygar now has the proper directory structure to play nicely with awb. Also, the apm file for audio-core willcompile successfully.
author | rlm |
---|---|
date | Fri, 23 Apr 2010 02:32:05 -0400 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/bluespec/Pygar/common/AudioProcessorRRR.h Fri Apr 23 02:32:05 2010 -0400 1.3 @@ -0,0 +1,50 @@ 1.4 + 1.5 +#ifndef _AUDIOPROCESSORRRR_ 1.6 +#define _AUDIOPROCESSORRRR_ 1.7 + 1.8 +#include <stdio.h> 1.9 +#include <sys/time.h> 1.10 + 1.11 +#include "asim/provides/low_level_platform_interface.h" 1.12 + 1.13 +#include "asim/provides/rrr.h" 1.14 + 1.15 + 1.16 + 1.17 +typedef class AUDIOPROCESSORRRR_SERVER_CLASS* AUDIOPROCESSORRRR_SERVER; 1.18 +class AUDIOPROCESSORRRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS 1.19 +{ 1.20 + private: 1.21 + // self-instantiation 1.22 + static AUDIOPROCESSORRRR_SERVER_CLASS instance; 1.23 + FILE *outputFile; 1.24 + 1.25 + // server stub 1.26 + RRR_SERVER_STUB serverStub; 1.27 + 1.28 + int count; 1.29 + 1.30 + public: 1.31 + AUDIOPROCESSORRRR_SERVER_CLASS(); 1.32 + ~AUDIOPROCESSORRRR_SERVER_CLASS(); 1.33 + 1.34 + // static methods 1.35 + static AUDIOPROCESSORRRR_SERVER GetInstance() { return &instance; } 1.36 + 1.37 + // required RRR methods 1.38 + void Init(PLATFORMS_MODULE); 1.39 + void Uninit(); 1.40 + void Cleanup(); 1.41 + 1.42 + // 1.43 + // RRR service methods 1.44 + // 1.45 + void SendProcessedStream(UINT16 control, UINT16 data0); 1.46 +}; 1.47 + 1.48 + 1.49 + 1.50 +// include server stub 1.51 +#include "asim/rrr/server_stub_AUDIOPROCESSORRRR.h" 1.52 + 1.53 +#endif