Mercurial > hg > beaglert
comparison include/PRU.h @ 528:5c8f46fcd4d0 API-update
Updated BelaContext to use separate values for in/ou channels
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 23 Jun 2016 18:17:35 +0100 |
parents | 493a07f6ec09 |
children |
comparison
equal
deleted
inserted
replaced
527:1c68ad13bbe4 | 528:5c8f46fcd4d0 |
---|---|
53 /// \b Note: this element is available in render() only. | 53 /// \b Note: this element is available in render() only. |
54 uint32_t *digital; | 54 uint32_t *digital; |
55 | 55 |
56 /// Number of audio frames per period | 56 /// Number of audio frames per period |
57 uint32_t audioFrames; | 57 uint32_t audioFrames; |
58 /// Number of audio channels (currently always 2) | 58 /// Number of input audio channels |
59 uint32_t audioChannels; | 59 uint32_t audioInChannels; |
60 /// Number of output audio channels | |
61 uint32_t audioOutChannels; | |
60 /// Audio sample rate in Hz (currently always 44100.0) | 62 /// Audio sample rate in Hz (currently always 44100.0) |
61 float audioSampleRate; | 63 float audioSampleRate; |
62 | 64 |
63 /// \brief Number of analog frames per period | 65 /// \brief Number of analog frames per period |
64 /// | 66 /// |
65 /// This will be 0 if analog I/O is disabled. | 67 /// This will be 0 if analog I/O is disabled. |
66 uint32_t analogFrames; | 68 uint32_t analogFrames; |
67 | 69 |
68 /// \brief Number of analog channels | 70 /// \brief Number of input analog channels |
69 /// | 71 /// |
70 /// This could take a value of 8, 4 or 2. This will be 0 if analog I/O is disabled. | 72 /// This will be 0 if analog I/O is disabled. |
71 uint32_t analogChannels; | 73 uint32_t analogInChannels; |
74 | |
75 /// \brief Number of output analog channels | |
76 /// | |
77 /// This will be 0 if analog I/O is disabled. | |
78 uint32_t analogOutChannels; | |
72 | 79 |
73 /// \brief Analog sample rate in Hz | 80 /// \brief Analog sample rate in Hz |
74 /// | 81 /// |
75 /// The analog sample rate depends on the number of analog channels used. If | 82 /// The analog sample rate depends on the number of analog channels used. If |
76 /// 8 channels are used, the sample rate is 22050. If 4 channels are used, the sample | 83 /// 8 channels are used, the sample rate is 22050. If 4 channels are used, the sample |