Zeugma440 / atldotnet

Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
MIT License
459 stars 61 forks source link

Fresh Wav readed from a recorder and saved with ATL get error on save. #195

Closed artofnois closed 1 year ago

artofnois commented 1 year ago

Hi Again. Til today I allways use old files witch edited o managed in Soundminer. This week, I began to use new and fresh files from my recorder. I have not use other programs... Edited with my program the tags and today I tried a massive "Embbed metadata to file". I get an error on every file. So, I tried get one file open with ATL and save only .

    static void Main(string[] args)
    {
        Track t1 = new Track(@"C:\_PRuAudio\P\Monte Laturce - Cruz - 230430_011_Tr1_2.WAV");
        Console.WriteLine("----------------------------------");
        bool resultado = t1.Save();

        Console.WriteLine("----------------------------------");
        Console.WriteLine("Resultado: {0}", resultado );
    }

And I always get the same error. So for the ATL library, this file have a problem.

Secone try: Read the file with soundminer with no changes, save and then tried with my program: No problem. All is OK.

I think is some parameter that ATL need to work, but recorder don't fill when recording. (I have change my program because recorder don't fill metadata : Duration, samplerate, etc. So I had to use NAudio library to complete it)

The example file: https://drive.google.com/file/d/17Ly1XnrGa0_sXKGWAFXydNjQgEvtpHPF/view?usp=share_link when download file say me to delete. (Used version ATL 4.31)

Zeugma440 commented 1 year ago

Thanks for the detailed report ! I'll give it a look as soon as I can (currently busy with another project).

Zeugma440 commented 1 year ago

Fixed for next release

artofnois commented 1 year ago

Thanks a loteWhat was the problem?Jaime Blanco

Zeugma440 commented 1 year ago

Something I created to clean IXML chunks up had a bug. Nothing wrong on your side 😄

Zeugma440 commented 1 year ago

Fix is available on today's v4.32

artofnois commented 1 year ago

I updated the version. Now all is OK. Thanks

Zeugma440 commented 1 year ago

You're welcome ;)