Merge branch 'portable' into portableMinimizeHeaders
# Conflicts: # src/BulHit.cpp
This commit is contained in:
commit
ca8b5ccaa1
8 changed files with 15 additions and 8 deletions
|
@ -192,8 +192,7 @@ bool AudioBackend_Init(void)
|
||||||
|
|
||||||
AXVoiceDeviceMixData mix_data[6];
|
AXVoiceDeviceMixData mix_data[6];
|
||||||
memset(mix_data, 0, sizeof(mix_data));
|
memset(mix_data, 0, sizeof(mix_data));
|
||||||
mix_data[0].bus[0].volume = i == 0 ? 0x8000 : 0; // Channel 1 goes on the left speaker
|
mix_data[i].bus[0].volume = 0x8000; // Voice 1 goes on the left speaker - voice 2 goes on the right speaker
|
||||||
mix_data[1].bus[0].volume = i == 1 ? 0x8000 : 0; // Channel 2 goes on the right speaker
|
|
||||||
|
|
||||||
AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_DRC, 0, mix_data);
|
AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_DRC, 0, mix_data);
|
||||||
AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_TV, 0, mix_data);
|
AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_TV, 0, mix_data);
|
||||||
|
@ -243,11 +242,13 @@ bool AudioBackend_Init(void)
|
||||||
|
|
||||||
void AudioBackend_Deinit(void)
|
void AudioBackend_Deinit(void)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < 2; ++i)
|
AXRegisterAppFrameCallback(NULL);
|
||||||
{
|
|
||||||
AXFreeVoice(voices[i]);
|
AXFreeVoice(voices[1]);
|
||||||
free(stream_buffers[i]);
|
AXFreeVoice(voices[0]);
|
||||||
}
|
|
||||||
|
free(stream_buffers[1]);
|
||||||
|
free(stream_buffers[0]);
|
||||||
|
|
||||||
free(stream_buffer_long);
|
free(stream_buffer_long);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
|
@ -568,7 +568,7 @@ void CortBox2(const RECT *rect, unsigned long col, SurfaceID surf_no)
|
||||||
|
|
||||||
// Dummied-out log function
|
// Dummied-out log function
|
||||||
// According to the Mac port, its name really is just "out".
|
// According to the Mac port, its name really is just "out".
|
||||||
static BOOL out(int unknown)
|
BOOL out(int unknown)
|
||||||
{
|
{
|
||||||
char unknown2[0x100];
|
char unknown2[0x100];
|
||||||
int unknown3;
|
int unknown3;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "Ending.h"
|
#include "Ending.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "MycParam.h"
|
#include "MycParam.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "NpcAct.h"
|
#include "NpcAct.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "TextScr.h"
|
#include "TextScr.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue