- 永久启用pulseaudio
/etc/pulse/client.conf
autospawn = yes
| //github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-local/local.go | |
| import "golang.org/x/net/proxy" | |
| import "github.com/elazarl/goproxy" | |
| import "net/http" | |
| func main(){ | |
| //... | |
| parseServerConfig(config) |
| package main | |
| import( | |
| "golang.org/x/image/bmp" | |
| "image" | |
| "io/ioutil" | |
| "fmt" | |
| "strconv" | |
| "net/http" | |
| "log" | |
| //"mime/multipart" |
| import React from 'react'; | |
| import { | |
| View, | |
| ListView, | |
| Image, | |
| Animated, | |
| PanResponder, | |
| } from 'react-native'; | |
| import LinearGradient from 'react-native-linear-gradient'; |
| #include "jni.h" | |
| JNIEXPORT jlong JNICALL | |
| Java_com_XXX_opus_Encoder_create(JNIEnv* env | |
| , jobject thiz) | |
| { | |
| (void)env;(void)thiz; | |
| int error; | |
| void* enc = (void*)opus_encoder_create(16000, 1, OPUS_APPLICATION_VOIP, &error); |
| package main | |
| import ( | |
| "image" | |
| "os" | |
| "io/ioutil" | |
| "math" | |
| "golang.org/x/image/bmp" | |
| "log" | |
| "bytes" |
| #include <jni.h> | |
| #include <string> | |
| #define _MACRO_CONCAT(a,b) a ## b | |
| #define _MACRO_2_STR(a) #a | |
| #define _TOSTR(a) _MACRO_2_STR(a) | |
| #define JMETHOD_VAR(n) _MACRO_CONCAT(jmethodId, n) | |
| #define JMETHOD_DECLARE(cn,n,s) static jmethodID JMETHOD_VAR(n); | |
| #define JMETHOD_GET(cn, n,s) JMETHOD_VAR(n) = jEnv->GetMethodID(_MACRO_CONCAT(jclass, cn), #n, s); |
| File.stream!("/home/jan/prjs/opus-codec-service/src/git.ogo.run/opuscodec/testprebuilts/far.opus.dong", [], 1) |> Enum.map(fn bl -> :binary.bin_to_list(bl) |> hd end) |> Enum.each(fn b -> if b >= 128 do IO.write "#{b-256}," else IO.write "#{b}," end end) |
| File.stream!("/home/jan/prjs/opus-codec-service/src/git.ogo.run/opuscodec/testprebuilts/far.opus.dong", [], 1) |> Enum.map(fn bl -> :binary.bin_to_list(bl) |> hd end) |> Enum.each(fn b -> if b >= 128 do IO.write "#{b-256}," else IO.write "#{b}," end end) |
| package main | |
| import ( | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| ) | |
| func main() { | |
| rpURL, err := url.Parse("http://10.0.0.125:8080") |