diff options
| author | Joel Bodenmann <joel@unormal.org> | 2014-04-20 10:41:53 +0200 |
|---|---|---|
| committer | Joel Bodenmann <joel@unormal.org> | 2014-04-20 10:41:53 +0200 |
| commit | c88e25b84fa8d18942df56592cec68f8371a8d41 (patch) | |
| tree | 0c13a89e07560b79ea0092a25f75b7cf630a903f /demos/modules/gaudio/oscilloscope/main.c | |
| parent | ad1d70d2957d95161c831e764c6f81c84c332458 (diff) | |
| parent | 33babb4c1a5b749faac6969681e8deff481c4344 (diff) | |
| download | uGFX-c88e25b84fa8d18942df56592cec68f8371a8d41.tar.gz uGFX-c88e25b84fa8d18942df56592cec68f8371a8d41.tar.bz2 uGFX-c88e25b84fa8d18942df56592cec68f8371a8d41.zip | |
Merge branch 'master' of https://bitbucket.org/Tectu/ugfx into gwin
Diffstat (limited to 'demos/modules/gaudio/oscilloscope/main.c')
| -rw-r--r-- | demos/modules/gaudio/oscilloscope/main.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/demos/modules/gaudio/oscilloscope/main.c b/demos/modules/gaudio/oscilloscope/main.c index b44b5a02..3636e8f9 100644 --- a/demos/modules/gaudio/oscilloscope/main.c +++ b/demos/modules/gaudio/oscilloscope/main.c @@ -55,10 +55,15 @@ int main(void) { gfxInit(); - // Allocate audio buffers - 4 x 128 byte buffers. - // You may need to increase this for slower cpu's. - // You may be able to decrease this for low latency operating systems. - gaudioAllocBuffers(4, 128); + /** + * Allocate audio buffers - eg. 4 x 128 byte buffers. + * You may need to increase this for slower cpu's. + * You may be able to decrease this for low latency operating systems. + * 8 x 256 seems to work on the really slow Olimex SAM7EX256 board (display speed limitation) @8kHz + * If your oscilloscope display stops then it is likely that your driver has stalled due to running + * out of free buffers. Increase the number of buffers.. + */ + gfxBufferAlloc(8, 256); /* Get the screen dimensions */ swidth = gdispGetWidth(); |
