Commit Graph

26 Commits (acb4f49de02e7f77494c7d6b8e5a7f67f17b504e)

Author SHA1 Message Date
tron 772fbda3e3 (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular 18 years ago
tron a2362674e3 (svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc. 18 years ago
tron f764f9a5b0 (svn r5135) Forgotten Id tag 18 years ago
peter1138 bd6aba9827 (svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level. 18 years ago
bjarni 8744075a6c (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
19 years ago
Darkvater c9d8fb8f07 (svn r3448) - Fix: wrap up some MinGW warnings 19 years ago
bjarni 1adc1738f7 (svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default 19 years ago
tron 0b936c3222 (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
19 years ago
bjarni cebca8e61b (svn r3022) -feature: [OSX] OSX now uses quicktime to play midi files
this eliminates the long pauses between songs and the "leaving process hehind" bug (moebius_)
19 years ago
tron bdbceba0cb (svn r2984) Use adequate types, this should aid portability a bit 19 years ago
Darkvater cffcdf07d3 (svn r2960) - Fix: [ 1227779 ] Fix win32 midi volume level control which didn't work (glx) 19 years ago
tron 2a7c2f0905 (svn r2946) Remove redundant calls, simplify a check and terminate the argument list of execlp() as suggested by the manpage to make it correctly work on 64bit platforms 19 years ago
tron 3942ff203e (svn r2938) -Fix: Exit the child of the extmidi backend with _exit() instead of exit(), because we don't want any atexit handlers - especially flushing output streams - to run, if exec() fails
Half a credit is due to Darkvater (;
19 years ago
Darkvater 91c217867f (svn r2922) Fix crash with directmusic if no music files could be found to play 19 years ago
tron c74903dc80 (svn r2911) Deinitialise the DirectMusic driver like it's done in the example code in MSDN, this should fix a strange crash upon deinitialising wave out sound 19 years ago
tron 1ec4c29c0d (svn r2827) BeOS meets all prerequisites for extmidi 19 years ago
tron 25f72e40cc (svn r2730) -Fix: Fail if the sequencer can't play audio
Also check the return value of CreateThread()
19 years ago
tron 81be08bc21 (svn r2712) Overhaul DirectMusic MIDI backend:
- Merge the .c and .cpp part into one file
- Properly deinitialize at the end
- Remove "experimental" status
- Miscellaneous smaller changes
-Fix: Volume control works now
19 years ago
tron 272e5de747 (svn r2707) Missed the paths in the BeOS MIDI player, sorry for all the noise 19 years ago
tron 91f67d3bbe (svn r2705) Fix #include paths and remove unnecessary #includes 19 years ago
tron 2faf06f4cd (svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build 19 years ago
tron 647cbd6bdd (svn r2701) Insert Id tags into all source files 19 years ago
orudge b7d4beb440 (svn r2689) - Split OS/2 music driver into os2_m.c, update project file 19 years ago
tron 9bb81b8eef (svn r2688) MSVC and Watcom can't handle identical file names in different directories, oh my... 19 years ago
tron c07e074a33 (svn r2687) Make a variable static 19 years ago
tron 126fed74d6 (svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
This results in shorter and hopefully easier to maintain files.
Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
19 years ago