modulepackage
0.0.0-20240411020228-c5379f9b5b61
Repository: https://github.com/mattetti/audio.git
Documentation: pkg.go.dev
# README
Production ready/stable version available under a dedicated org
go-audio for the non-playground version.
See sub packages
# Packages
Package aiff is a AIFF/AIFC decoder and encoder.
caf package implements an Apple Core Audio Format (CAF) parser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MIDI package is a midi format parser that parses the content of a midi stream
and asyncronously send the data to a provided channel
or collect the data into an accessible struct,
*/.
mp3 is a package used to access mp3 information See: http://sea-mist.se/fou/cuppsats.nsf/all/857e49b9bfa2d753c125722700157b97/$file/Thesis%20report-%20MP3%20Decoder.pdf Uses some code from https://github.com/tcolgate/mp3 under MIT license Tristan Colgate-McFarlane and badgerodon.
Package riff is package implementing a simple Resource Interchange File Format
(RIFF) parser with basic support for sub formats such as WAV.
No description provided by the author
Package wav is a package allowing developers to decode and encode audio PCM
data using the Waveform Audio File Format https://en.wikipedia.org/wiki/WAV
*/.
# Functions
AvgInt averages the int values passed.
IeeeFloatToInt converts a 10 byte IEEE float into an int.
Int32toInt24LEBytes converts a int32 into a 3 byte int24 representation.
IntMaxSignedValue returns the max value of an integer based on its memory size.
IntToIeeeFloat converts an int into a 10 byte IEEE float.
NewPCMByteBuffer returns a new PCM buffer backed by the passed float samples.
NewPCMFloatBuffer returns a new PCM buffer backed by the passed float samples.
NewPCMIntBuffer returns a new PCM buffer backed by the passed integer samples.
Uint24to32 converts a 3 byte uint23 into a uint32 BigEndian!.
Uint32toUint24Bytes converts a uint32 into a 3 byte uint24 representation.
# Variables
No description provided by the author
FormatMono2250016bBE mono 16bit 22.5kHz AIFF like format.
FormatMono2250016bLE mono 16bit 22.5kHz AIFF like format.
FormatMono225008bBE mono 8bit 22.5kHz AIFF like format.
FormatMono225008bLE mono 8bit 22.5kHz AIFF like format.
FormatMono4410016bBE mono 16bit 44.1kHz AIFF like format.
FormatMono4410016bLE mono 16bit 44.1kHz AIFF like format.
FormatMono4410024bBE mono 24bit 44.1kHz AIFF like format.
FormatMono4410024bLE mono 24bit 44.1kHz AIFF like format.
FormatMono4410032bBE mono 32bit 44.1kHz AIFF like format.
FormatMono4410032bLE mono 32bit 44.1kHz AIFF like format.
FormatMono441008bBE mono 8bit 44.1kHz AIFF like format.
FormatMono441008bLE mono 8bit 44.1kHz AIFF like format.
FormatStereo2250016bBE Stereo 16bit 22.5kHz AIFF like format.
FormatStereo2250016bLE Stereo 16bit 22.5kHz AIFF like format.
FormatStereo225008bBE Stereo 8bit 22.5kHz AIFF like format.
FormatStereo225008bLE Stereo 8bit 22.5kHz AIFF like format.
FormatStereo4410016bBE Stereo 16bit 44.1kHz AIFF like format.
FormatStereo4410016bLE Stereo 16bit 44.1kHz AIFF like format.
FormatStereo4410024bBE Stereo 24bit 44.1kHz AIFF like format.
FormatStereo4410024bLE Stereo 24bit 44.1kHz AIFF like format.
FormatStereo4410032bBE Stereo 32bit 44.1kHz AIFF like format.
FormatStereo4410032bLE Stereo 32bit 44.1kHz AIFF like format.
FormatStereo441008bBE Stereo 8bit 44.1kHz AIFF like format.
FormatStereo441008bLE Stereo 8bit 44.1kHz AIFF like format.
RootA or concert A is the reference frequency for A4.
# Type aliases
DataFormat is an enum type to indicate the underlying data format used.