oki

package
v0.0.0-...-244be32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ADPCMToPCM

func ADPCMToPCM(adpcm []byte) []int16

func Build

func Build(v bool, board *boards.Board) ([]byte, *code.Code)

func PCMtoADPCM

func PCMtoADPCM(wav []int16) []byte

Types

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

type OkiRom

type OkiRom struct {
	Phrases [][]byte
}

func NewOkiROM

func NewOkiROM() OkiRom

func OpenOKI

func OpenOKI(rom []byte) *OkiRom

func (*OkiRom) AddPhrase

func (o *OkiRom) AddPhrase(phrase []byte)

type OkiRomEntry

type OkiRomEntry struct {
	// contains filtered or unexported fields
}

type Wav

type Wav struct {
	// contains filtered or unexported fields
}

type WaveFmt

type WaveFmt struct {
	Subchunk1ID   string // Must be "fmt "
	Subchunk1Size uint32 // 16 for PCM
	AudioFormat   uint16 // PCM = 1
	NumChannels   uint16 // Mono 1, Stereo = 2,
	SampleRate    uint32 // 44100 for CD-Quality
	ByteRate      uint32 // SampleRate * NumChannels * BitsPerSample / 8
	BlockAlign    uint16 // NumChannels * BitsPerSample / 8 (number of bytes per sample)
	BitsPerSample uint16 // 8 bits, 16 bits..
}

type WaveHeader

type WaveHeader struct {
	ChunkID   string
	ChunkSize uint32
	Format    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL