aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio
AgeCommit message (Collapse)Author
2019-02-13Audio: Select a shared audio device by default (#574)jduncanator
* Audio: Select a shared audio device by default This ensures that a non-raw audio device is selected wherever possible. * Audio: Resolve libsoundio version mismatch between bindings and binaries It turns out we were using bindings generated with libsoundio 1.1.0 git source, but the binaries we were using were built from master git source. I've rebuilt both binaries and bindings to ensure they are version matched. This should resolve all outstanding issues with libsoundio (including the Linux segfault issue, and the "cannot open device" Windows issue). * Audio: Reformat MarshalExtensions * Resolve code indentation issues
2018-11-19Audio: Track and Call ReleaseCallbacks in the Dummy Audio Output (#508)jduncanator
We need to signal the guest process when buffers are released to avoid a softlock.
2018-11-17Audio: Properly implements audio fallback for SoundIO (#500)jduncanator
* Audio: Properly implements audio fallback for SoundIO Given some drivers have issues with SoundIO (for the time being), this attempts to detect if SoundIO can open the default audio device, and then return false in IsSupported if it can't. * Audio: Handle the backend disconnected event libsoundio panics by default when a backend disconnects, this catches that event and gracefully handles it. * Audio: Fix styling nits * Audio: Fix nits Because Ac_K. :tired_face:
2018-11-15Implement libsoundio as an alternative audio backend (#406)jduncanator
* Audio: Implement libsoundio as an alternative audio backend libsoundio will be preferred over OpenAL if it is available on the machine. If neither are available, it will fallback to a dummy audio renderer that outputs no sound. * Audio: Fix SoundIoRingBuffer documentation * Audio: Unroll and optimize the audio write callback Copying one sample at a time is slow, this unrolls the most common audio channel layouts and manually copies the bytes between source and destination. This is over 2x faster than calling CopyBlockUnaligned every sample. * Audio: Optimize the write callback further This dramatically reduces the audio buffer copy time. When the sample size is one of handled sample sizes the buffer copy operation is almost 10x faster than CopyBlockAligned. This works by copying full samples at a time, rather than the individual bytes that make up the sample. This allows for 2x or 4x faster copy operations depending on sample size. * Audio: Fix typo in Stereo write callback * Audio: Fix Surround (5.1) audio write callback * Audio: Update Documentation * Audio: Use built-in Unsafe.SizeOf<T>() Built-in `SizeOf<T>()` is 10x faster than our `TypeSize<T>` helper. This also helps reduce code surface area. * Audio: Keep fixed buffer style consistent * Audio: Address styling nits * Audio: More style nits * Audio: Add additional documentation * Audio: Move libsoundio bindings internal As per discussion, moving the libsoundio native bindings into Ryujinx.Audio * Audio: Bump Target Framework back up to .NET Core 2.1 * Audio: Remove voice mixing optimizations. Leaves Saturation optimizations in place.
2018-10-17Move logging to Ryujinx.Common and make it a static class (#413)ReinUsesLisp
2018-10-12Fix race condition on OpenALAudioOut (#448)gdkchan
2018-09-18Ensure that buffers are available after a signal when GetReleasedBuffers is ↵gdkchan
called (#369)
2018-08-16Code style fixes and nits on the HLE project (#355)gdkchan
* Some style fixes and nits on ITimeZoneService * Remove some unneeded usings * Remove the Ryujinx.HLE.OsHle.Handles namespace * Remove hbmenu automatic load on process exit * Rename Ns to Device, rename Os to System, rename SystemState to State * Move Exceptions and Utilities out of OsHle * Rename OsHle to HOS * Rename OsHle folder to HOS * IManagerDisplayService and ISystemDisplayService style fixes * BsdError shouldn't be public * Add a empty new line before using static * Remove unused file * Some style fixes on NPDM * Exit gracefully when the application is closed * Code style fixes on IGeneralService * Add 0x prefix on values printed as hex * Small improvements on finalization code * Move ProcessId and ThreadId out of AThreadState * Rename VFs to FileSystem * FsAccessHeader shouldn't be public. Also fix file names casing * More case changes on NPDM * Remove unused files * Move using to the correct place on NPDM * Use properties on KernelAccessControlMmio * Address PR feedback
2018-08-01Sleep OpenAL thread (#313)ReinUsesLisp
2018-07-14Audio Renderer improvements (#210)gdkchan
* Partial voice implementation on audio renderer * Implemented audren resampler (based on original impl) * Fix BiquadFilter struct * Pause audio playback on last stream buffer * Split audren/audout files into separate folders, some minor cleanup * Use AudioRendererParameter on GetWorkBufferSize aswell * Bump audren version to REV4, name a few things, increase sample buffer size * Remove useless new lines
2018-07-09Allow sample rate of 0 on OpenAudioOut, fix 5.1 sound output (#240)gdkchan
2018-06-30Add linux-x64 to RID property to make tests works on linux (#205)Thomas Guillemard
2018-06-21 Port from OpenTK.NETCore to OpenTK.NetStandard (#176)ReinUsesLisp
* Minor code changes * Forgot to remove a method
2018-05-11Add intrinsics support (#121)gdkchan
* Initial intrinsics support * Update tests to work with the new Vector128 type and intrinsics * Drop SSE4.1 requirement * Fix copy-paste mistake
2018-03-19[WIP] Add support for events (#60)gdkchan
* Add support for events, move concept of domains to IpcService * Support waiting for KThread, remove some test code, other tweaks * Use move handle on NIFM since I can't test that now, it's better to leave it how it was
2018-03-16Add BFI instruction, even more audout fixesgdkchan
2018-03-15Improvements to audout (#58)gdkchan
* Some audout refactoring and improvements * More audio improvements * Change ReadAsciiString to use long for the Size, avoids some casting