summaryrefslogtreecommitdiffstats
path: root/src/audio_core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* EffectOutStatus padding is now in hexDavid Marcec2018-10-091-1/+1
|
* Fixups for softlockDavid Marcec2018-10-072-6/+7
|
* Fixed missing returnDavid Marcec2018-10-071-1/+1
| | | | | Softlock explanation: after effects are initialized in smo, nothing actually changes the state. It expects the state to always be initialized. With the previous testing, updating the states much like how we handle the memory pools continue to have the softlock(which is why I said it probably wasn't effects) after further examination it seems like effects need to be initialized but the state remains unchanged until further notice. For now, assertions are added for the aux buffers to see if they update, unable to check as I haven't gotten smo to actually update them yet.
* Fixed smo softlockDavid Marcec2018-10-072-13/+120
|
* stream: Preserve enum class type in GetState()Lioncash2018-09-244-11/+11
| | | | | | Preserves the meaning/type-safetiness of the stream state instead of making it an opaque u32. This makes it usable for other things outside of the service HLE context.
* Added audren:u#GetAudioRendererStateDavid Marcec2018-09-234-0/+13
|
* Logging: Change the TimeStretch::Process log from debug to trace level.Subv2018-09-211-1/+1
| | | | This function is called too many times and makes the debug logging basically unusable due to the spam.
* time_stretch: Remove unused <array> includeLioncash2018-09-171-1/+0
| | | | This isn't used within this header and isn't necessary.
* stream: Replace includes with forward declarations where applicableLioncash2018-09-172-3/+7
| | | | | Avoids propagating includes in headers where it's not necessary to do so.
* audio_renderer: Replace includes with forward declarations where applicableLioncash2018-09-172-39/+52
| | | | | | | | | Avoids including unnecessary headers within the audio_renderer.h header, lessening the likelihood of needing to rebuild source files including this header if they ever change. Given std::vector allows forward declaring contained types, we can move VoiceState to the cpp file and hide the implementation entirely.
* Merge pull request #1314 from lioncash/castbunnei2018-09-171-2/+2
|\ | | | | audio_core/time_stretch: Silence truncation warnings in Process()
| * audio_core/time_stretch: Silence truncation warnings in Process()Lioncash2018-09-141-2/+2
| | | | | | | | The SoundTouch API only accepts uint amount of samples.
* | Merge pull request #1321 from lioncash/audio-shadowbunnei2018-09-171-4/+4
|\ \ | | | | | | cubeb_sink: Get rid of variable shadowing within CubebSink's constructor
| * | cubeb_sink: Get rid of variable shadowing within CubebSink's constructorLioncash2018-09-141-4/+4
| |/ | | | | | | | | The parameter of the lambda was shadowing the variable that was being assigned to.
* | Merge pull request #1320 from lioncash/namebunnei2018-09-171-1/+1
|\ \ | | | | | | cubeb_sink: Correct context name in ListCubebSinkDevices()
| * | cubeb_sink: Correct context name in ListCubebSinkDevices()Lioncash2018-09-141-1/+1
| |/ | | | | | | This ain't Citra.
* / Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-1516-64/+67
|/
* Merge pull request #1298 from lioncash/viewbunnei2018-09-132-2/+4
|\ | | | | audio_core/sink_details: Change std::string parameter into std::string_view
| * audio_core/sink_details: Change std::string parameter into std::string_viewLioncash2018-09-122-2/+4
| | | | | | | | | | The given string is only ever used for lookup and comparison, so we can just utilize a non-owning view to string data here
* | Merge pull request #1163 from FearlessTobi/add-audio-stretchingbunnei2018-09-137-49/+185
|\ \ | |/ |/| audio_core: Add audio stretching support
| * audio_core: Flush stream when not playing anythingMerryMage2018-09-126-0/+23
| |
| * cubeb_sink: Downsample arbitrary number of channelsMerryMage2018-09-091-10/+9
| |
| * cubeb_sink: Perform audio stretchingMerryMage2018-09-083-24/+26
| |
| * audio_core: Add audio stretcherMerryMage2018-09-083-0/+101
| |
| * cubeb_sink: Hold last available value instead of writing zerosMerryMage2018-09-081-5/+15
| | | | | | | | This reduces clicking in output audio should we underrun.
| * cubeb_sink: Use RingBufferMerryMage2018-09-081-40/+26
| |
| * Add audio stretching supportfearlessTobi2018-09-085-0/+15
| |
* | audio_renderer: Rename AudioOut instance to audio_outMerryMage2018-09-082-7/+7
|/
* Update microprofile scopes.Markus Wick2018-09-041-0/+4
| | | | | | Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace.
* audio_core/filter: Add explicit cast to assignment in Process()Lioncash2018-08-211-1/+1
| | | | | Previously this would cause warnings about implicit conversions to s16 from a double
* Merge pull request #1033 from MerryMage/interpbunnei2018-08-137-3/+267
|\ | | | | audio_core: Interpolate
| * audio_renderer: samples_remaining counts frames, not samplesMerryMage2018-08-131-1/+1
| |
| * audio_core: InterpolateMerryMage2018-08-135-0/+121
| |
| * audio_core: Implement low-pass filterMerryMage2018-08-133-2/+145
| |
* | cubeb_sink: Protect queue with a mutexMerryMage2018-08-121-0/+6
|/
* Pushed the requested sample rate instead of our fixed sample rateDavid Marcec2018-08-121-1/+1
|
* Added GetAudioRendererSampleRate, GetAudioRendererSampleCount & GetAudioRendererMixBufferCountDavid Marcec2018-08-122-1/+16
| | | | GetAudioRendererSampleRate is set as a "STUB" as a game could check if the sample rate it sent and the sample rate it wants don't match. Just a thought of something which could happen so keeping it as stub for the mean time
* Make building cubeb optionalKAMiKAZOW2018-08-071-2/+2
|
* audio_core: Implement audren_u audio playback.bunnei2018-08-053-0/+442
|
* audio_core: Use s16 where possible for audio samples.bunnei2018-08-058-33/+24
|
* audio_core: Port codec code from Citra for ADPCM decoding.bunnei2018-08-053-0/+123
|
* cubeb_sink: Support variable sample_rate and num_channels.bunnei2018-08-041-15/+25
|
* audio_core: Sinks need unique names as well.bunnei2018-08-045-9/+14
|
* audio_core: Streams need unique names for CoreTiming.bunnei2018-08-044-9/+13
|
* Merge pull request #895 from lioncash/sinkbunnei2018-08-031-5/+8
|\ | | | | sink_details: std::move std::function instances
| * sink_details: Deduplicate long std::function repetitionLioncash2018-08-021-4/+6
| | | | | | | | | | We can just use type aliases to avoid needing to write the same long type twice
| * sink_details: std::move std::function instancesLioncash2018-08-021-1/+2
| | | | | | | | | | Given std::function is allowed to potentially allocate, these should be std::move'd to prevent potential reallocation (should that ever happen).
* | audio_out: Use Buffer::Tag alias in GetTagsAndReleaseBuffers()'s prototypeLioncash2018-08-022-2/+2
|/ | | | | This makes the Buffer::Tag usage consistent with the Stream class's prototype of GetTagsAndReleaseBuffers().
* audio_core: Add configuration settings.bunnei2018-08-012-9/+31
|
* audio_core: Implement Sink and SinkStream interfaces with cubeb.bunnei2018-07-318-6/+261
|
* audio_core: Add interfaces for Sink and SinkStream.bunnei2018-07-316-0/+163
|
* audio_core: Misc. improvements to stream/buffer/audio_out.bunnei2018-07-315-20/+32
|
* audio_core: Add initial code for keeping track of audout state.bunnei2018-07-286-0/+334
|
* Massive removal of unused modulesJames Rowe2018-01-1326-3017/+0
|
* CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)B3n302018-01-091-1/+1
| | | | * CoreTiming: New CoreTiming; Add Test for CoreTiming
* audio: Log dropping frames as trace to reduce spam.bunnei2018-01-071-1/+1
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-1/+1
|
* Audio: Use std::deque instead of std::vector for the audio buffer type (StereoBuffer16).Subv2017-09-265-7/+9
| | | | | | | | | The current code inserts and deletes elements from the beginning of the audio buffer, which is very inefficient in an std::vector. Profiling was done using VisualStudio2017's Performance Analyzer in Super Mario 3D Land. Before this change: AudioInterp::Linear had 14.14% of the runtime (inclusive) and most of that time was spent in std::vector's insert implementation. After this change: AudioInterp::Linear has 0.36% of the runtime (inclusive)
* interpolate: Interpolate on a frame-by-frame basisMerryMage2017-08-283-88/+74
|
* CMake: Add SoundTouch include path to target propertyYuri Kunde Schlesner2017-05-281-2/+0
|
* CMake: Define an interface target for SDL2 definitionsYuri Kunde Schlesner2017-05-281-2/+1
|
* CMake: Correct inter-module dependencies and library visibilityYuri Kunde Schlesner2017-05-281-3/+4
| | | | | | | | | | Modules didn't correctly define their dependencies before, which relied on the frontends implicitly including every module for linking to succeed. Also changed every target_link_libraries call to specify visibility of dependencies to avoid leaking definitions to dependents when not necessary.
* DSP: Create backing memory for entire DSP RAMYuri Kunde Schlesner2017-05-104-31/+36
| | | | Also move address space mapping out of video_core.
* Doxygen: Amend minor issues (#2593)Mat M2017-02-274-3/+5
| | | | | | | | | Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues.
* Support looping HLE audio (#2422)Jake Merdich2017-01-302-11/+35
| | | | | * Support looping HLE audio * DSP: Fix dirty bit clears, handle nonmonotonically incrementing IDs * DSP: Add start offset support
* fixed the override warningnoah the goodra2017-01-271-1/+1
| | | | | | | | | | | | ``` In file included from citra/src/audio_core/sink_details.cpp:11: citra/src/./audio_core/sdl2_sink.h:25:10: warning: 'SetDevice' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] void SetDevice(int device_id); ^ citra/src/./audio_core/sink.h:39:18: note: overridden virtual function is here virtual void SetDevice(int device_id) = 0; ^ ```
* SDL: Select audio device (#2403)Kloen Lansfiel2017-01-267-18/+69
| | | | | | | | | | | | | | | | | | | | | | | | * Initial Commit Added Device logic to Sinks Started on UI for selecting devices Removed redundant import * Audio Core: Complete Device Switching Complete the device switching implementation by allowing the output device to be loaded, changed and saved through the configurations menu. Worked with the Sink abstraction and tuned the "Device Selection" configuration so that the Device List is automatically populated when the Sink is changed. This hopefully addresses the concerns and recommendations mentioned in the comments of the PR. * Clean original implementation. * Refactor GetSinkDetails
* time_stretch: Add missing #pragma once directiveLioncash2016-12-131-0/+2
|
* Add all services to the Service namespaceLioncash2016-12-112-3/+3
| | | | | Previously there was a split where some of the services were in the Service namespace and others were not.
* audio_core: SelectSink should default to auto if sink_id is invalidMerryMage2016-12-101-12/+7
|
* Improve verbosity of audio errors with SDL_GetError()freiro2016-11-221-2/+2
|
* Fix typosRicardo de Almeida Gonzaga2016-10-202-4/+4
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-219-9/+9
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-2123-48/+10
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-1913-76/+110
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-1824-249/+323
|
* audio_core: Tweak audio latencyMerryMage2016-09-072-2/+2
|
* codec: Fix ADPCM distortion caused by incorrect nibble orderfincs2016-09-031-2/+2
| | | | | | Closes #2049. Signed-off-by: MerryMage <MerryMage@users.noreply.github.com>
* audio_core: Add EnableStretching to interface so that one can toggle stretching on and offMerryMage2016-08-314-9/+52
|
* sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vectorMerryMage2016-08-315-9/+9
|
* DSP/HLE: Audio outputMerryMage2016-05-191-0/+7
|
* DSP/HLE: Implement mixer processingMerryMage2016-05-195-11/+311
|
* AudioCore: Implement time stretcher (#1737)Maribel2016-05-154-0/+219
| | | | | | | | | | | | | | * AudioCore: Implement time stretcher * fixup! AudioCore: Implement time stretcher * fixup! fixup! AudioCore: Implement time stretcher * fixup! fixup! fixup! AudioCore: Implement time stretcher * fixup! fixup! fixup! fixup! AudioCore: Implement time stretcher * fixup! fixup! fixup! fixup! fixup! AudioCore: Implement time stretcher
* source: Fix missing logging argumentsLioncash2016-05-091-2/+2
| | | | Silences two warnings on OSX.
* fixup simple type conversions where possibleAlexander Laties2016-05-072-6/+15
|
* Merge pull request #1736 from MerryMage/sdl2-sinkbunnei2016-05-075-1/+175
|\ | | | | AudioCore: SDL2 Sink
| * AudioCore: SDL2 SinkMerryMage2016-05-075-1/+175
| |
* | HLE: Fix recent DSP change for Visual Studio.bunnei2016-05-071-4/+2
| |
* | DSP/HLE: Implement Source processingMerryMage2016-05-037-5/+496
|/
* Audio: Add sink selection to configuration filesMerryMage2016-04-305-4/+55
|
* AudioCore: List of sink typesMerryMage2016-04-303-0/+46
|
* AudioCore: Implement NullSinkMerryMage2016-04-302-0/+30
|
* Merge pull request #1726 from MerryMage/read-write-regionbunnei2016-04-293-26/+31
|\ | | | | AudioCore: CurrentRegion() -> ReadRegion(), WriteRegion()
| * AudioCore: CurrentRegion() -> ReadRegion(), WriteRegion()MerryMage2016-04-293-26/+31
| |
* | Merge pull request #1723 from MerryMage/audio-interpbunnei2016-04-293-0/+128
|\ \ | | | | | | AudioCore: Implement interpolation
| * | AudioCore: Implement interpolationMerryMage2016-04-293-0/+128
| | |
* | | Merge pull request #1727 from MerryMage/minor-commitbunnei2016-04-283-12/+11
|\ \ \ | | | | | | | | AudioCore: Move samples_per_frame and num_sources into hle/common.h
| * | | AudioCore: Move samples_per_frame and num_sources into hle/common.hMerryMage2016-04-283-12/+11
| | |/ | |/|
* | | Merge pull request #1722 from MerryMage/soundtouchbunnei2016-04-281-1/+4
|\ \ \ | |/ / |/| | Externals: Add soundtouch
| * | Externals: Add soundtouchMerryMage2016-04-281-1/+4
| |/
* | AudioCore: Hack to prevent regressions: Trigger Binary pipe interrupt every audio frameMerryMage2016-04-271-0/+2
| |
* | DSP_DSP: Updated interrupt implementationMerryMage2016-04-272-4/+7
| |
* | DSP/Pipe: There are 8 pipesMerryMage2016-04-252-13/+19
|/
* DSP: Implement audio filters (simple, biquad)MerryMage2016-03-285-7/+275
|
* DSP: Implement audio codecs (PCM8, PCM16, ADPCM)MerryMage2016-03-243-0/+174
|
* DSP: Implement Pipe 2MerryMage2016-03-063-34/+194
| | | | | | Pipe 2 is a DSP pipe that is used to initialize both the DSP hardware (the application signals to the DSP to initialize) and the application (the DSP provides the memory location of structures in the shared memory region).
* AudioCore: Skeleton ImplementationMerryMage2016-02-218-0/+766
This commit: * Adds a new subproject, audio_core. * Defines structures that exist in DSP shared memory. * Hooks up various other parts of the emulator into audio core. This sets the foundation for a later HLE DSP implementation.