Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add music track end call back or queuing? #183

Closed
zturtleman opened this issue Mar 3, 2014 · 1 comment
Closed

Add music track end call back or queuing? #183

zturtleman opened this issue Mar 3, 2014 · 1 comment

Comments

@zturtleman
Copy link
Owner

World of Padman has a special keyword for music loop (<nextsongCMD>) to run a specific command (wop_nextsong) when intro music ends. (Presumably to select next track.)

WoP handles this in S_CodecOpenStream in snd_codec.c with additional changes in snd_openal.c.

I'll probably look into how to add this for multiple streams. Does engine need to be aware of a specific 'loop' track at all? Just need cgame to queue next before it ends somehow?

@zturtleman zturtleman added this to the Spearmint 1.0 PLUS EDITION milestone Mar 3, 2014
@zturtleman
Copy link
Owner Author

It's now possible to know when the track ended and queue next track. See streaming sound section on CGame API wikipage.

@zturtleman zturtleman modified the milestones: Spearmint 0.1, Spearmint 1.0 Mar 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant