Skip to content

Instantly share code, notes, and snippets.

@solindev
solindev / cargo.toml
Last active December 7, 2019 18:05
sound sending/receiving (don't work because of data corruption)
[dependencies]
anyhow = "1.0.12"
cpal = "0.10.0"
ringbuf = "0.1.6"
bincode = "1.2.0"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["audiosessiontypes", "audioclient", "coml2api", "combaseapi", "debug", "devpkey", "handleapi", "ksmedia", "mmdeviceapi", "objbase", "std", "synchapi", "winbase", "winuser"] }
#![windows_subsystem = "windows"]
mod player;
mod env_object;
use player::*;
use env_object::*;
use ggez::*;
use ggez::nalgebra as na;
use std::path;
@solindev
solindev / playground.rs
Created October 21, 2019 20:22 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#![allow(unused)]
trait Show<T: std::fmt::Debug> {
fn show(&self);
}
trait Init<T : Copy + std::fmt::Debug> : Show<T> {
fn init(&mut self, param: T);
}