service/dsp: Migrate to ServiceFramework (#3915)

* service/dsp: Migrate to ServiceFramework

* service/dsp: Removed redundant buffer copy

* service/dsp: Addressed comment about pushing u32 instead of bool

* service/dsp: Fix clang format

* service/dsp: Addressed comment about minimizing global state

* service/dsp: Addressed comments and fixed log call issue

* service/dsp: Fix missed clang format
This commit is contained in:
NarcolepticK 2018-07-12 10:54:26 -04:00 committed by Weiyi Wang
parent 331c6f4d38
commit c39daa3c01
7 changed files with 689 additions and 655 deletions

View file

@ -13,7 +13,7 @@
#include "common/common_types.h"
#include "common/logging/log.h"
#include "core/core_timing.h"
#include "core/hle/service/dsp_dsp.h"
#include "core/hle/service/dsp/dsp_dsp.h"
namespace AudioCore {
@ -231,7 +231,7 @@ void DspHle::Impl::AudioPipeWriteStructAddresses() {
WriteU16(DspPipe::Audio, addr);
}
// Signal that we have data on this pipe.
Service::DSP_DSP::SignalPipeInterrupt(DspPipe::Audio);
Service::DSP::SignalPipeInterrupt(DspPipe::Audio);
}
size_t DspHle::Impl::CurrentRegionIndex() const {
@ -307,9 +307,9 @@ bool DspHle::Impl::Tick() {
void DspHle::Impl::AudioTickCallback(int cycles_late) {
if (Tick()) {
// TODO(merry): Signal all the other interrupts as appropriate.
Service::DSP_DSP::SignalPipeInterrupt(DspPipe::Audio);
Service::DSP::SignalPipeInterrupt(DspPipe::Audio);
// HACK(merry): Added to prevent regressions. Will remove soon.
Service::DSP_DSP::SignalPipeInterrupt(DspPipe::Binary);
Service::DSP::SignalPipeInterrupt(DspPipe::Binary);
}
// Reschedule recurrent event