Mercurial > hg > beaglert
diff examples/01-Basics/minimal/render.cpp @ 543:8f8809c77dda prerelease
updated basics, digital, instruments, extras examples
author | chnrx <chris.heinrichs@gmail.com> |
---|---|
date | Fri, 24 Jun 2016 13:19:52 +0100 |
parents | 2ec36efb2c52 |
children |
line wrap: on
line diff
--- a/examples/01-Basics/minimal/render.cpp Fri Jun 24 13:00:31 2016 +0100 +++ b/examples/01-Basics/minimal/render.cpp Fri Jun 24 13:19:52 2016 +0100 @@ -103,13 +103,12 @@ you need. Take a look at what's in the data structure [here] -(https://code.soundsoftware.ac.uk/projects/beaglert/embedded/structBeagleRTContext.html). You can access any of these bits of information about current audio and sensor settings and pointers to data buffers that are contained in the data structure like this: `context->name_of_item`. -For example, `context->audioChannels` returns the number of audio channels. +For example, `context->audioInChannels` returns the number of audio input channels. `context->audioSampleRate` returns the audio sample rate. `context->audioIn[n]` would give you the current input sample (assuming that your input is mono - if it's not you will have to account for multiple channels).