museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
81 stars 14 forks source link

Fix bug where realtime selected playback duration was sometimes ignored #142

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

This commit fixes a bug where realtime sources appeared to ignore the the specified playback duration range. In actuality, the realtime source abided by its specified maximum duration specified under the "REALTIME DATA" section. This parameter specifies the duration of oneshot previews and also describes the maximum duration over which a realtime source will be played.

This commit ensures that the playback duration range is bounded by the realtime source duration parameter to make the behaviour more obvious. It also corrects the progress bar surrounding sounds spawned via realtime sources to show the correct duration.

Possibly related to #121.