Difference between revisions of "Linuxlib"
From Felixl.com
Jump to navigationJump to search (→API Structures) |
(→API functions) |
||
Line 2: | Line 2: | ||
== API functions == | == API functions == | ||
+ | unsigned int audiodac_callback(unsigned short left, unsigned short right); | ||
+ | |||
+ | this is callback, that freedo will call 44100 times a second to put next sample into DAC buffer. this should be blocking function -- it should wait if buffer is full. Returns 1 if everything went ok, returns 0 if there's no buffer or other problems. | ||
== API Structures == | == API Structures == |
Revision as of 19:07, 5 February 2007
API functions
unsigned int audiodac_callback(unsigned short left, unsigned short right);
this is callback, that freedo will call 44100 times a second to put next sample into DAC buffer. this should be blocking function -- it should wait if buffer is full. Returns 1 if everything went ok, returns 0 if there's no buffer or other problems.
API Structures
typedef struct{ void * audiodac_callback; void * videobuf_callback; void * keypad_callback[5]; }freedo_struct;
where all are pointers to call back functions. see function API for details