This commit is contained in:
parent
a6134dfd3e
commit
1f8942253b
|
@ -25,6 +25,8 @@ Collection of audio utilities for decoding/encoding files and streams.
|
|||
|
||||
## Container packetizers supported
|
||||
|
||||
Only output from Kirika's own encoders is supported.
|
||||
|
||||
| Container | Packetizer | Keep Mode | Sample Numbers | Offset | Notes |
|
||||
|:---------:|:----------:|:---------:|:--------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **FLAC** | ✅ | ✅ | ✅ | ❌ | Uses [mewkiz/flac](https://github.com/mewkiz/flac) for parsing streams. |
|
||||
|
|
|
@ -47,7 +47,6 @@ func TestEncodeAAC(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDecodeAAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -97,7 +96,6 @@ func TestDecodeAAC(t *testing.T) {
|
|||
|
||||
/*
|
||||
func TestDecodeAACMP4(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -130,7 +128,6 @@ func TestDecodeAACMP4(t *testing.T) {
|
|||
*/
|
||||
|
||||
func TestEncodeAACMP4(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -167,7 +164,6 @@ func TestEncodeAACMP4(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestEncodeAACHEv2(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeAAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeALAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -46,7 +45,6 @@ func TestEncodeALAC(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDecodeALAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -188,13 +188,13 @@ func (c AnalyzerChannel) SkipEndSamplesMultiple(wg *sync.WaitGroup, offset *uint
|
|||
|
||||
func NewHasherAudioGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel) {
|
||||
channel = make(AnalyzerChannel, 1)
|
||||
defer close(channel)
|
||||
channel <- &AnalyzerPacket{
|
||||
Samples: make([]int32, samples*channels),
|
||||
Channels: channels,
|
||||
SampleRate: sampleRate,
|
||||
BitDepth: bitDepth,
|
||||
}
|
||||
close(channel)
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeFLAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -42,7 +41,6 @@ func TestEncodeFLAC(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestEncodeFLACOgg(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeMP3(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeOpus(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestEncodeTTA(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
)
|
||||
|
||||
func TestPacketizeADTS(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -13,7 +13,6 @@ import (
|
|||
)
|
||||
|
||||
func TestPacketizeFLAC(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
)
|
||||
|
||||
func TestPacketizeMP3(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
)
|
||||
|
||||
func TestPacketizeOgg(t *testing.T) {
|
||||
t.Parallel()
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
@ -13,7 +13,6 @@ import (
|
|||
)
|
||||
|
||||
func TestReplayGainNormalization24(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
|
@ -43,7 +42,6 @@ func TestReplayGainNormalization24(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestReplayGain24(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
|
@ -71,7 +69,6 @@ func TestReplayGain24(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestReplayGain16(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample16)
|
||||
if err != nil {
|
||||
|
@ -99,7 +96,6 @@ func TestReplayGain16(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestAlbumReplayGain(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
location := test.TestSampleLocations[1]
|
||||
entries, err := os.ReadDir(location)
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestHasher24(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample24)
|
||||
if err != nil {
|
||||
|
@ -48,7 +47,6 @@ func TestHasher24(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestHasher16(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample16)
|
||||
if err != nil {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
//go:build !disable_format_tta && !disable_codec_tta
|
||||
// +build !disable_format_tta,!disable_codec_tta
|
||||
|
||||
package hasher
|
||||
|
||||
|
@ -13,7 +12,6 @@ import (
|
|||
)
|
||||
|
||||
func TestHasher16TTA(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fp, err := os.Open(test.TestSingleSample16TTA)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue