2626#include <kos/cdefs.h>
2727__BEGIN_DECLS
2828
29+ #include <stdbool.h>
2930#include <stdint.h>
3031#include <dc/maple.h>
3132
@@ -74,7 +75,7 @@ typedef struct sip_state {
7475 int frequency ;
7576
7677 /** \brief Is the mic currently sampling? */
77- int is_sampling ;
78+ bool is_sampling ;
7879
7980 /** \brief Sampling callback. */
8081 sip_sample_cb callback ;
@@ -176,7 +177,7 @@ int sip_set_frequency(maple_device_t *dev, unsigned int freq);
176177
177178 \param dev The device to start sampling on.
178179 \param cb A callback to call when samples are ready.
179- \param block Set to 1 to wait for the SIP to start sampling.
180+ \param block Set to true to wait for the SIP to start sampling.
180181 Otherwise check the is_sampling member of the status
181182 for dev to know when it has started.
182183 \retval MAPLE_EOK On success.
@@ -185,22 +186,22 @@ int sip_set_frequency(maple_device_t *dev, unsigned int freq);
185186 callback function is NULL.
186187 \retval MAPLE_ETIMEOUT If the command timed out while blocking.
187188*/
188- int sip_start_sampling (maple_device_t * dev , sip_sample_cb cb , int block );
189+ int sip_start_sampling (maple_device_t * dev , sip_sample_cb cb , bool block );
189190
190191/** \brief Stop sampling on a microphone.
191192
192193 This function informs a microphone it should stop recording samples.
193194
194195 \param dev The device to stop sampling on.
195- \param block Set to 1 to wait for the SIP to stop sampling.
196+ \param block Set to true to wait for the SIP to stop sampling.
196197 Otherwise check the is_sampling member of the status
197198 for dev to know when it has finished.
198199 \retval MAPLE_EOK On success.
199200 \retval MAPLE_EAGAIN If the command couldn't be sent, try again later.
200201 \retval MAPLE_EFAIL If the microphone is not sampling.
201202 \retval MAPLE_ETIMEOUT If the command timed out while blocking.
202203*/
203- int sip_stop_sampling (maple_device_t * dev , int block );
204+ int sip_stop_sampling (maple_device_t * dev , bool block );
204205
205206/* \cond */
206207/* Init / Shutdown */
0 commit comments