A_StartSound's startTime - Additional flags

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

A_StartSound's startTime - Additional flags

Postby Major Cooke » Wed Mar 04, 2020 12:43 pm

Rip and Tear wrote:It may be worth having a special value (-1?) that starts the sound at the sound's LOOP_START marker (https://zdoom.org/wiki/Audio_loop)


From this post, I agree with it but I'd probably have flags instead. These would manipulate startTime to scale based on which is used.

  • SSF_LOOP_START - Starts where the LOOP_START meta is defined. Adapts the startTime so 0 is where LOOP_START begins.
  • SSF_CLIP_TO_LOOP_END - If LOOP_END is included on the sound, then scales startTime's end (1.0) to LOOP_END.
  • SSF_LOOP_END - Starts where the LOOP_END meta is defined, so startTime at 0 would start there and 1.0 would be at the end of the sound file.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests