Bayley Wang
/
priustroller_3
temp repo
Fork of priustroller_2 by
Diff: debug/debug.h
- Revision:
- 24:f1ff9c7256b5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debug/debug.h Mon Mar 09 11:33:14 2015 +0000 @@ -0,0 +1,22 @@ +#ifndef __DEBUG_H +#define __DEBUG_H + +#include "includes.h" +#include "context.h" + +class BufferedDebugger { +public: + BufferedDebugger(Context *context, int channels, int size); + void Write(int channel, float f); + void Flush(); + void Restart(); +private: + Context *_context; + int _size; + int _channels; + int *_index; + int _done; + float *_buffer; +}; + +#endif \ No newline at end of file