op2_sdk:music

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
op2_sdk:music [2016/01/29 20:50] vagabondop2_sdk:music [2016/02/28 20:08] vagabond
Line 4: Line 4:
  
 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 ''enum SongIds''. In order to customize the tracks, place an array of ''SongIds'' in the scenario. Then inform the game of the array via the function ''TethysGame::SetMusicPlayList()''. 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 ''enum SongIds''. In order to customize the tracks, place an array of ''SongIds'' in the scenario. Then inform the game of the array via the function ''TethysGame::SetMusicPlayList()''.
 +
 +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. 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.
Line 37: Line 39:
 ===== Related Source Code ===== ===== Related Source Code =====
  
-TethysGame+//TethysGame//
 <code cpp> <code cpp>
 static void __fastcall SetMusicPlayList(int numSongs, int repeatStartIndex, SongIds* songIdList); static void __fastcall SetMusicPlayList(int numSongs, int repeatStartIndex, SongIds* songIdList);
 </code> </code>
  
-Enums.h+//Enums.h//
 <code cpp> <code cpp>
 enum SongIds  enum SongIds 
  • op2_sdk/music.txt
  • Last modified: 2016/10/12 21:32
  • by 127.0.0.1