-
Is there something special i have to think about when reading files from streams? It seems like for any audio file i try i just get 0 values, while if i enter a path to the file the values seem fine. using var fileStream = System.IO.File.OpenRead("C:\testwav.wav"); Track audioInfo = new("C:\testwav.wav"); |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
You don't seem to do anything wrong here. I've just used the unit test below with a WAV file and the atldotnet/ATL.test/IO/HighLevel.cs Line 950 in 4bdece1 Are you sure you're not doing anything else with your stream between creating it and giving it to ATL ? If so, please reset its position to |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what I did wrong there, i can't reproduce it. Sorry for bothering you about this. If I run into any issue again ill make sure I create git repo with a working minimal sample including whatever i'm using to test it to make sure it can be reproduced in a clean scenario. |
Beta Was this translation helpful? Give feedback.
-
Okay some more testing and a repo setup. When i run this program https://github.com/endasil/soundloaderror to test the accompanied flac file, I get length 0 when loading with filestream. When I load directly with path i get the length. What could the issue be here? |
Beta Was this translation helpful? Give feedback.
I'm not sure what I did wrong there, i can't reproduce it. Sorry for bothering you about this. If I run into any issue again ill make sure I create git repo with a working minimal sample including whatever i'm using to test it to make sure it can be reproduced in a clean scenario.