2,051
edits
(→Which engines use which music type?: state the Kyra FM-Towns games have an optional support for Audio CD playback instead of relying on pure Towns output) |
m (behaviour -> behavior) |
||
Line 20: | Line 20: | ||
=Usage from the engines= | =Usage from the engines= | ||
There are two proposals currently. The first one delegates all the work to the music driver manager involving just one call to it which already returns the music driver created depending on the settings, and it just has to be casted to use it. This ensures a coherent | There are two proposals currently. The first one delegates all the work to the music driver manager involving just one call to it which already returns the music driver created depending on the settings, and it just has to be casted to use it. This ensures a coherent behavior through all the engines: | ||
musicdriver = MusicDriverManager->createDriver(MusicTypePreferenceList(MDT_MT32, MDT_ADLIB, MDT_SPKR)); | musicdriver = MusicDriverManager->createDriver(MusicTypePreferenceList(MDT_MT32, MDT_ADLIB, MDT_SPKR)); | ||
switch (musicdriver->type) { | switch (musicdriver->type) { |
edits