2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
// See CPP file for comments.
|
|
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-17 05:18:15 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
class PointerWrap;
|
2016-06-24 10:43:46 +02:00
|
|
|
namespace MMIO
|
|
|
|
|
{
|
|
|
|
|
class Mapping;
|
|
|
|
|
}
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
namespace AudioInterface
|
|
|
|
|
{
|
|
|
|
|
void Init();
|
2013-04-16 23:14:36 -04:00
|
|
|
void Shutdown();
|
2016-06-24 10:43:46 +02:00
|
|
|
void DoState(PointerWrap& p);
|
2014-07-24 02:37:00 +08:00
|
|
|
bool IsPlaying();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-01-25 21:13:50 +01:00
|
|
|
void RegisterMMIO(MMIO::Mapping* mmio, u32 base);
|
|
|
|
|
|
2010-11-01 23:41:20 +00:00
|
|
|
// Get the audio rates (48000 or 32000 only)
|
2010-11-16 20:36:57 +00:00
|
|
|
unsigned int GetAIDSampleRate();
|
2010-11-01 23:41:20 +00:00
|
|
|
|
2012-04-23 04:47:31 +10:00
|
|
|
void GenerateAISInterrupt();
|
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
} // namespace
|