Merge pull request #3335 from ShadowsFriend/nopch_fix
Core: Fix build with portaudio enabled and pch disabled
This commit is contained in:
commit
e670d29dfe
|
@ -7,6 +7,8 @@
|
|||
|
||||
#if HAVE_PORTAUDIO
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/HW/EXI.h"
|
||||
#include "Core/HW/EXI_Device.h"
|
||||
|
@ -121,7 +123,7 @@ void CEXIMic::StreamReadOne()
|
|||
if (samples_avail >= buff_size_samples)
|
||||
{
|
||||
s16 *last_buffer = &stream_buffer[stream_rpos];
|
||||
memcpy(ring_buffer, last_buffer, buff_size);
|
||||
std::memcpy(ring_buffer, last_buffer, buff_size);
|
||||
|
||||
samples_avail -= buff_size_samples;
|
||||
|
||||
|
@ -151,7 +153,7 @@ CEXIMic::CEXIMic(int index)
|
|||
buff_size_samples = buff_size / sample_size;
|
||||
|
||||
ring_pos = 0;
|
||||
memset(ring_buffer, 0, sizeof(ring_buffer));
|
||||
std::memset(ring_buffer, 0, sizeof(ring_buffer));
|
||||
|
||||
next_int_ticks = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue