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
// +build plugin | |
package main | |
import ( | |
"pipelined.dev/audio/vst2" | |
) | |
type Gain struct { | |
Gain float64 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleName</key> | |
<string>$PLUGIN_NAME</string> | |
<key>CFBundleDisplayName</key> | |
<string>$PLUGIN_NAME</string> | |
<key>CFBundleExecutable</key> | |
<string>$DYLIB_NAME</string> |
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
#!/bin/sh | |
A="$(pacmd list-sources | grep -PB 1 "analog.*monitor>" | head -n 1 | perl -pe 's/.* //g')"; F="$(date --iso-8601=minutes | perl -pe 's/[^0-9]+//g').mkv"; V="$(xdpyinfo | grep dimensions | perl -pe 's/.* ([0-9]+x[0-9]+) .*/$1/g')"; ffmpeg -loglevel error -video_size "$V" -f x11grab -i :0.0 -f pulse -i "$A" -f pulse -i default -filter_complex amerge -ac 2 -preset veryfast "$F" |
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
package test_assert | |
import ( | |
"reflect" | |
"testing" | |
) | |
func assertEqual(t *testing.T, name string, result, expected interface{}) { | |
t.Helper() | |
if !reflect.DeepEqual(expected, result) { |
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
#! /bin/bash | |
git clone https://github.com/pipelined/audio && \ | |
git clone https://github.com/pipelined/docs && \ | |
git clone https://github.com/pipelined/example && \ | |
git clone https://github.com/pipelined/flac && \ | |
git clone https://github.com/pipelined/mixer && \ | |
git clone https://github.com/pipelined/mock && \ | |
git clone https://github.com/pipelined/mp3 && \ | |
git clone https://github.com/pipelined/phono && \ |
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
go test ./... -v -race -coverprofile=c.out && go tool cover -html=c.out && rm -r c.out |
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
package config | |
var ( | |
// Supported is the struct that provides validation logic for wav package values. | |
Supported = supported{ | |
bitDepths: map[int]struct{}{ | |
8: {}, | |
16: {}, | |
24: {}, | |
32: {}, |
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
package example | |
import ( | |
"github.com/dudk/phono" | |
"github.com/dudk/phono/asset" | |
"github.com/dudk/phono/pipe" | |
"github.com/dudk/phono/portaudio" | |
"github.com/dudk/phono/track" | |
"github.com/dudk/phono/wav" | |
) |
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
package example | |
import ( | |
"github.com/dudk/phono" | |
"github.com/dudk/phono/pipe" | |
"github.com/dudk/phono/portaudio" | |
"github.com/dudk/phono/wav" | |
) | |
// Example: |
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
package example | |
import ( | |
"github.com/dudk/phono" | |
"github.com/dudk/phono/pipe" | |
"github.com/dudk/phono/portaudio" | |
"github.com/dudk/phono/wav" | |
) | |
// Example: |