mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
MINI_AL_IMPLEMENTATION to MINIAUDIO_IMPLEMENTATION.
This commit is contained in:
@@ -220,7 +220,7 @@ window are not included in the calculation.
|
||||
mal_uint64 mal_resampler_get_expected_output_frame_count(mal_resampler* pResampler, mal_uint64 inputFrameCount);
|
||||
#endif
|
||||
|
||||
#ifdef MINI_AL_IMPLEMENTATION
|
||||
#ifdef MINIAUDIO_IMPLEMENTATION
|
||||
|
||||
#ifndef MAL_RESAMPLER_MIN_RATIO
|
||||
#define MAL_RESAMPLER_MIN_RATIO 0.02083333
|
||||
|
||||
@@ -99,7 +99,7 @@ void* mal_pcm_rb_get_subbuffer_ptr(mal_pcm_rb* pRB, size_t subbufferIndex, void*
|
||||
|
||||
#endif // mal_ring_buffer_h
|
||||
|
||||
#ifdef MINI_AL_IMPLEMENTATION
|
||||
#ifdef MINIAUDIO_IMPLEMENTATION
|
||||
MAL_INLINE mal_uint32 mal_rb__extract_offset_in_bytes(mal_uint32 encodedOffset)
|
||||
{
|
||||
return encodedOffset & 0x7FFFFFFF;
|
||||
@@ -634,4 +634,4 @@ void* mal_pcm_rb_get_subbuffer_ptr(mal_pcm_rb* pRB, size_t subbufferIndex, void*
|
||||
return mal_rb_get_subbuffer_ptr(&pRB->rb, subbufferIndex, pBuffer);
|
||||
}
|
||||
|
||||
#endif // MINI_AL_IMPLEMENTATION
|
||||
#endif // MINIAUDIO_IMPLEMENTATION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "../../../../dr_libs/dr_wav.h"
|
||||
|
||||
#define MAL_DEBUG_OUTPUT
|
||||
#define MINI_AL_IMPLEMENTATION
|
||||
#define MINIAUDIO_IMPLEMENTATION
|
||||
#include "../../miniaudio.h"
|
||||
#include "../mal_resampler.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user