Commit Graph
259 Commits
Author SHA1 Message Date
Ben "root" Anderson d2f43a73e4 LinuxThreadHelpers -> PthreadHelpers part 3 2013-10-30 00:08:19 -05:00
Ben "root" Anderson 32a25023d3 Die early if CreateDialog fails 2013-10-29 15:51:47 -05:00
Ben "root" Anderson b676d136e4 Stub out SetThreadName for now 2013-10-27 15:55:22 -05:00
Ben "root" Anderson f876fa233c Cannot pass RString to ... in GCC 2013-10-26 15:40:00 -05:00
Ben "root" Anderson 9e546d95cc I thought I removed that 2013-10-26 15:33:33 -05:00
Ben "root" Anderson ddd94c2013 SEH not supported on GCC. We are just kind of hoping this never throws an exception because I do not think it is possible to catch SEH exceptions under GCC anyway. 2013-10-26 15:31:45 -05:00
Ben "root" Anderson 0f86f79a3c else if what? Assuming you meant just else 2013-10-25 17:24:35 -05:00
Ben "root" Anderson 808ed4c036 MinGW gives us clockid_t 2013-10-25 15:27:05 -05:00
Ben "root" Anderson 0959033fe6 LinuxThreadHelpers -> PthreadHelpers 2013-10-25 15:15:41 -05:00
Ben "root" Anderson 859a10e5c8 GCC needs these casts to be explicit 2013-10-25 15:13:47 -05:00
Ben "root" Anderson 0b6fc17c27 Oops. Not sure how that compiled but okay. 2013-10-25 04:12:14 -05:00
Ben "root" Anderson dfb758d35a Noting an observation 2013-10-25 04:11:45 -05:00
Ben "root" Anderson 7608c814e4 GCC is very very picky about switch statements. 2013-10-25 03:59:55 -05:00
Ben "root" Anderson b3c76a3814 UNIQUE_NAME -> SM_UNIQUE_NAME (avoid conflict with MinGW headers) 2013-10-24 19:27:23 -05:00
Jason Felds 4f0dc3e832 CatWEax is right: fix up alignment.
Hoping I fixed it the right way.
2013-09-23 21:06:33 -04:00
Devin J. Pohly c3c4da2d65 PIUIO: fix lights mapping for five-panel input
Based on info from bug 990.
2013-09-23 15:43:16 -04:00
Devin J. Pohly 5f1936264b Add missing header. Oops. 2013-09-07 14:48:47 -04:00
Devin J. Pohly ca1cdbabb0 Make mount ArchHooks match across platforms 2013-09-07 10:53:33 -04:00
Devin J. Pohly 9309ee09e9 MemoryCardDriver: parse fstab comments
Also silences some unneeded warnings.
2013-09-05 15:34:25 -04:00
Devin J. Pohly 5868571f37 MacOS: fix potential crash due to language preferences 2013-08-28 11:16:41 -04:00
Devin J. Pohly 3527ad1ab8 JACK: let Init do the cleanup on failure
Previously, if Init failed, we were calling jack_client_close twice and
segfaulting.
2013-08-26 08:40:52 -04:00
Devin J. Pohly d8d9f466a9 FFmpeg: remove unused PTS logic
No-op.
2013-08-23 00:08:25 -04:00
Devin J. Pohly df543ff86c FFmpeg: use the cached pkt_dts for timestamps
This appears to work far more consistently at the beginnings and ends of
videos.
2013-08-23 00:02:07 -04:00
Devin J. Pohly 9f06195b73 FFmpeg: reinitialize m_fLastFrame in Init()
After a Rewind(), the m_fLastFrame wasn't set back to 0.  Now it is.
2013-08-23 00:00:00 -04:00
Devin J. Pohly de74eb5814 FFmpeg: don't unconditionally skip first frame
This condition was true when 0 - 0 == 0, so the first frame was being skipped.
2013-08-22 23:58:38 -04:00
Devin J. Pohly be082b6a7e FFmpeg: use stream time_base to estimate FPS, not codec
Fixes the estimated frame length when we don't get an explicit DTS for the
frame.  Also fixes a comment typo.
2013-08-22 16:55:24 -04:00
Devin J. Pohly cc8ef654ca MovieTexture_FFmpeg: move class defs to header file
No-op.  Should make it a little easier to find things in the FFmpeg driver.
2013-08-22 15:11:57 -04:00
Devin J. Pohly 2933a71d5d JACK: fix race condition with decode thread
It was possible for the JACK callback to execute before the decode thread had
been started, causing an assertion.
2013-08-20 09:33:35 -04:00
Devin J. Pohly eb634bae3e Finish JACK audio driver: now with actual audio! 2013-08-08 14:56:38 -04:00
Devin J. Pohly 98352844ab Add JACK sample rate callback
This will be necessary once we start the decoding thread, which calls
GetSampleRate a lot.
2013-08-08 14:43:15 -04:00
Devin J. Pohly 982d9e2dbc Add MixDeinterlaced to RageSoundDriver
This complements the read_deinterlace function just added.
2013-08-08 13:30:39 -04:00
Devin J. Pohly f9208e1276 Add skeletal sound driver for JACK
This doesn't make any sound yet, but it creates the JACK client and connects
the requested ports if any.
2013-08-06 19:24:55 -04:00
Devin J. Pohly 66ed444726 Allow fstab to use persistent device names for cards
Previously you had to use /dev/sdx or /dev/sdx1 for the device in /etc/fstab,
but the order in which these are assigned is non-deterministic on modern
kernels.  Now, if you want a specific card, you can use /dev/disk/by-uuid,
or if you want a specific port, you can use /dev/disk/by-path.
2013-07-09 12:41:18 -04:00
phantom 39c7613802 Apparently URLs contain exploits these days.
Thanks djpohly for fixing.
2013-06-30 00:12:31 +02:00
phantom 6c59100c31 Implemented ArchHooks_Unix::GoToURL 2013-06-29 18:47:16 +02:00
Shenjoku e666d8ee89 Upon further consideration I think it's best to just add all possible device
types and let the user try to use whatever they might have. Even if it can't be
mapped properly to something that will work it's still worth trying and
shouldn't cause any major problems (other than just not being able to play with
some weird devices, like lightguns for example).
2013-06-18 21:38:16 -07:00
Shenjoku 1a8b196121 Added another missing device type that some controllers are showing up as. 2013-06-18 10:52:46 -07:00
Shenjoku c56c40fad1 Added another missing case when enumerating joysticks, DI8DEVTYPE_SUPPLEMENTAL,
that should fix a lot more pads that were being reported as not being detected.
Also added some debug log messages that output each device's type and name
so in the future if other devices fail to be detected we can easily see what it
is in the info log.
2013-06-12 10:30:37 -07:00
Devin J. Pohly 1a38ec56fc "Songs" was probably important here... 2013-06-01 19:49:18 -04:00
Devin J. Pohly d5e5fa5995 Add user folders on OSX. Hopefully Application Support is good. 2013-06-01 01:32:53 -04:00
Shenjoku b7f54a9fb0 Fixed another problem with a DirectInput function getting passed the wrong
constant when enumerating the joysticks. This should hopefully fix the
remaining problems.
2013-05-29 19:02:16 -07:00
Devin J. Pohly 64f59e616c This should never have been in defaults - sorry about that 2013-05-29 15:26:56 -04:00
Shenjoku 36a51a8359 Fixed some problems introduced in ba0d2d1 that were causing certain gamepads to
not get detected due to passing and checking the wrong constants when
enumerating the devices.
2013-05-28 20:52:45 -07:00
Shenjoku 910eafbf9f Fixed some problems introduced in ba0d2d1 that were causing joystick inputs to be
incorrectly mapped when using DirectInput.
2013-05-21 23:48:49 -07:00
Devin J. Pohly d868c7a5d6 Hack to fix movie crasher
A movie larger than the max texture size would be rendered - at its original
size - onto a smaller texture, causing an access violation.  This just ignores
the max texture size for movies.

Two better solutions:
1. Resize the movie to the texture size.  Ideal, but slow in my experiments.
2. Don't load the movie texture at all in this case.  A possibility in the
   future, but will require some refactoring first.
2013-05-21 15:31:41 -07:00
Devin J. Pohly feb919f0bf Revert memory leak commits
5f7001e: "Added a new branch"
01456ed: "Fixed a lot of memory leaks"
dac4493: "Fixed all remaining memory leaks that I could figure out"
0792db7: "Removed the smnew macro and the call to _CrtSetDbgFlag()"

Some of these caused destructor-time problems due to static initialization
order fiasco and related issues.  Notably, the program would no longer exit on
OSX and had to be killed.

There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now.  Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04:00
Shenjoku 0792db752a Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku 01456ed0b9 Fixed a lot of memory leaks caused by static globals never getting
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku 5f7001ef0a Added a new branch that implements support for outputting all memory leaks to
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Shenjoku ba0d2d1838 Upgraded the DirectX 8 rendering to DirectX 9. Updated Direct Input to work with
the latest SDK as well.
2013-04-08 21:13:47 -07:00