Commit Graph

50 Commits

Author SHA1 Message Date
adelikat 3d833af617 break out enums from Config.cs 2020-01-21 09:02:42 -06:00
adelikat 9ab62d8cd3 some cleanup 2020-01-03 14:36:13 -06:00
YoshiRulz 060255471b
Improve exception docs in BizHawk.Client.EmuHawk 2020-01-02 21:51:37 +10:00
adelikat 64ea9afee5 cleanups 2019-12-31 10:17:55 -06:00
adelikat c9c04032c7 MainForm cleanups 2019-12-20 10:40:13 -06:00
YoshiRulz 8c059aa43c
Replace helper methods with readonly bool IsUnixHost and cleanup 2019-11-04 14:30:05 +10:00
adelikat 942d9fc75e Simplify OS checks with some helpful methods 2019-11-03 16:04:42 -06:00
J.D. Purcell 0405eb7c73 XAudio2: Fix missing dispose. 2019-11-02 00:38:50 -04:00
J.D. Purcell c42bf37e86 Sound: Improve audio throttle behavior with N64. GetSamplesSync sometimes returns > 100ms of audio from N64. 2019-10-13 22:56:14 -04:00
James Groom 90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
squashed PR #1591
2019-10-13 15:50:57 +00:00
YoshiRulz 35056ae2d9
Remove #if WINDOWS, using runtime check where applicable 2019-05-18 20:17:02 +10:00
YoshiRulz 1887420244
Refactor CurrentOS usage in Sound 2019-05-18 15:51:37 +10:00
YoshiRulz 58c738957c
Rename PlatformLinkedLibSingleton and children 2019-05-18 15:40:46 +10:00
YoshiRulz d76e1a8a8b
Refactor PlatformLinkedLibSingleton and replace RunningOnUnix with CurrentOS 2019-05-18 15:30:29 +10:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
James Groom 42764f0019 Add preliminary Unix compatibility (using Mono; resolves #1384) (#1380)
* Move PlatformSpecificLinkedLibs and implementations to common and rename
* Specify file ext. at LoadPlatformSpecific call site
* Move Client.Common.Global.RunningOnUnix to PlatformLinkedLibSingleton
* Inline var Resolver
* Use PlatformLinkedLibManager internally
* Move plugin load check to LinkedLibManager, use LinkedLibManager
* Interpolate
* Return exit code from dlclose/FreeLibrary
* Skip all calls to externs in BlipBufDll when using mono
* Use PlatformLinkedLibManager in SevenZipLibraryManager
* Add expected return value to workaround (from testing on Win32)
* Remove ".dll" from DllImport attr, remove temporary workaround, see desc.
The library can be built by changing the output file name in
`.../blip_buf/Makefile` to `libblip_buf.so`, and running `make`. It will be
loaded if placed in the `.../output` folder.
* Remove unused code, add TODO (this class is req. for Waterbox.PeWrapper)
The TODO is to [rewrite with
C#](https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files)
instead of importing from `kernel32.dll`.
* Update OpenTK again but better (for #1384)
* Add Mono run script
* Add libblip_buf.so (temporary)
Temporary because it should be a separate package which BizHawk depends on.
* Add distro detection, add "already running" and "unknown distro" messages
* Gray-out Lua Console on Unix
* Extract superclass from EmuLuaLibrary, add shell implementation for Unix
* Specify libdl version, Fedora doesn't have the versionless symlink
* Remove empty `ToolStripMenuItem`, null `Text` caused crash on Unix
* Transform OpenTK keyboard input into a `List<KeyEvent>` and read that
Also fixes crash on rebind
* Remove debug `using ...;`
2019-01-04 01:50:55 +03:00
James Groom ca021d96cc Allow bizhawk to be built and run w/ MSBuild and Wine+Mono on GNU+Linux (#1237)
- Update to latest OpenTK, add input code from `mono-stable` branch
(kudos), and fix bugs arisen from version differences
- Move some functionality into Win-specific classes and add Wine+Mono
implementation where simple
- Add conditions to main loop so some things only run on Windows
2018-11-04 20:05:20 +03:00
alyosha-tas 5ce8c8790c GBHawk: another audio fix, not sure where the root cause is 2018-07-02 07:46:27 -04:00
alyosha-tas 123df38731 GBHawk: Attempt to fix audio crash 2018-07-01 15:10:42 -04:00
zeromus 2b53f9b954 fix hangs when sound throttle is enabled and cores go a long time without giving samples. i mean, 2018-05-03 12:55:11 -05:00
zeromus 02c72a663a fix crashes when dsound devices go disabled 2018-03-04 02:43:50 -06:00
adelikat 62a13d961d Move VsyncNum and VsyncDen out of CoreComm and into IVideoProvider 2017-05-05 11:21:37 -05:00
J.D. Purcell ab155217e7 Random (small) cleanups. 2017-04-09 23:08:26 -04:00
J.D. Purcell c58d2929f8 SoundOutputProvider: Standalone mode to eliminate the need for an external buffer when used with SyncToAsyncProvider. 2017-03-25 16:26:46 -04:00
J.D. Purcell 33d42152a8 Fix N64 audio weirdness in AVI recording. 2017-03-22 23:00:37 -04: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 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 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
nattthebear 47fa5bcb7c Minor cleanup 2016-12-11 14:16:25 -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
adelikat b697110098 Rename ISoundProvider to IAsyncSoundProvider to more accurately describe what the service does 2016-12-09 10:24:43 -06:00
zeromus 1b8a51e447 rework sound config dialog and sound volume control to permit independent control of volume during FF & RW, and independent toggling of sound synthesis vs volume=0 suppression 2016-03-29 03:40:37 -05:00
adelikat 817c798eab Remove Global.CoreComm since it was pointless 2015-02-22 20:06:30 +00:00
jdpurcell 7a7dec0ca9 OpenAL: cleanup. 2015-02-19 14:34:06 +00:00
jdpurcell 255900e4e2 OpenAL: cleanup. 2015-02-19 14:27:53 +00:00
jdpurcell 40eca38aee OpenAL - small cleanup. 2015-02-19 06:07:10 +00:00
jdpurcell 8f32899afd OpenAL sound device configuration. 2015-02-19 06:00:07 +00:00
jdpurcell 730694644d Add option for OpenAL on Windows. 2015-02-19 03:22:20 +00:00
jdpurcell 18bb662017 OpenAL fix. 2015-02-19 02:37:49 +00:00
jdpurcell c56edd6e93 Add OpenAL sound output.
XAudio2: Some stuff I forgot to dispose.
2015-02-19 02:30:55 +00:00
jdpurcell 4ff447d9c6 XAudio2: Small optimization to buffer pool. 2015-02-01 21:27:55 +00:00
jdpurcell f2997546a7 Sound - small cleanup. 2015-02-01 01:09:48 +00:00
jdpurcell 0dfd880a41 Make DirectSound volume control more consistent with XAudio2. 2015-01-31 19:20:44 +00:00
jdpurcell d1bfe9c842 XAudio2: Avoid buffer re-allocation. 2015-01-31 18:27:04 +00:00
jdpurcell 3cea39f6e1 Break up Sound into multiple files. 2015-01-31 17:44:35 +00:00