Commit Graph

3120 Commits

Author SHA1 Message Date
hegyak ebe011f43a Reverse Byte and Word in tools/GameShark.cs 2016-12-22 05:15:40 -08:00
J.D. Purcell 52d604cb24 Fix turbo mode not disabling sound rendering (broken by 68a362c).
Apply FF&RW volume when unthrottled.
2016-12-20 22:41:59 -05:00
J.D. Purcell 36daa01ad6 Sound cleanup. In case you're curious, the "SilenceLeaveRoomForFrameCount" part ended up not mattering (and may have been slightly counterproductive) once SoundOutputProvider had the ability to be notified of underruns. It doesn't matter for BufferedAsync either. 2016-12-18 20:45:38 -05:00
J.D. Purcell f2e9ca2ac9 Fix fast-forward when using audio throttle and XAudio2 or OpenAL. 2016-12-18 15:23:23 -05:00
J.D. Purcell 970a9017d4 Fix typo in previous commit. 2016-12-18 13:03:58 -05:00
adelikat 40be0dd0b3 Refactor the way a Null ControllerDefinition is created 2016-12-16 23:34:18 -06:00
J.D. Purcell 7843664f68 Improve FPS smoothing to initialize with a real value instead of ramping up from zero. Re-initialize the FPS data after pausing or changing fast forward/rewind state to eliminate ramp-up and ramp-down in those cases. Only the initial behavior has changed; the FPS calculation/smoothing is otherwise mathematically identical. 2016-12-16 16:01:21 -05:00
J.D. Purcell c971fba7df Prevent divide by zero. Would sometimes result in fSkipFrames being PositiveInfinity, which gets propagated to fSkipFramesError, resulting in the "while (fSkipFramesError <= -1.0f..." loop freezing. 2016-12-15 22:10:38 -05:00
J.D. Purcell cabf27f5d9 Move a few files related to sound output from BizHawk.Emulation.Common to BizHawk.Client.EmuHawk. 2016-12-15 19:25:09 -05:00
J.D. Purcell b0141c516e Multi-disk Bundler: Fix DPI scaling issues and improve control positioning. 2016-12-15 15:06:35 -05:00
adelikat 54eb678387 create an ICreateGameDBEntires specialized service and have Atari2600 implement it. Use this in the log window instead of sneaky reflection to access the method 2016-12-15 10:45:20 -06:00
J.D. Purcell d95edc273e Sound cleanup. 2016-12-14 23:26:01 -05:00
J.D. Purcell a33a8252ff A bit more sound cleanup. 2016-12-14 22:03:25 -05:00
J.D. Purcell 84480e4235 Fix sound bugs + cleanup. 2016-12-14 21:19:46 -05:00
J.D. Purcell 036358fbf9 Fix bug with async sound. 2016-12-14 18:27:04 -05:00
J.D. Purcell afd55fdc6b Revert "Default to Sync sound instead of Async"
This reverts commit 6702f7795c.
2016-12-14 18:26:19 -05:00
alyosha-tas 6702f7795c Default to Sync sound instead of Async
It seems like 'CanProvideAsync' was always returning true so the else if at 1621 was defaulting to setting Async, which caused an exception later.

This seems similar to some TAStudio issues where different people are getting different results depending on Windows version, but I don't see any issue with not setting Async mode.
2016-12-14 15:07:04 -05:00
alyosha-tas 0c3da629c8 Fix for exception in marker window 2016-12-13 22:37:06 -05:00
adelikat 8c57dd98f3 NESHawk - add IsFDS flag and use it in NesSchema instead of a check for BoardName == "FDS" 2016-12-13 15:24:53 -06:00
adelikat dd48864058 AsVideoProviderOrDefault() extension method 2016-12-12 13:47:11 -06:00
adelikat 5ff33e7569 Rename IController.Type to IController.Definition to more clearly describe the property 2016-12-12 12:30:32 -06:00
nattthebear dbdac5e3f2 Fix stuff or not 2016-12-11 22:37:28 -05:00
nattthebear a98316ba97 Soudn refactoring: Unbreak clock & vsync thrtottle 2016-12-11 18:35:42 -05:00
nattthebear ca60a33293 mess some stuff up 2016-12-11 15:01:42 -05:00
nattthebear 47fa5bcb7c Minor cleanup 2016-12-11 14:16:25 -05:00
nattthebear eb72ff9053 Swag up NullSound 2016-12-11 14:07:12 -05:00
adelikat 3be1502b6b Clean lup 2016-12-11 11:40:45 -06:00
adelikat b73a500d6b Major sound provider refactor. Create a unified interface ISoundProvider, that is an IEmulator service and break it off of IEmulator. IAsyncSoundProvider was kept as a shim for now, for legacy cores that were inherintly async. 2016-12-11 11:15:00 -06:00
nattthebear df4b38990f GBAGPUView: Don't draw a sprite if its size + tile index combined make it go past the end of vram 2016-12-09 22:09:58 -05:00
adelikat b697110098 Rename ISoundProvider to IAsyncSoundProvider to more accurately describe what the service does 2016-12-09 10:24:43 -06:00
adelikat 4d1629e271 Completely divorce IVideoProvider from IEmulator, use a NullVideo implementation in MainForm if a core does not provide one, Remove VideoProviderGlue. Note that NullEmulator does implement IVideoProvider still, since we like to have fun with that one 2016-12-07 13:21:18 -06:00
adelikat 72e5c3e4dd refactor a usage of Global.Emulator in MessageConfig, this place is still bad code though, needs to be rethought 2016-12-07 12:32:59 -06:00
adelikat b7e616482d Intellivision - movie mnemonics and virtual pads 2016-12-06 20:16:22 -06:00
adelikat eba11b259e HawkFile - fix exception when a file has no extension, and also simplify the logic 2016-12-06 12:21:05 -06:00
adelikat d305b048fc Fix exception when hovering over Config -> Cores -> Snes when the user has never opened a SNES game 2016-12-06 11:26:43 -06:00
adelikat 6889a72ba2 a bit more cleanup of MovieZone.cs 2016-12-06 11:10:50 -06:00
adelikat d0e632ad9d code cleanup in MovieZone.cs 2016-12-06 11:09:17 -06:00
adelikat 5c4b11d29b MacroInput - use the Emulator RequiredService property instead of Global.Emulator 2016-12-06 11:03:15 -06:00
adelikat 9e2ec00160 MacroInput tool - some code cleanup 2016-12-06 11:01:47 -06:00
adelikat ad41019a29 ToolBox use an IEmulator RequiredService instead of Global.Emulator 2016-12-06 10:44:37 -06:00
adelikat b346f9e7c5 Some slight code cleanup in ToolBox.cs 2016-12-06 10:40:09 -06:00
adelikat 3bfce81eae LuaConsole - have a RequiredService of IEmulator and pass it into the lua implementation instead of using Global.Emulator 2016-12-06 10:35:11 -06:00
adelikat f1e528f68f Virtual pads - pass the current core into schema objects instead of using Global.Emulator 2016-12-05 19:33:21 -06:00
adelikat 117e0b07e7 Pass the core instance to the record movie dialog 2016-12-04 12:51:48 -06:00
adelikat 9ae3916166 Debugger - remove a usage of Global.Emulator and a TODO 2016-12-04 12:40:26 -06:00
adelikat e99bc9ba41 use the Emulator property instead of Global.Emulator in some lua library files 2016-12-04 12:37:29 -06:00
adelikat b11a76f739 MultidiskBundler - add a RequiredService of IEmulator and use that property instead of Global.Emulator 2016-12-04 12:34:37 -06:00
adelikat 5258f9385c Tastudio - use the Emulator property not Global.Emulator, fix another CoreExension method 2016-12-04 12:30:51 -06:00
adelikat 546947041b BasicBot - Remove unnecessary usage of Global.Emulator 2016-12-04 12:23:44 -06:00
adelikat 0af5fb50b1 Refactor some extension methods off IEmulator that inexlicably used Global.Emulator instead of the IEmulator that was passed in 2016-12-04 12:14:16 -06:00