summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_renderer.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-27core/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory classLioncash1-8/+9
With all of the trivial parts of the memory interface moved over, we can get right into moving over the bits that are used. Note that this does require the use of GetInstance from the global system instance to be used within hle_ipc.cpp and the gdbstub. This is fine for the time being, as they both already rely on the global system instance in other functions. These will be removed in a change directed at both of these respectively. For now, it's sufficient, as it still accomplishes the goal of de-globalizing the memory code.
2019-11-27core: Prepare various classes for memory read/write migrationLioncash1-11/+13
Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us.
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-1/+1
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
2019-09-21Used revision 5 instead of 7, marked constexpr as staticDavid Marcec1-2/+2
2019-09-20Added frame_count for REV7 audio rendererDavid Marcec1-0/+10
Added framecount
2019-07-12Clang formatDavid Marcec1-1/+2
2019-07-12Addressed issuesDavid Marcec1-1/+1
2019-07-12"AudioRenderer" thread should have a unique nameDavid Marcec1-2/+3
Creating multiple "AudioRenderer" threads cause the previous thread to be overwritten. The thread will name be renamed to AudioRenderer-InstanceX, where X is the current instance number.
2019-07-08addressed issueDavid Marcec1-1/+1
2019-07-01audren: Only manage wave buffers with a sizeDavid Marcec1-3/+5
We shouldn't be incrementing if wave buffers are empty. They are considered invalid/unused wave buffers. This fixes the issue of certain sounds looping when they shouldn't
2019-02-16core_timing: Convert core timing into a classLioncash1-3/+4
Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces.
2018-12-28audio_core: Convert LOG_CRITICAL + UNREACHABLE over to UNIMPLEMENTED/UNIMPLEMENTED_MSGLioncash1-4/+2
These two macros being used in tandem were used prior to the introduction of UNIMPLEMENTED and UNIMPLEMENTED_MSG. This provides equivalent behavior, just with less typing/reading involved.
2018-12-06Avoid (expensive) audio interpolation when sample rates already matchheapo1-2/+5
2018-11-29core: Port all current usages of Event to Readable/WritableEventZach Hilman1-2/+2
2018-10-07Fixups for softlockDavid Marcec1-5/+6
2018-10-07Fixed missing returnDavid Marcec1-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.
2018-10-07Fixed smo softlockDavid Marcec1-13/+71
2018-09-24stream: Preserve enum class type in GetState()Lioncash1-1/+1
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.
2018-09-23Added audren:u#GetAudioRendererStateDavid Marcec1-0/+4
2018-09-17audio_renderer: Replace includes with forward declarations where applicableLioncash1-0/+40
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.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-12/+12
2018-09-08audio_renderer: Rename AudioOut instance to audio_outMerryMage1-6/+6
2018-08-13audio_renderer: samples_remaining counts frames, not samplesMerryMage1-1/+1
2018-08-13audio_core: InterpolateMerryMage1-0/+3
2018-08-12Pushed the requested sample rate instead of our fixed sample rateDavid Marcec1-1/+1
2018-08-12Added GetAudioRendererSampleRate, GetAudioRendererSampleCount & GetAudioRendererMixBufferCountDavid Marcec1-0/+12
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
2018-08-05audio_core: Implement audren_u audio playback.bunnei1-0/+234