GithubHelp home page GithubHelp logo

Comments (7)

andurshakur avatar andurshakur commented on June 17, 2024 1

ok so apparently FileInfo DOES lock files until disposed
so got a step further but it still doesnt seem to tag as expected
i get this output now:

========================================
Found 1 regions
#0 : 4->74659580(71,2 MB) IsBufferable = True

------------ REGION 0
------ ZONE id3 @74659580
Allocating 0 B
newTagSize : 0 B

DONE

Found 1 regions
#0 : 4->74659580(71,2 MB) IsBufferable = True

------------ REGION 0
Buffering 71,2 MB
------ ZONE bext@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE cue @74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE disp.0@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE iXML@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE LIST.adtl@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE LIST.INFO@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE smpl@74659580
Allocating 0 B
newTagSize : 0 B

DONE

from atldotnet.

andurshakur avatar andurshakur commented on June 17, 2024 1

ok it actually works as expected now so the culprit was FileInfo!
thank you very much for a great library and for your time! <3

from atldotnet.

andurshakur avatar andurshakur commented on June 17, 2024 1

"fun" sidenote is that apparently FileInfo does release filelocks on flac files before disposing of the fileinfo object (since it worked fine with all flac files from the beginning)

from atldotnet.

nlogozzo avatar nlogozzo commented on June 17, 2024

Could you upload the wav file here or provide a link to it?

from atldotnet.

andurshakur avatar andurshakur commented on June 17, 2024

i cannot upload wav files here but an example can be grabbed from here:

https://mega.nz/file/1YNUjCYJ#-8e0SeiuRM4aOEARYTSZi7LZY-6vpD-2LmWTTXUGk2o

it happens with all my wave files

from atldotnet.

Zeugma440 avatar Zeugma440 commented on June 17, 2024

I have no issue when tagging the WAV file you provided.

Have you tried enabling the ATL logger by calling new ConsoleLogger()?

from atldotnet.

andurshakur avatar andurshakur commented on June 17, 2024

great news! then i just need to sort out what my local issue is

i cant seem to find any logging options in atl itself
in the debug window i do see this exception: Exception thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
however it doesnt get caught in my try/catch and not 100% sure its related

edit: i found this code snippet in the docs (must have scrolled past it before) Receiving ATL logs in your app
and i am seeing these log items come through

The process cannot access the file 'D:\tmp\mental\Alien Mental - Asio.wav' because it is being used by another process.

followed by

at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at ATL.AudioData.AudioDataManager.UpdateTagInFile(TagData theTag, TagType tagType, ProgressManager writeProgress)

the only way i am "touching" the files before are with Directory.GetFiles() and FileInfo
could they be locking the file?

from atldotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.