From da6fce889b9877b3f331f99a193f4132c9ba001a Mon Sep 17 00:00:00 2001 From: Clouds Flowing Date: Sun, 14 Sep 2025 16:07:06 +0800 Subject: [PATCH 1/3] rename package to MP3Codec --- Project.toml | 3 ++- src/{MP3.jl => MP3Codec.jl} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename src/{MP3.jl => MP3Codec.jl} (100%) diff --git a/Project.toml b/Project.toml index 186c679..58ca757 100644 --- a/Project.toml +++ b/Project.toml @@ -1,4 +1,4 @@ -name = "MP3" +name = "MP3Codec" uuid = "84e92333-4865-4a61-b1f2-d6ec26b83890" version = "1.1.0" @@ -11,6 +11,7 @@ LAME_jll = "c1c5ebd0-6772-5130-a774-d5fcae4a789d" mpg123_jll = "3205ef68-7822-558b-ad0d-1b4740f12437" [compat] +julia = "1.6" FileIO = "1" FixedPointNumbers = "0.8" SampledSignals = "2" diff --git a/src/MP3.jl b/src/MP3Codec.jl similarity index 100% rename from src/MP3.jl rename to src/MP3Codec.jl From 2d05cea882457988cfae2bc8295075ddad8ee2bc Mon Sep 17 00:00:00 2001 From: Clouds Flowing Date: Sun, 14 Sep 2025 16:12:44 +0800 Subject: [PATCH 2/3] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 184ed20..987eccd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MP3 -*This project is unmaintained* +*This project is in maintenance mode* [![Tests](https://github.com/JuliaAudio/MP3.jl/actions/workflows/Tests.yml/badge.svg)](https://github.com/JuliaAudio/MP3.jl/actions/workflows/Tests.yml) [![codecov.io](http://codecov.io/github/JuliaAudio/MP3.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaAudio/MP3.jl?branch=master) From 1ff3b7ee49de01f5634e2201aedf226082d83b77 Mon Sep 17 00:00:00 2001 From: Clouds Flowing Date: Sun, 14 Sep 2025 16:19:17 +0800 Subject: [PATCH 3/3] fix test --- src/MP3Codec.jl | 4 ++-- test/runtests.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MP3Codec.jl b/src/MP3Codec.jl index c0d4f11..e97f8d7 100644 --- a/src/MP3Codec.jl +++ b/src/MP3Codec.jl @@ -1,4 +1,4 @@ -module MP3 +module MP3Codec # package code goes here using SampledSignals @@ -35,7 +35,7 @@ function __init__() # MP3 files with ID3v1 (or no tags) and ID3v2 tags have different headers magic = (UInt8[0xff, 0xfb], UInt8[0x49, 0x44, 0x33]) - add_format(format"MP3", magic, [".mp3"], [MP3]) + add_format(format"MP3", magic, [".mp3"], [MP3Codec]) end end # module diff --git a/test/runtests.jl b/test/runtests.jl index c43331c..021ad6b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,5 @@ using FileIO -using MP3 +using MP3Codec using SampledSignals using Test @@ -63,6 +63,6 @@ end @test audio.samplerate == 44100 @test size(audio, 2) == size(reference, 2) @test abs(size(audio, 1) - size(reference, 1)) <= DELAY_THRESHOLD - + rm(outpath) end