aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/audio
AgeCommit message (Collapse)Author
2018-07-19audren_u: Use a std::array instead of std::string for holding the audio ↵Lioncash
interface/device name std::string doesn't include the null-terminator in its data() + size() range. This ensures that the null-terminator will also be written to the buffer
2018-07-19audout_u: Use a std::array instead of std::string for holding the audio ↵Lioncash
interface name Uses a type that doesn't potentially dynamically allocate, and ensures that the name of the interface is properly null-terminated when writing it to the buffer.
2018-07-19Merge pull request #726 from lioncash/overloadbunnei
hle_ipc: Introduce generic WriteBuffer overload for multiple container types
2018-07-19hle_ipc: Introduce generic WriteBuffer overload for multiple container typesLioncash
This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one.
2018-07-19hle/service: Make constructors explicit where applicableLioncash
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-13We only need to alert for memory pool changesDavid Marcec
2018-07-13initialized voice status and unused sizes in the update data headerDavid Marcec
2018-07-12Audout "Auto" functionsDavid Marcec
Audout autos are identical to their counterpart except for the buffer type which yuzu already handles for us.
2018-07-03Update AudioRenderer Voice Sections (#614)David
* voice section updating * fixed slight offset miscalculation * fixed overflow
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-06-27Merge pull request #588 from mailwl/hwopusbunnei
Service/Audio: add hwopus service, stub GetWorkBufferSize function
2018-06-25Send the correct RequestUpdateAudioRenderer revision in the output header (#587)David
* We should be returning our revision instead of what is requested. Hardware test on a 5.1.0 console * Added sysversion comment
2018-06-25Service/Audio: add hwopus service, stub GetWorkBufferSize functionmailwl
2018-06-23Removed duplicate structs, changed AudioRendererResponse -> UpdateDataHeader ↵David
(#583) * Removed duplicate structs, changed AudioRendererResponse -> UpdateDataHeader According to game symbols(SMO), there's references to UpdateDataHeader which seems to be what AudioRendererResponse actually is * oops * AudioRendererParameters should be AudioRendererParameter according to SMO
2018-06-22Fixed RequestUpdateAudioRenderer deadlocks and calculated section sizes ↵David
properly (#580) * Fixed RequestUpdateAudioRenderer deadlocks and calculated section sizes properly This fixes RequestUpdateAudioRenderer deadlocks in games like Puyo Puyo Tetris and games which require a proper section size in games such as Retro City Rampage. This fixes causes various games to start rendering or trying to render
2018-06-21Service/Audio: update audren:u servicemailwl
2018-06-20Build: Fixed some MSVC warnings in various parts of the code.Subv
2018-05-25GetAudioRendererWorkBufferSize impl (#465)David
* GetAudioRendererWorkBufferSize impl Impl of GetAudioRendererWorkBufferSize based on RE, if this can be cleaned up, please contribute! * Naming conventions * Removed unneeded placeholder * lioncache changes * fixed const * switched to Common::AlignUp
2018-05-20Correct audio command numbers & add or rename some functions (#455)greggameplayer
* Add unknown function at the number command 2 * correct audout:u commands numbers * correct audrec:u cmd number & add Unknown function * correct IAudioDevice command numbers * correct codecctl cmd numbers & rename the 8 function * correct place of unknown function & fix clang-format
2018-04-30core_timing: Namespace all functions and constants in core_timing's headerLioncash
All of these variables and functions are related to timings and should be within the namespace.
2018-04-26Merge branch 'master' of https://github.com/yuzu-emu/yuzu into service-implDavid Marcec
2018-04-24audio: Move logging macros over to new fmt-compatible onesLioncash
2018-04-22GetIUserInterface->CreateUserInterface, Added todos and stub logs. ↵David Marcec
Playreport->PlayReport.
2018-04-21Implemented GetIUserInterface properly, Playreport and ↵David Marcec
SSL::SetInterfaceVersion. Fixed ipc issues with IAudioDevice(wrong ids)
2018-04-19service: Use nested namespace specifiers where applicableLioncash
Tidies up namespace declarations
2018-04-10Decimal changeHexagon12
2018-04-10Updated CodecCtl with more service names.Hexagon12
2018-04-10Updated audren with more service names.Hexagon12
2018-04-10Updated audrec with more service names.Hexagon12
2018-04-10Updated audout with more service names.Hexagon12
2018-04-10Updated audin with more service names.Hexagon12
2018-04-02audren_u: Stub out GetActiveAudioDeviceName.bunnei
2018-04-02audout_u: Implement GetAudioOutState.bunnei
2018-03-29audren_u: Stub QueryAudioDeviceSystemEvent and GetActiveChannelCount.bunnei
2018-03-25audren_u: Fix GetAudioDevice.bunnei
2018-03-04CoreTiming: Unschedule the pending events when an Interface is destroyed.Subv
2018-02-22Stub more functionsmailwl
2018-02-16Service/hid: stub some functionsmailwl
2018-02-13audio: Use WriteBuffer instead of BufferDescriptorB.bunnei
2018-02-13audren_u: Schedule reoccuring event. (#183)bunnei
* audren_u: Schedule reoccuring event. * audren_u: Stub GetAudioRenderersProcessMasterVolume, and misc. changes.
2018-02-12Add RequestUpdateAudioRenderer, StartAudioRenderer and StopAudioRenderer ↵gdkchan
stubs to audren:u
2018-02-07Service: stub some functions in am, audio, time, vi servicesmailwl
2018-01-24audout_u: Various cleanups.bunnei
2018-01-24hle: Rename RequestBuilder to ResponseBuilder.bunnei
2018-01-24service: Fix all incorrect IPC response headers.bunnei
2018-01-24audout:u OpenAudioOut and IAudioOut (#138)st4rk
* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation * using an enum for audio_out_state as well as changing its initialize to member initializer list * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * added missing Audio loggin subclass, minor fixes, clang comment breakline * Solving backend logging conflict * minor fix * Fixed duplicated Service NVDRV in backend.cpp, my bad
2018-01-22Stub OpenAudioOut and fix a issue with HID IAppletResource being created ↵gdkchan
more than once
2018-01-21Added stubs for audio services. (#116)st4rk
* stubs for audout:u, audin:u, audrec:u, audren:u, codecctl and decoding tables with nullptr for future implementations * fixing the changes requested (remove private, explicit)
2018-01-14audio: Add files to CMake.bunnei
2018-01-14audio: Stub out AudOutU::ListAudioOuts.bunnei