This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int process(jack_nframes_t nframes, void *arg) { | |
sample_t *outBufferLeft = (sample_t *) jack_port_get_buffer(output_port_l, nframes); | |
sample_t *outBufferRight = (sample_t *) jack_port_get_buffer(output_port_r, nframes); | |
sample_t *inBufferLeft = (sample_t *) jack_port_get_buffer(input_port_l, nframes); | |
sample_t *inBufferRight = (sample_t *) jack_port_get_buffer(input_port_r, nframes); | |
// copy input audio to output | |
memcpy(outBufferLeft, inBufferLeft, sizeof(sample_t) * nframes); | |
memcpy(outBufferRight, inBufferRight, sizeof(sample_t) * nframes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <math.h> | |
#include <string.h> | |
#include "moving_average.h" | |
// for audio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My Site</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"</meta> | |
<style> | |
#header { | |
position: absolute; | |
top: 0; left: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My Site</title> | |
<meta charset="UTF-8"> | |
<style> | |
#header { | |
position: absolute; | |
top: 0; left: 0; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int process(jack_nframes_t nframes, void *arg) { | |
sample_t *outBufferLeft = (sample_t *) jack_port_get_buffer(output_port_l, nframes); | |
sample_t *outBufferRight = (sample_t *) jack_port_get_buffer(output_port_r, nframes); | |
sample_t *inBufferLeft = (sample_t *) jack_port_get_buffer(input_port_l, nframes); | |
sample_t *inBufferRight = (sample_t *) jack_port_get_buffer(input_port_r, nframes); | |
// copy input audio to output | |
memcpy(outBufferLeft, inBufferLeft, sizeof(sample_t) * nframes); | |
memcpy(outBufferRight, inBufferRight, sizeof(sample_t) * nframes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <math.h> | |
#include <getopt.h> | |
#include <string.h> | |
#include <wchar.h> | |
#include <locale.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi /usr/local/bin/jackd -dalsa -r44100 -p1024 -n2 & | |
sleep 10 | |
sudo -u pi pulseaudio --start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi /usr/local/bin/jackd -dalsa -r44100 -p1024 -n2 & | |
sleep 10 | |
sudo -u pi pulseaudio --start | |
echo "Started Jackd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi pulseaudio --start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <jack/jack.h> | |
#include <jack/transport.h> |