summaryrefslogtreecommitdiff
path: root/src/rmd_jack.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-04-04 23:39:55 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-04-04 23:39:55 -0700
commit809271ec5e41223e91aee9aff48ec065dafcd5fa (patch)
treea1000f12a4d8cc0f5148272420f2a2730deba3da /src/rmd_jack.c
parent97ebf1892bbf29712f94d9b6e65547469f16b09e (diff)
*: trivial cleanups
s/for(/for (/g
Diffstat (limited to 'src/rmd_jack.c')
-rw-r--r--src/rmd_jack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rmd_jack.c b/src/rmd_jack.c
index 6002df0..e1a5a0e 100644
--- a/src/rmd_jack.c
+++ b/src/rmd_jack.c
@@ -53,7 +53,7 @@ static int rmdJackCapture(jack_nframes_t nframes, void *jdata_t)
if (!jdata->pdata->running || jdata->pdata->paused || !jdata->capture_started)
return 0;
- for(int i = 0; i < jdata->nports; i++)
+ for (int i = 0; i < jdata->nports; i++)
jdata->portbuf[i] = jack_port_get_buffer(jdata->ports[i], nframes);
@@ -61,7 +61,7 @@ static int rmdJackCapture(jack_nframes_t nframes, void *jdata_t)
//vorbis analysis buffer wants uninterleaved data
//so we are simply placing the buffers for every channel
//sequentially on the ringbuffer
- for(int i = 0; i < jdata->nports; i++)
+ for (int i = 0; i < jdata->nports; i++)
jack_ringbuffer_write( jdata->sound_buffer,
(void *)(jdata->portbuf[i]),
nframes *
@@ -87,7 +87,7 @@ static int rmdSetupPorts(JackData *jdata)
jdata->portbuf = malloc(sizeof(jack_default_audio_sample_t *) * jdata->nports);
memset(jdata->portbuf, 0, sizeof(jack_default_audio_sample_t *) * jdata->nports);
- for(int i = 0; i < jdata->nports; i++) {
+ for (int i = 0; i < jdata->nports; i++) {
char name[64];//recordMyDesktop:input_n<64 is enough for full name
char num[8];
strcpy(name, "input_");
© All Rights Reserved