Skip to content

mochi-neko/simple-audio-codec-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-audio-codec-unity

Provides simple decoding and encoding of audio codecs by NAudio for Unity.

Features

  • Low load to the main thread of Unity
    • Runs decoding of data on a thread pool using UniTask and set data to AudioClip on the main thread.
  • Low memory allocation
    • Decodes WAV file for each block of frames with array buffers.

How to import by UnityPackageManager

{
  "dependencies": {
    "com.mochineko.simple-audio-codec-unity": "https://github.com/mochi-neko/simple-audio-codec-unity.git?path=/Assets/Mochineko/SimpleAudioCodec#0.2.0",
    "com.naudio.core": "https://github.com/mochi-neko/simple-audio-codec-unity.git?path=/Assets/NAudio/NAudio.Core#0.2.0",
    "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",
    ...
  }
}

Avairable codecs

  • WAV
    • Decoding
    • Encoding
  • MP3
    • Decoding
    • Encoding

How to use

See Samples or Tests.

Changelog

See CHANGELOG.

3rd Party Notices

See NOTICE.

License

MIT License.

About

Provides simple decoding and encoding of audio codecs for Unity.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages