XNA Music mixing real-time

Posted by Adam L. S. on Stack Overflow See other posts from Stack Overflow or by Adam L. S.
Published on 2012-04-14T11:17:55Z Indexed on 2012/04/14 11:29 UTC
Read the original article Hit count: 281

Filed under:
|
|
|
|

I've created a "format" to store segments of music (prelude part, repeated part, ending part) and time information for these segments (offset, scored length) so I can mix it up in real-time as if it were one piece of music, while repeating the repeated part (optionally) indefinitely. This way, the segments can store decay where the next segment is played, while the previous one is finished. (I've created a player for this in Java, and used the Clip class.)

I wanted this format, so I can provide a finite length music (for a jukebox feature), while I play infinite length music in-games.

However, when I wanted to code a class in XNA that manages this "format" I've noticed, that there is no obvious way to play "Songs" simultaneously/overlapped. How can I do this/what is the best practice, not leaving the XNA framework? (I don't want to create infinite play-lists.)

© Stack Overflow or respective owner

XNA Music mixing real-time

Posted by Adam L. S. on Super User See other posts from Super User or by Adam L. S.
Published on 2012-04-14T10:50:35Z Indexed on 2012/04/14 11:34 UTC
Read the original article Hit count: 281

Filed under:
|
|
|
|

I've created a "format" to store segments of music (prelude part, repeated part, ending part) and time information for these segments (offset, scored length) so I can mix it up in real-time as if it were one piece of music, while repeating the repeated part (optionally) indefinitely. This way, the segments can store decay where the next segment is played, while the previous one is finished. (I've created a player for this in Java, and used the Clip class.)

I wanted this format, so I can provide a finite length music (for a jukebox feature), while I play infinite length music in-games.

However, when I wanted to code a class in XNA that manages this "format" I've noticed, that there is no obvious way to play "Songs" simultaneously/overlapped. How can I do this/what is the best practice, not leaving the XNA framework? (I don't want to create infinite play-lists.)

© Super User or respective owner

Related posts about c#

Related posts about XNA