summaryrefslogtreecommitdiff
path: root/src/music/dmusic.cpp
AgeCommit message (Collapse)Author
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-07-03Fix: Globally apply preprocessor directive coding styleTechGeekNZ
Global; except for the 32-bit SSE blitter, which has some #DEFINEs in not-very-nice places.
2020-06-05Codechange: remove #ifdef from .cpp files to exclude featuresPatric Stout
With CMake, these files are simply not compiled to start with.
2020-05-21Codechange: Use std::string in the driver and blitter selection code.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-07-04Fix: Correctly reset playback between songs in DMusic driverNiels Martin Hansen
2019-07-04Codechange: Use common source for well-known SysEx messages in Windows music ↵Niels Martin Hansen
drivers
2019-07-04Codechange: Add some const in preparationNiels Martin Hansen
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-06Codechange: Replace custom thread code with C++11 thread objects.Michael Lutz
We assume a conforming C++11 compiler environment that has a valid <thread>-header. Failure to run a real thread is handled gracefully.
2019-04-06Codechange: Replace custom mutex code with C++11 mutex'es.Michael Lutz
A conforming compiler with a valid <mutex>-header is expected. Most parts of the code assume that locking a mutex will never fail unexpectedly, which is generally true on all common platforms that don't just pretend to be C++11. The use of condition variables in driver code is checked.
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2018-07-24Fix: dmusic compilation with MSYS2/MINGWglx
2018-07-19Codechange: Rearrange struct packing defines and make MinGW use _Pragma pack ↵Charles Pigott
style
2018-06-15Change: Improved looping of title songNiels Martin Hansen
2018-06-15Change: Compensate for MIDI transmission time when skipping start of songNiels Martin Hansen
2018-06-15Change #6684: Cutting point overrides for music base setsNiels Martin Hansen
This improves bad looping of title screen song from Windows TTD, and fixes a long silence at the end of "Can't get there from here" from Windows TTD.
2018-06-05Change: DOS music loading for non-Windows music driversNiels Martin Hansen
2018-06-05Codechange: Pass a MusicSongInfo struct instead of bare filename to music ↵Niels Martin Hansen
drivers. Preparation for later extending the info passed to music drivers.
2018-05-26Change: [Win32] Parse and load DLS files for the DirectMusic driver without ↵Michael Lutz
relying on high-level functions.
2018-05-26Change: [Win32] Replace the current high-level Direct Music driver with a ↵Michael Lutz
low-level driver that directly works with MIDI data. This allows using different music sources besides standard MIDI files on disk.
2018-04-11Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation (#6703)Patric Stout
Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action This fixes #6652.
2015-08-10(svn r27380) -Fix: [Win32] Compilation with MSVC2015.michi_cc
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-05-20(svn r25269) -Feature [FS#5552]: [Win32] Driver param for the DirectMusic ↵michi_cc
driver to specify the ouput port to use. (Based on patch by gulikoza)
2013-05-20(svn r25268) -Codechange: [Win32] Simplify resource deallocation in case ↵michi_cc
initializing the DirectMusic driver fails.
2011-12-21(svn r23648) -Revert (r23646): partial revert; nobody has to know about my ↵truebrain
local changes and attempts
2011-12-21(svn r23646) -Fix [FS#4901]: rescan the Game Scripts when done downloading one.truebrain
2010-07-09(svn r20105) -Revert (r20102) [FS#3938]: resetting DirectMusic completely, ↵rubidium
although working, causes a temporary freeze of OpenTTD. As MCI behaves better than DirectMusic that has become the default music driver; small delay between songs beats wrongly pitched/bad sounding songs
2010-07-09(svn r20102) -Fix: OpenMSX music sounds odd after certain songs are played. ↵rubidium
Likely because the instruments weren't reset properly
2010-06-27(svn r20024) -Codechange: Remove the need to link with dxguid.lib for windows.michi_cc
2009-08-31(svn r17336) -Codechange: move some os specific files into src/os/rubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-04-10(svn r16012) -Codechange: Code style clean up.peter1138
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-05-16(svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much ↵glx
stuff
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-01-13(svn r11826) -Fix (r10444): at least one instance of dmusic driver is needed ↵glx
for it to be registered and usable
2007-07-05(svn r10444) -Codechange: switch to c++ classes and inheritance for ↵peter1138
sound/music/video drivers, using self-registration based on the blitter-model.
2007-04-17(svn r9662) -Documentation: Doxygen corrections and @file omissionsbelugas
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-02-23(svn r8860) -Cleanup: some style changes, proper #endif comments, variable ↵Darkvater
initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
2007-02-12(svn r8691) -Cleanup: Some proper #endif comments for sound/music/video ↵Darkvater
files, and a little elimination of magic numbers in Win32SoundStart
2007-01-10(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, ↵rubidium
stillunknown and pv2b.
2007-01-02(svn r7759) -Merge: makefile rewrite. This merge features:rubidium
- A proper ./configure, so everything needs to be configured only once, not for every make. - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies. - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC. - Proper support for OSX universal binaries. - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files. - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files. Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.