Removed some unused code.
This commit is contained in:
parent
27ae555555
commit
7e582c14fb
|
@ -356,9 +356,6 @@ void AudioSystem::UnregisterClient(size_t index) {
|
||||||
void AudioSystem::ProcessXmaContext(XMAContext& context, XMAContextData& data) {
|
void AudioSystem::ProcessXmaContext(XMAContext& context, XMAContextData& data) {
|
||||||
SCOPE_profile_cpu_f("apu");
|
SCOPE_profile_cpu_f("apu");
|
||||||
|
|
||||||
// Translate this for future use.
|
|
||||||
uint8_t* output_buffer = memory()->TranslatePhysical(data.output_buffer_ptr);
|
|
||||||
|
|
||||||
// What I see:
|
// What I see:
|
||||||
// XMA outputs 2 bytes per sample
|
// XMA outputs 2 bytes per sample
|
||||||
// 512 samples per frame (128 per subframe)
|
// 512 samples per frame (128 per subframe)
|
||||||
|
@ -385,6 +382,9 @@ void AudioSystem::ProcessXmaContext(XMAContext& context, XMAContextData& data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Translate this for future use.
|
||||||
|
uint8_t* output_buffer = memory()->TranslatePhysical(data.output_buffer_ptr);
|
||||||
|
|
||||||
// Output buffers are in raw PCM samples, 256 bytes per block.
|
// Output buffers are in raw PCM samples, 256 bytes per block.
|
||||||
// Output buffer is a ring buffer. We need to write from the write offset
|
// Output buffer is a ring buffer. We need to write from the write offset
|
||||||
// to the read offset.
|
// to the read offset.
|
||||||
|
@ -529,7 +529,6 @@ int AudioSystem::PrepareXMAPacket(XMAContext &context, XMAContextData &data) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return input_remaining_bytes;
|
return input_remaining_bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -631,8 +630,6 @@ void AudioSystem::WriteRegister(uint32_t addr, uint64_t value) {
|
||||||
XMAContext& context = xma_context_array_[context_id];
|
XMAContext& context = xma_context_array_[context_id];
|
||||||
XELOGAPU("AudioSystem: reset context %d", context_id);
|
XELOGAPU("AudioSystem: reset context %d", context_id);
|
||||||
|
|
||||||
uint32_t guest_ptr = registers_.xma_context_array_ptr +
|
|
||||||
context_id * sizeof(XMAContextData);
|
|
||||||
context.lock.lock();
|
context.lock.lock();
|
||||||
auto context_ptr = memory()->TranslateVirtual(context.guest_ptr);
|
auto context_ptr = memory()->TranslateVirtual(context.guest_ptr);
|
||||||
XMAContextData data(context_ptr);
|
XMAContextData data(context_ptr);
|
||||||
|
|
Loading…
Reference in New Issue