Files
@ r3016:b28a60dfd364
Branch filter:
Location: cpp/openttd-patchpack/source/music/null_m.c - annotation
r3016:b28a60dfd364
542 B
text/x-c
(svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion
while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result
Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion
while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result
Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r2189:2faee8988cf3 r2189:2faee8988cf3 r2189:2faee8988cf3 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 r2174:494188320cb1 | /* $Id$ */
#include "../stdafx.h"
#include "../openttd.h"
#include "null_m.h"
static const char* NullMidiStart(const char* const* parm) { return NULL; }
static void NullMidiStop(void) {}
static void NullMidiPlaySong(const char *filename) {}
static void NullMidiStopSong(void) {}
static bool NullMidiIsSongPlaying(void) { return true; }
static void NullMidiSetVolume(byte vol) {}
const HalMusicDriver _null_music_driver = {
NullMidiStart,
NullMidiStop,
NullMidiPlaySong,
NullMidiStopSong,
NullMidiIsSongPlaying,
NullMidiSetVolume,
};
|