Victoria icon indicating copy to clipboard operation
Victoria copied to clipboard

Error checks for JavaBinaryWriter and tweaks to the TrackEncoder

Open RofLBotZ94 opened this issue 1 year ago • 2 comments

After further testing of the TrackEncoder, I noticed that some error checks and tweaking were needed.

RofLBotZ94 avatar Aug 06 '22 18:08 RofLBotZ94

Meanwhile, I also caught another problem caused by that change that I made to the TrackDecoder to also read the "source" and "position" properties, which happens on "local" and "http" tracks, because in those cases Lavalink attaches a "probe" property (from what I can understand it's generally just the type of the track i.e mp3, ogg, etc...) between the "source" and "position" properties, so I "fixed" it by just ignoring it with a call to ReadString

RofLBotZ94 avatar Aug 06 '22 23:08 RofLBotZ94

And by "fixing" I also broke the other kinds of tracks, so I added a check to the "source", I'm really sorry should have noticed it before I pushed that commit, if you want you can close this and I'll open a new PR, to avoid these unnecessary commits.

RofLBotZ94 avatar Aug 06 '22 23:08 RofLBotZ94