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.
|
2011-02-22 12:48:35 +00:00
|
|
|
|
2010-06-09 01:37:08 +00:00
|
|
|
// Adapted from in_cube by hcs & destop
|
|
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2014-09-07 20:06:58 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2017-11-06 09:15:05 +01:00
|
|
|
class PointerWrap;
|
|
|
|
|
|
2015-10-05 06:40:12 -04:00
|
|
|
namespace StreamADPCM
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2015-10-05 06:40:12 -04:00
|
|
|
enum
|
|
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
ONE_BLOCK_SIZE = 32,
|
|
|
|
|
SAMPLES_PER_BLOCK = 28
|
2010-06-09 01:37:08 +00:00
|
|
|
};
|
2015-10-05 06:40:12 -04:00
|
|
|
|
|
|
|
|
void InitFilter();
|
2017-11-06 09:15:05 +01:00
|
|
|
void DoState(PointerWrap& p);
|
2015-10-05 06:40:12 -04:00
|
|
|
void DecodeBlock(s16* pcm, const u8* adpcm);
|
|
|
|
|
}
|