kira icon indicating copy to clipboard operation
kira copied to clipboard

get length of StreamingSoundData from StreamingSoundHandle

Open walksanatora opened this issue 1 year ago • 3 comments
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.

walksanatora avatar Dec 20 '23 15:12 walksanatora

I just merged in a PR that implements this.

tesselode avatar Dec 22 '23 02:12 tesselode

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?

tesselode avatar Jan 13 '24 08:01 tesselode

I think either or would work. It was just with Sound Data it would have me add another value to my global state struct

walksanatora avatar Jan 13 '24 20:01 walksanatora