1
0
Fork 0
Commit graph

3760 commits

Author SHA1 Message Date
Patryk Obara
4af8459e80 Replace MSF_TO_FRAMES, FRAMES_TO_MSF macros
Also, add some style adjustments for readability.
2019-11-02 19:29:03 +01:00
Patryk Obara
fce61e33bb Implement frames/MSF conversion as functions
Macros FRAMES_TO_MSF and MSF_TO_FRAMES come from SDL_cdrom library.
SDL_cdrom was removed from SDL2 and these macros are used also in code
not directly related to SDL_cdrom library, so a replacement is needed.

Turns out output pointer type is different on Windows (int*) than it is on
Linux (unsigned char*); given choice between using void* for parameters and
a template function, I prefer template.
2019-11-02 19:29:03 +01:00
krcroft
f39b51fa78 Add SDL decoders for their corresponding codecs 2019-11-02 19:27:36 +01:00
Sjoerd van der Berg
e20e8fa92c Some dma changes to make the world a better place
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4279
2019-11-02 11:21:48 +00:00
Sjoerd van der Berg
95ac285db1 Fix sblaster autoinit restart and improve the auto into single cycle transfer handling
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4278
2019-10-31 20:00:08 +00:00
Patryk Obara
b42a1b31ba Merge branch 'svn/trunk' r4277 2019-10-29 20:22:32 +01:00
ripsaw8080
0622d45e38 Remove cases not needed after r4276
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4277
2019-10-29 14:39:02 +00:00
krcroft
1f193e14ab Simplify the task of making bit-field operations C and C++ compatible 2019-10-28 22:43:23 +01:00
krcroft
5736a7de9b Make comment match reality 2019-10-28 22:43:23 +01:00
krcroft
b99184d97e Replace SDL_RWFromMem with more applicable SDL_RWFromConstMem 2019-10-28 22:43:23 +01:00
krcroft
d9658b4788 Replace strncpy with snprintf 2019-10-28 22:43:23 +01:00
krcroft
d2333979cf Tailor SDL_Sound for interal use by DOSBox
- Removes extraneous (and unused) includes

 - Cleans up many compiler warnings

 - Fixes SDL include statements (using proper `#include <file.h>` directives
   given the prior `#include "file.h"` directives should only be used when
   including a projects' own header files instead of -Ipath-provided system
   headers)

 - Eliminates extraneous codecs

Many of these were made after building SDL_Sound under various compilers
and operating systems and hitting various issues. It currently builds
clean without errors or warnings on all our workflow compilers and
versions.
2019-10-28 22:43:23 +01:00
Patryk Obara
b87966cd11 Merge branch 'svn/trunk' r4276 2019-10-28 05:37:16 +01:00
ripsaw8080
b79f76ad4d Remove defunct code related to the initial display mode of the system BIOS during video mode changes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4276
2019-10-27 19:08:57 +00:00
Ryan C. Gordon
0420181d59 Add built-in SDL_sound r599
This commit contains several files imported from SDL_sound Mercurial
repo: https://hg.icculus.org/icculus/SDL_sound/ r599 (also tagged as
"final-lgpl-revision").
2019-10-26 06:55:13 +02:00
Patryk Obara
e4d18f16ce Merge branch 'svn/trunk' r4275 2019-10-25 00:55:53 +02:00
Arthur Ouellet
db67ff2e3b Add built-in C++ object serializer [snapshot as of 2019-10-23] 2019-10-25 00:47:43 +02:00
Yann Collet
28cf402cae Add built-in Extremely Fast Hash algorithm: xxHash [snapshot as of 2019-10-23] 2019-10-25 00:47:43 +02:00
Sean Barrett
fd5aeab8b5 Add built-in Vorbis codec: stb_vorbis v1.17 2019-10-25 00:47:43 +02:00
David Reid
d66317a08e Add built-in WAV codec: dr_wav v0.11.1 2019-10-25 00:47:43 +02:00
David Reid
a5f1e3473f Add built-in MP3 codec: dr_mp3 v0.5.1 2019-10-25 00:47:43 +02:00
David Reid
a5d87fa8ce Add built-in FLAC codec: dr_flac v0.12.2 2019-10-25 00:47:43 +02:00
Peter Veenstra
2bf589f54f Make it easier to compile 64 builds with visual studio, (see comment for drawback).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4275
2019-10-20 20:26:10 +00:00
Patryk Obara
9099f0620e Merge branch 'svn/trunk' 2019-10-20 07:15:43 +02:00
Peter Veenstra
5b690f936a fix externals.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4274
2019-10-19 20:08:46 +00:00
Peter Veenstra
276b187181 Make frameskip an integer.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4273
2019-10-19 19:52:24 +00:00
Patryk Obara
acbef2169d Merge branch 'svn/trunk' 2019-10-17 18:36:45 +02:00
Peter Veenstra
6ac1bcf9e7 Fix boundary checks for word/dword memory access. Speeds up dynamic 32 bit core a bit (thanks jmarsh).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4272
2019-10-16 14:20:00 +00:00
Patryk Obara
e4044f7d8d Merge branch 'svn/trunk' 2019-10-10 18:43:08 +02:00
Peter Veenstra
26a9f75b50 A little cleanup and small speed up (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4271
2019-10-10 15:54:19 +00:00
Patryk Obara
79fe83ede6 Merge branch 'svn/trunk' 2019-10-10 00:16:04 +02:00
Peter Veenstra
195484d5e9 Change OpenGL drawing routine to draw one big oversized TRIANGLE instead of a QUAD in order to work around an Nvidia specific scaling bug. Fixes bug #515.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4270
2019-10-09 20:53:35 +00:00
Peter Veenstra
e1d8eb67a4 Use fabsf when return value is a float. Small warning fix.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4269
2019-10-09 20:49:21 +00:00
Peter Veenstra
19478d45f5 Fix several logic errors with regards to deleted directories.
Should fix that directories with the same length as a deleted directory had some small issues.
Also blocks the creation of files in directories marked as deleted.
Small speed up to MakeDir, so it doesn't rely on mkdir when a directory is created inside a deleted directory.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4268
2019-10-09 20:46:40 +00:00
Patryk Obara
a323e173c2 Merge branch 'svn/trunk' 2019-10-03 23:44:48 +02:00
Peter Veenstra
60204619d0 - Fix url to forum.
- Fix Bit8u instead of char weirdness for imageDisk (dreamer_)
- Give device_t a virtual empty destructor so some warning program
  doesn't go crazy.
- Give the code that moves the Z drive its own function for readability.
- Give sizes arrays default values again for warning program.
- Rewrite IMGMOUNT in order to exit early for clarity and attempt
  to group things together.



Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4267
2019-10-03 20:03:43 +00:00
ripsaw8080
7f979234f8 Bit 2 of video status register always set. Satisfies a strange test in Blues Brothers, thus preventing slow animations.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4266
2019-10-03 16:35:44 +00:00
Patryk Obara
0a9f80f1b5 Transform zmbv into a project inside dosbox solution
This way it's possible to build them together in VS and it's easier to
develop both.
2019-10-02 12:03:03 +02:00
Patryk Obara
a57d081f24 Upgrade zmbv solution and project to VS2019
Previous solution format does not work any more in modern Visual Studio.
Includes some project adjustments needed to cleanly build the project in
MSVC without any warnings.
2019-10-02 12:03:03 +02:00
Patryk Obara
145b83ea74 Upgrade dosbox solution and project to VS2019
Clean up project settings to prevent most MSVC linker warnings.
This commit also adds MSVC builds to CI.
2019-10-02 12:03:03 +02:00
Patryk Obara
a4a6bed5c1 Merge branch 'svn/trunk' 2019-10-01 18:11:50 +02:00
Peter Veenstra
6243fa9711 Some more cleanups and memleak fixes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
2019-10-01 13:05:08 +00:00
Peter Veenstra
a919e33aec Pick some lowhanging fruit. (some memory leaks and unused variables)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4264
2019-10-01 12:11:09 +00:00
Peter Veenstra
ca20ca3a3e use delete instead of free, although this code is never really used, as the running process should have been replaced at that point.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4263
2019-10-01 11:11:57 +00:00
Patryk Obara
34e72e8e3c Merge branch 'svn/trunk' 2019-10-01 10:01:44 +02:00
Peter Veenstra
5803ea448c missed one
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4262
2019-10-01 06:14:42 +00:00
Patryk Obara
08925b24a4 Merge branch 'svn/trunk' 2019-09-30 22:21:21 +02:00
Peter Veenstra
4046dd8229 These actually use float as input.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4261
2019-09-30 18:43:28 +00:00
Peter Veenstra
fe177b4136 Add 64-bit support to dynamic_x86 core from vogons topic 67673. Thanks jmarsh!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4260
2019-09-30 18:30:11 +00:00
Patryk Obara
b62a637157 Import svn:ignore props to .gitignore files 2019-09-15 20:34:57 +02:00