Skip to content

Instantly share code, notes, and snippets.

@ParkWardRR
ParkWardRR / macos-force-spatial-audio-external-dac.md
Last active July 26, 2026 22:05
How to Force macOS Spatial Audio on Any DAC or Headphones

Force macOS Spatial Audio Rendering for Generic Headphones & USB DACs

Summary: macOS normally restricts system-level Spatial Audio (HRTF processing of 5.1/7.1 content) to AirPods and built-in speakers. By creating a specific Aggregate Device configuration, you can trick the OS into performing the binaural rendering and routing the processed audio to any USB DAC or wired headphone output. Result Surround sound content played through standard stereo headphones sounds directional/atmospheric rather than just left/right.


Glossary

Term Definition
# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]
@Kyngo
Kyngo / xboxwol.js
Created January 9, 2021 22:16
Boot an Xbox via LAN
#!/usr/bin/env node
/**
* This script crafts a magic packet for an Xbox One to boot up from the network.
* This has been tested on an Xbox One X in a sleeping state,
* it might not work if the console is totally powered off.
* No dependencies needed, just copy the script and off you go.
* You're free to use this as you wish, but consider mentioning me in your project's credits :)
*
* Example usage: ./xboxwol.js --ip=192.168.254.100 --liveid=F12345ABCDE12ABX
# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]
@ditzel
ditzel / KdTree.cs
Last active September 15, 2025 15:31
k-d Tree
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
public class KdTree<T> : IEnumerable<T>, IEnumerable where T : Component
{
protected KdNode _root;
protected KdNode _last;
@reidscarboro
reidscarboro / LoadingDots.cs
Created May 10, 2017 13:29
Bouncing loading dots in Unity using DoTween
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class LoadingDots : MonoBehaviour {
//the total time of the animation
public float repeatTime = 1;
//the time for a dot to bounce up and come back down
override func viewDidLoad() {
super.viewDidLoad()
setText()
NSNotificationCenter.defaultCenter().addObserver(self, selector: "setText", name: LCLLanguageChangeNotification, object: nil)
}
@IBAction func IndexChanged(sender: UISegmentedControl) {
let language: String
switch self.LangChoser.selectedSegmentIndex
{
@marcboeren
marcboeren / 1.UIStoryboardSegueFromRight.swift
Created March 19, 2015 20:02
Segue from Right (Slide the next controllers view in from right to left (and back))
import UIKit
class UIStoryboardSegueFromRight: UIStoryboardSegue {
override func perform()
{
let src = self.sourceViewController as UIViewController
let dst = self.destinationViewController as UIViewController
src.view.superview?.insertSubview(dst.view, aboveSubview: src.view)
@unity3diy
unity3diy / unity 2d camera follow
Last active January 22, 2026 15:48
unity 2d camera follow script, add this script to camera and drag character or your object into it. simple!
using UnityEngine;
using System.Collections;
public class FollowCamera : MonoBehaviour {
public float interpVelocity;
public float minDistance;
public float followDistance;
public GameObject target;
public Vector3 offset;
@NovaSurfer
NovaSurfer / FadeInOut.cs
Last active February 5, 2022 15:59
Unity3D screen fading script (using new UI)
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.SceneManagement;
public class ScreenFader : MonoBehaviour
{
public Image FadeImg;
public float fadeSpeed = 1.5f;
public bool sceneStarting = true;