kira
kira copied to clipboard
get length of StreamingSoundData from StreamingSoundHandle
trafficstars
it would be a nice feature if we could query the total length of the audio in a StreamingSound(Data/Handle) I tried to look into making a MediaSource and piping interleaved PCM into it but... I dont know if that would work.
I just merged in a PR that implements this.
I think I misread this issue when I first looked at it. @walksanatora do you specifically need to be able to get the duration from a StreamingSoundHandle? Or would querying the StreamingSoundData suffice?
I think either or would work. It was just with Sound Data it would have me add another value to my global state struct