LibVLC - Audio Length
Hey there - so basically i wanna find a way to get the audio length of a File in seconds without opening it, and I already tried, but i failed, down below I will send the code of my try 🙂 thanks for help if you can
3 Replies
string SoundFolder = Path.Combine(GameFolder, NameOfSound + ".wav");
using (var SoundVLC = new LibVLC())
{
var Sound = new Media(SoundVLC, SoundFolder, FromType.FromLocation);
var SoundLength = Sound.Duration; } Somehow this only gives me a -1 every time even though my folder and the sound is correct.
var SoundLength = Sound.Duration; } Somehow this only gives me a -1 every time even though my folder and the sound is correct.
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
hmmm yeah i guess so, i will just ask them thanks tho, any help is appreciated 🙂
well i can´t find any way to make a ticket on github on the LibVLC github site, because they don´t make that possible somehow lol
ok got into their discord i think i will just wait until my issue is done and then take it down thanks for the help 🙂