Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
op2_sdk:music [2016/01/29 19:03] – created vagabond | op2_sdk:music [2016/10/12 21:32] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
'' | '' | ||
+ | |||
+ | Each scenario in Outpost 2 can be tailored to use a specific subset of the available in game music. All music tracks are represented in the '' | ||
+ | |||
+ | You can use the function parameter repeatStartIndex on SetMusicPlayList in order to designate the index where repeat play starts. This allows setting some songs that are only played when the scenario is initially started and then not playing these songs later in the scenario. | ||
+ | |||
+ | Below is a table of the names of the MP3 tracks compared to their equivalent SDK enum. The MP3 tracks can be downloaded from the Outpost Universe Outpost 2 downloads page. | ||
+ | |||
+ | ^Song MP3 Name^Song Enum^ | ||
+ | |Eden & Plymouth 1|songEP41| | ||
+ | |Eden & Plymouth 2|songEP42| | ||
+ | |Eden & Plymouth 3|songEP43| | ||
+ | |Eden & Plymouth 4|songEP51| | ||
+ | |Eden & Plymouth 5|songEP52| | ||
+ | |Eden & Plymouth 6|songEP61| | ||
+ | |Eden & Plymouth 7|songEP62| | ||
+ | |Eden & Plymouth 8|songEP63| | ||
+ | |Eden 1|songEden11| | ||
+ | |Eden 2|songEden21| | ||
+ | |Eden 3|songEden22| | ||
+ | |Eden 4|songEden31| | ||
+ | |Eden 5|songEden32| | ||
+ | |Eden 6|songEden33| | ||
+ | |Plymouth 1|songPlymth11| | ||
+ | |Plymouth 2|songPlymth12| | ||
+ | |Plymouth 3|songPlymth21| | ||
+ | |Plymouth 4|songPlymth22 (main menu music)| | ||
+ | |Plymouth 5|songPlymth31| | ||
+ | |Plymouth 6|songPlymth32| | ||
+ | |Plymouth 7|songPlymth33| | ||
+ | |Static 1|songStatic01| | ||
+ | |Static 2|songStatic02| | ||
+ | |Static 3|songStatic03| | ||
+ | |Static 4|songStatic04 (standard multiplayer theme)| | ||
+ | |Static 5|songStatic05| | ||
+ | |||
+ | ===== Related Source Code ===== | ||
+ | |||
+ | // | ||
+ | <code cpp> | ||
+ | static void __fastcall SetMusicPlayList(int numSongs, int repeatStartIndex, | ||
+ | </ | ||
+ | |||
+ | //Enums.h// | ||
+ | <code cpp> | ||
+ | enum SongIds | ||
+ | { | ||
+ | songEden11 = 0, // 0x0 | ||
+ | songEden21, | ||
+ | songEden22, | ||
+ | songEden31, | ||
+ | songEden32, | ||
+ | songEden33, | ||
+ | songEP41, | ||
+ | songEP42, | ||
+ | songEP43, | ||
+ | songEP51, | ||
+ | songEP52, | ||
+ | songEP61, | ||
+ | songEP62, | ||
+ | songEP63, | ||
+ | songPlymth11, | ||
+ | songPlymth12, | ||
+ | songPlymth21, | ||
+ | songPlymth22, | ||
+ | songPlymth31, | ||
+ | songPlymth32, | ||
+ | songPlymth33, | ||
+ | songStatic01, | ||
+ | songStatic02, | ||
+ | songStatic03, | ||
+ | songStatic04, | ||
+ | songStatic05, | ||
+ | }; | ||
+ | </ | ||
===== Sample Code ===== | ===== Sample Code ===== | ||
Line 8: | Line 82: | ||
<code cpp> | <code cpp> | ||
+ | SongIds songs[] = { | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | SongIds:: | ||
+ | }; | ||
int InitProc() | int InitProc() | ||
{ | { | ||
- | TethysGame:: | + | TethysGame:: |
} | } | ||
+ | |||
</ | </ | ||
Line 20: | Line 103: | ||
- //Go Back to [[op2_sdk: | - //Go Back to [[op2_sdk: | ||
- //Go Back to [[outpost_2: | - //Go Back to [[outpost_2: | ||
- | - //Go Back to [[http:// | + | - //Go Back to [[http:// |