mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-29 09:13:27 +01:00
The primary motivation here is to make sure we submit samples from the CPU thread. This makes sure the timing of related interrupts accurate, and generally keeps the different kinds of audio synchronized. This will also allow improvements to audio dumping functionality. The new code is also more concise because it gets rid of some duplicated audio mixing code.
31 lines
552 B
C++
31 lines
552 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
// See CPP file for comments.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class PointerWrap;
|
|
namespace MMIO { class Mapping; }
|
|
|
|
namespace AudioInterface
|
|
{
|
|
|
|
void Init();
|
|
void Shutdown();
|
|
void DoState(PointerWrap &p);
|
|
|
|
void RegisterMMIO(MMIO::Mapping* mmio, u32 base);
|
|
|
|
void Update(u64 userdata, int cyclesLate);
|
|
|
|
// Get the audio rates (48000 or 32000 only)
|
|
unsigned int GetAIDSampleRate();
|
|
|
|
void GenerateAISInterrupt();
|
|
|
|
} // namespace
|