roundware / roundware-web-template

roundware-web-template.vercel.app
1 stars 4 forks source link

Setting min and max duration of audiotracks not working as expected #24

Open gavspav opened 1 year ago

gavspav commented 1 year ago

As ever, everything which follows has a huge caveat of it probably being user error......

If I set the min and max playback duration to 10 seconds in the audiotrack settings I expect (after reading the docs) clips < 10s to play in their entirety and longer clips to just play for 10 seconds.

However what actually happens is that none of the clips play. Each marker goes red for 10 seconds but there is no audio.

hburgund commented 1 year ago

Your expectation is correct! Not sure why this isn't working properly; could be a bug or could be that your fade times are too long. If your fade in/out times are say 10s each, then each clip is going to play, start fading in a bit and then fade out again before it is even audible.

What value of playback duration do things start working again?

gavspav commented 1 year ago

My in and out fade times were less than a second so think it was a bug.

If I set the duration to between 9 and 10 seconds I think I only get the last second of the clip, or nothing if it's a shorter clip. But I'm not 100% on that. I'll check.

I just set the min duration back to zero.

On Fri, Feb 24, 2023 at 2:17 PM Halsey Burgund @.***> wrote:

Your expectation is correct! Not sure why this isn't working properly; could be a bug or could be that your fade times are too long. If your fade in/out times are say 10s each, then each clip is going to play, start fading in a bit and then fade out again before it is even audible.

What value of playback duration do things start working again?

— Reply to this email directly, view it on GitHub https://github.com/roundware/roundware-web-template/issues/24#issuecomment-1443744327, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLAYLVPVG23Z3NE34XGHFDWZC7HZANCNFSM6AAAAAAVG2NZZY . You are receiving this because you authored the thread.Message ID: @.***>

hburgund commented 1 year ago

OK, agreed that this seems like a bug then. Probably just some simple math wrong in the playback pipeline that only becomes obvious at the shorter lengths.

If there are any additional consistencies you can discover, please note them here as that will help us figure it out.

To be clear, are you saying that when the min time is set to 0 and max is 10, things work OK? It's just when they are both set to 10 that this issue happens?

@shreyas-jadhav we can check this out when you have the time.

gavspav commented 1 year ago

Yes I think it's just when you set min and max to the same. The markers behave as expected ie stay red for n seconds. But there is no audio,