summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
AgeCommit message (Collapse)Author
2011-05-28Since LLE can now output at 48kHz, adjust the audio dumper so that it will ↵smelenchuk
respect the set sample rate for LLE as well as HLE. This fixes audio dumping for LLE at 48kHz. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7567 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-05-05Trying to fix mixer problem when AIsrc is @48kHz, should fix games like All ↵Marko Pusljar
Star Baseball 2004/ XGRA Extreme-G Racing Association/Conduit 2... Enabled 48kHz output for LLE (before it was just 32kHz). I hope it works, if there are serious problems, it will be reverted. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7511 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-22Fixed some memory leaks. Only one was mine ;PJordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7392 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-16Fix and issue with the escape button closing the hotkey dialog when trying ↵Glenn Rice
to set a hotkey to escape. Fix a few more dialogs to close with escape. Fix an issue with the pulse audio sound backend when the dsp emulation method is changed, and the frequency setting was not respected. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7358 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-15A bit of cleanup to Core Init/Stop, Frame, and Main. Cleanup XAudio2 to ↵Jordan Woyak
attempt to fix the crash on stop(didn't help :p). For some reason CFrame::DoStop is called twice.(might be the issue) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7353 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-12AudioCommon: Improve pad silence when ppc does not keep up with realtimepierre
Uses the last sample from the ppc buffer to fill the samples the ppc didn't deliver data for, avoids clicking on underruns. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7338 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-11Wrapped fopen/close/read/write functions inside a simple "IOFile" class. ↵Jordan Woyak
Reading, writing, and error checking became simpler in most cases. It should be near impossible to forget to close a file now that the destructor takes care of it. (I hope this fixes Issue 3635) I have tested the functionality of most things, but it is possible I broke something. :p git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7328 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-05Replaced Common::CriticalSection with a std::mutex implementation. 64bit ↵Jordan Woyak
Windows builds now use SRWLocks and ConditionVariables(requires Vista/7, x64 builds will no longer work on Windows XP x64). Tell me if you hate that. Removed Common::EventEx. Common::Event now uses a std::condition_variable impl.(using ConditionVariables on Windows x64, Events on x86, or posix condition variables elsewhere). I experience slight speed improvements with these changes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7294 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-03Move SConscript files out from the Src subdirectories to beSoren Jorvang
consistent with the other build systems. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7282 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-03Prepare for the release of Xcode 4, which has working LTOSoren Jorvang
with static libraries. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7280 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-01More conversion from char * to std::string.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7266 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-28Convert GetUserPath to return a std::string instead of a const char *. This ↵Glenn Rice
simplifies its usage in most cases. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-21revert r7212 (express users must modify a single line, instead)Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7220 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-20Force dolphin to use the windows7.1sdk (the windows7.1sdk installer is silly ↵Shawn Hoffman
and refuses to recognize that vs2010 exists). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7212 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-14Some work on changing comments, log messages, and variable and function ↵Glenn Rice
names to reflect that the plugins are not plugins anymore. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7170 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-13Audio logging: actually use the audio backend sample rate when dumping HLE ↵smelenchuk
audio; this means that both sample rate settings now dump audio properly. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7161 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-13Fix for LLE audio dumping to report correct sample rate in output file.smelenchuk
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7156 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-11Make sure the audio dump directory exists when dumping audio. Otherwise a ↵Glenn Rice
segmentation fault ensues after several panic alerts. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7135 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-11Fix frame dumping for linux.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7134 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-11* Dump AVI output on every VI (fixes issue #4064).smelenchuk
* Add audio dumping (fixes issue #1638). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7131 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-11drop vs2008 projects in favor of vs2010Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7129 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-08Another OSX cmake fix (make openal compile)nakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7116 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-08vs2010:Shawn Hoffman
buildfix move much of the build settings to .props files -please use them as much as possible in the future, instead of changing individual projects NOTE: to avoid left over blobs, clean your builds *before* applying these changes. TODO: add DebugFast target for projects that are lacking it. Lack of DebugFast targets cause the linker to use LTCG when we don't want it. please test for regressions which could be caused by being too happy with compiler flags :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7109 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-05The compiler need not obey the static keyword, so to avoid linkerSoren Jorvang
problems, whole functions in .h files need to also be static in case they are included in several .cpp files. Also a few other minor LTO fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7082 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-04vs2010: small fixups to vcxproj files.Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7065 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-04Change the audio sample rate setting to a numerical value. Fixes issue ↵Glenn Rice
4045. You may have to change the setting once after this commit to update your ini file from the string that was saved there before. Update translation pot file to reflect recent gui changes, and update a few of the languages. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7059 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-04In the SCons build, skip the generation of static librariesSoren Jorvang
and just operate on lists of object files instead. This helps with LTO since LLVM/clang LTO is completely broken by static libraries. It also helps identify symbol clashes between components like the former plugins. Many linkers also expect static libraries to form a strict DAG which turns out be a difficult rule to uphold in practice, especially since some of our platforms aren't picky about this. LTO builds currently appears to crash at runtime because of the static wx libs. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7056 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-03should fix build for legacy windows build system...Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7054 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-03Remove OpenAL for windows.Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7053 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-03Fix the CMake build.Soren Jorvang
Prevent the PS3 HID crash until I can debug it. AudioUnits are enabled by default. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7052 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-02Remove the global namespace a bit and remove some dead code.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7043 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-01vs2010: Enable LTCG only for release builds.Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7032 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-31vs2010:Shawn Hoffman
fix all build targets (they've all built here - you may have to manually delete the intermediate directories if you have conflicts after this commit). set the debug path to $(TargetDir) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7022 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-31vs2010: buildfix for debugfast, silence all C4996 warnings.Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7016 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-31Eliminate some trampoline functions.Jordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7015 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-31svn eol-style:native on the filters...Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7013 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-31vs2010 add filters for everything (...except wxw projects...). Try to fix ↵Shawn Hoffman
SVNRevGen, but I'm not sure it's working... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7012 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-30Build fix: a bogus include was added in r6988.DimitriPilot3
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6991 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-30Remove the PIC linker flag for DSP on linux.Glenn Rice
Fix some debugger issues. Still need to get sound window working, but the invalid id panic alert is fixed. Also, a ";" as a comment in an ini file is now only allowed at the beginning of a line. The debugger has settings strings with semicolons in them. That completely broke the debugger. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6989 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-30Move async checking for pressed keys into Host_GetKeyState()Soren Jorvang
and use wxGetKeyState on platforms other than Windows. I am not sure if wxGetKeyState is unreliable on Windows or if the use of GetAsyncKeyState() is simply historical, but for now I've left the Windows call in there just in case. This does mean that Host_GetKeyState() is currently only valid for the small set of keycodes that overlap between wx and Win32, one of which is VK_TAB/WXK_TAB. Anyway, please test wxGetKeyState on Windows and remove the ifdef if it works, so we can extend it to the remaining hotkeys. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6988 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-29Fix the Audio tab and merge the DSP config into one.sl1nk3.s
Unify the DSP settings into DSP.ini git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6955 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-28DSP plugin merge - the two DSP plugins are now gone and all the code has ↵hrydgard
been merged into Dolphin. This WILL temporarily break the Linux and MacOSX builds but should be easy to fix. Things left to do: * The UI on the new Audio tab for the LLE/HLE choice is ugly * At times the code still look "plugin-y" and needs cleanup * The two plugins should be merged further. DSPHLE should use the emulated memory etc of DSPLLE as much as possible, so that simply saving the DSPLLE state is enough. This would also bring the possibility of savestate compatibility between the two plugins. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6947 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Forgot about some Linux files using Common::ThreadJordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6934 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Replaced Common::Thread with a partial implementation of std::thread. ↵Jordan Woyak
(rvalue references are used if available, <thread> is used if possible) Eliminates the need to use dynamic memory allocation for threads, so it's impossible to forget to delete a thread or set a pointer to NULL. Enables use of type-safe thread functions, no need to cast to and from void*. I've made sure the code compiles in vs08 and tested the functionality of "StdThread.h" on Linux so I'm hoping everything will work :p. In the future "StdThread.h" can be removed (maybe when OS X ships with gcc 4.4 and vs2015 is released :p). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6933 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Added "DebugFast" configs to vs2010 projects. Removed solution folders.(vs ↵Jordan Woyak
express doesn't like them) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6931 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Various minor fixes to allow building with clang on OS X.Soren Jorvang
Fixes issue 3992. wxWidgets patch at http://trac.wxwidgets.org/ticket/12332 . git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6929 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Committing Visual Studio 2010 solution/project files. (not switching from ↵Jordan Woyak
2008 just yet, just making 2010 an option) Still need to add a "DebugFast" config and change optimization settings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6927 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-18Remove the __APPLE__ workaround for reading config files from a ctor.Soren Jorvang
'#' is a fairly accepted comment character for .ini files along with the more official ';', but '//' isn't. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6872 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-15Fix a few strings that weren't being translated properly.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6851 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-13Removed my previous PanicAlert translation hack. Fixed with a better method ↵Glenn Rice
suggested by BhaaL. The translation is done by a callback in the MsgHandler routine that is set at program start. Added macros PanicAlertT, SuccessAlertT, PanicYesNoT, and AskYesNoT that are identical to the non T versions except those strings will be added by gettext to the po files to be translated. These can and should be used anywhere in the code for strings that should be translated. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6838 8ced0084-cf51-0410-be5f-012b33b47a6e