Skip to content

Instantly share code, notes, and snippets.

View BeatUpir's full-sized avatar

BeatUp BeatUpir

View GitHub Profile
BeatUpir / SavWav.cs
Last active May 3, 2020 05:35 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
using System;
using System.IO;
using UnityEngine;
using System.Collections.Generic;
using System.Threading;
public class SavWav {
const int HEADER_SIZE = 44;
struct ClipData{