[compiler] Misc changes to make this emulator properly compile under Linux with Clang
This commit is contained in:
committed by
Radosław Gliński
parent
0dc0f18abb
commit
f58fab1d2c
@@ -10,6 +10,7 @@
|
||||
#ifndef XENIA_APU_AUDIO_MEDIA_PLAYER_H_
|
||||
#define XENIA_APU_AUDIO_MEDIA_PLAYER_H_
|
||||
|
||||
#include "xenia/apu/audio_driver.h"
|
||||
#include "xenia/apu/audio_system.h"
|
||||
#include "xenia/kernel/xam/apps/xmp_app.h"
|
||||
|
||||
|
||||
@@ -160,23 +160,23 @@ static_assert_size(Xma2ExtraData, 34);
|
||||
|
||||
class XmaContext {
|
||||
public:
|
||||
static const uint32_t kBytesPerPacket = 2048;
|
||||
static const uint32_t kBitsPerPacket = kBytesPerPacket * 8;
|
||||
static const uint32_t kBitsPerHeader = 32;
|
||||
static constexpr uint32_t kBytesPerPacket = 2048;
|
||||
static constexpr uint32_t kBitsPerPacket = kBytesPerPacket * 8;
|
||||
static constexpr uint32_t kBitsPerHeader = 32;
|
||||
|
||||
static const uint32_t kBytesPerSample = 2;
|
||||
static const uint32_t kSamplesPerFrame = 512;
|
||||
static const uint32_t kSamplesPerSubframe = 128;
|
||||
static const uint32_t kBytesPerFrameChannel =
|
||||
static constexpr uint32_t kBytesPerSample = 2;
|
||||
static constexpr uint32_t kSamplesPerFrame = 512;
|
||||
static constexpr uint32_t kSamplesPerSubframe = 128;
|
||||
static constexpr uint32_t kBytesPerFrameChannel =
|
||||
kSamplesPerFrame * kBytesPerSample;
|
||||
static const uint32_t kBytesPerSubframeChannel =
|
||||
static constexpr uint32_t kBytesPerSubframeChannel =
|
||||
kSamplesPerSubframe * kBytesPerSample;
|
||||
|
||||
// static const uint32_t kOutputBytesPerBlock = 256;
|
||||
// static const uint32_t kOutputMaxSizeBytes = 31 * kOutputBytesPerBlock;
|
||||
|
||||
explicit XmaContext();
|
||||
~XmaContext();
|
||||
virtual ~XmaContext();
|
||||
|
||||
virtual int Setup(uint32_t id, Memory* memory, uint32_t guest_ptr) {
|
||||
return 0;
|
||||
|
||||
@@ -45,28 +45,28 @@ static constexpr int kIdToSampleRate[4] = {24000, 32000, 44100, 48000};
|
||||
|
||||
class XmaContextNew : public XmaContext {
|
||||
public:
|
||||
static const uint32_t kBytesPerPacket = 2048;
|
||||
static const uint32_t kBytesPerPacketHeader = 4;
|
||||
static const uint32_t kBytesPerPacketData =
|
||||
static constexpr uint32_t kBytesPerPacket = 2048;
|
||||
static constexpr uint32_t kBytesPerPacketHeader = 4;
|
||||
static constexpr uint32_t kBytesPerPacketData =
|
||||
kBytesPerPacket - kBytesPerPacketHeader;
|
||||
|
||||
static const uint32_t kBitsPerPacket = kBytesPerPacket * 8;
|
||||
static const uint32_t kBitsPerPacketHeader = 32;
|
||||
static const uint32_t kBitsPerFrameHeader = 15;
|
||||
static constexpr uint32_t kBitsPerPacket = kBytesPerPacket * 8;
|
||||
static constexpr uint32_t kBitsPerPacketHeader = 32;
|
||||
static constexpr uint32_t kBitsPerFrameHeader = 15;
|
||||
|
||||
static const uint32_t kBytesPerSample = 2;
|
||||
static const uint32_t kSamplesPerFrame = 512;
|
||||
static const uint32_t kSamplesPerSubframe = 128;
|
||||
static const uint32_t kBytesPerFrameChannel =
|
||||
static constexpr uint32_t kBytesPerSample = 2;
|
||||
static constexpr uint32_t kSamplesPerFrame = 512;
|
||||
static constexpr uint32_t kSamplesPerSubframe = 128;
|
||||
static constexpr uint32_t kBytesPerFrameChannel =
|
||||
kSamplesPerFrame * kBytesPerSample;
|
||||
static const uint32_t kBytesPerSubframeChannel =
|
||||
static constexpr uint32_t kBytesPerSubframeChannel =
|
||||
kSamplesPerSubframe * kBytesPerSample;
|
||||
|
||||
static const uint32_t kOutputBytesPerBlock = 256;
|
||||
static const uint32_t kOutputMaxSizeBytes = 31 * kOutputBytesPerBlock;
|
||||
static constexpr uint32_t kOutputBytesPerBlock = 256;
|
||||
static constexpr uint32_t kOutputMaxSizeBytes = 31 * kOutputBytesPerBlock;
|
||||
|
||||
static const uint32_t kLastFrameMarker = 0x7FFF;
|
||||
static const uint32_t kMaxFrameSizeinBits = 0x4000 - kBitsPerPacketHeader;
|
||||
static constexpr uint32_t kLastFrameMarker = 0x7FFF;
|
||||
static constexpr uint32_t kMaxFrameSizeinBits = 0x4000 - kBitsPerPacketHeader;
|
||||
|
||||
explicit XmaContextNew();
|
||||
~XmaContextNew();
|
||||
|
||||
Reference in New Issue
Block a user