Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
16207dd0
Commit
16207dd0
authored
Apr 12, 2020
by
Marco Lizza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing strict-protype warning.
parent
81a18ca6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
26 deletions
+26
-26
extras/dr_flac.h
extras/dr_flac.h
+7
-7
extras/dr_mp3.h
extras/dr_mp3.h
+2
-2
extras/dr_wav.h
extras/dr_wav.h
+1
-1
miniaudio.h
miniaudio.h
+16
-16
No files found.
extras/dr_flac.h
View file @
16207dd0
...
@@ -1458,7 +1458,7 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
...
@@ -1458,7 +1458,7 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
#define DRFLAC_NO_CPUID
#define DRFLAC_NO_CPUID
#endif
#endif
static
DRFLAC_INLINE
drflac_bool32
drflac_has_sse2
()
static
DRFLAC_INLINE
drflac_bool32
drflac_has_sse2
(
void
)
{
{
#if defined(DRFLAC_SUPPORT_SSE2)
#if defined(DRFLAC_SUPPORT_SSE2)
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE2)
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE2)
...
@@ -1483,7 +1483,7 @@ static DRFLAC_INLINE drflac_bool32 drflac_has_sse2()
...
@@ -1483,7 +1483,7 @@ static DRFLAC_INLINE drflac_bool32 drflac_has_sse2()
#endif
#endif
}
}
static
DRFLAC_INLINE
drflac_bool32
drflac_has_sse41
()
static
DRFLAC_INLINE
drflac_bool32
drflac_has_sse41
(
void
)
{
{
#if defined(DRFLAC_SUPPORT_SSE41)
#if defined(DRFLAC_SUPPORT_SSE41)
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE41)
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE41)
...
@@ -1673,7 +1673,7 @@ actually make sense. However, since CPU caps should never differ for a running p
...
@@ -1673,7 +1673,7 @@ actually make sense. However, since CPU caps should never differ for a running p
complicating internal API's by passing around CPU caps versus just disabling the warnings is worthwhile. I'm therefore
complicating internal API's by passing around CPU caps versus just disabling the warnings is worthwhile. I'm therefore
just going to disable these warnings. This is disabled via the DRFLAC_NO_THREAD_SANITIZE attribute.
just going to disable these warnings. This is disabled via the DRFLAC_NO_THREAD_SANITIZE attribute.
*/
*/
DRFLAC_NO_THREAD_SANITIZE
static
void
drflac__init_cpu_caps
()
DRFLAC_NO_THREAD_SANITIZE
static
void
drflac__init_cpu_caps
(
void
)
{
{
static
drflac_bool32
isCPUCapsInitialized
=
DRFLAC_FALSE
;
static
drflac_bool32
isCPUCapsInitialized
=
DRFLAC_FALSE
;
...
@@ -1698,7 +1698,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
...
@@ -1698,7 +1698,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
#else
#else
static
drflac_bool32
drflac__gIsNEONSupported
=
DRFLAC_FALSE
;
static
drflac_bool32
drflac__gIsNEONSupported
=
DRFLAC_FALSE
;
static
DRFLAC_INLINE
drflac_bool32
drflac__has_neon
()
static
DRFLAC_INLINE
drflac_bool32
drflac__has_neon
(
void
)
{
{
#if defined(DRFLAC_SUPPORT_NEON)
#if defined(DRFLAC_SUPPORT_NEON)
#if defined(DRFLAC_ARM) && !defined(DRFLAC_NO_NEON)
#if defined(DRFLAC_ARM) && !defined(DRFLAC_NO_NEON)
...
@@ -1716,7 +1716,7 @@ static DRFLAC_INLINE drflac_bool32 drflac__has_neon()
...
@@ -1716,7 +1716,7 @@ static DRFLAC_INLINE drflac_bool32 drflac__has_neon()
#endif
#endif
}
}
DRFLAC_NO_THREAD_SANITIZE
static
void
drflac__init_cpu_caps
()
DRFLAC_NO_THREAD_SANITIZE
static
void
drflac__init_cpu_caps
(
void
)
{
{
drflac__gIsNEONSupported
=
drflac__has_neon
();
drflac__gIsNEONSupported
=
drflac__has_neon
();
...
@@ -1728,7 +1728,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
...
@@ -1728,7 +1728,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
/* Endian Management */
/* Endian Management */
static
DRFLAC_INLINE
drflac_bool32
drflac__is_little_endian
()
static
DRFLAC_INLINE
drflac_bool32
drflac__is_little_endian
(
void
)
{
{
#if defined(DRFLAC_X86) || defined(DRFLAC_X64)
#if defined(DRFLAC_X86) || defined(DRFLAC_X64)
return
DRFLAC_TRUE
;
return
DRFLAC_TRUE
;
...
@@ -2632,7 +2632,7 @@ static DRFLAC_INLINE drflac_uint32 drflac__clz_software(drflac_cache_t x)
...
@@ -2632,7 +2632,7 @@ static DRFLAC_INLINE drflac_uint32 drflac__clz_software(drflac_cache_t x)
}
}
#ifdef DRFLAC_IMPLEMENT_CLZ_LZCNT
#ifdef DRFLAC_IMPLEMENT_CLZ_LZCNT
static
DRFLAC_INLINE
drflac_bool32
drflac__is_lzcnt_supported
()
static
DRFLAC_INLINE
drflac_bool32
drflac__is_lzcnt_supported
(
void
)
{
{
/* Fast compile time check for ARM. */
/* Fast compile time check for ARM. */
#if defined(DRFLAC_HAS_LZCNT_INTRINSIC) && defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5)
#if defined(DRFLAC_HAS_LZCNT_INTRINSIC) && defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5)
...
...
extras/dr_mp3.h
View file @
16207dd0
...
@@ -610,7 +610,7 @@ static __inline__ __attribute__((always_inline)) void drmp3_cpuid(int CPUInfo[],
...
@@ -610,7 +610,7 @@ static __inline__ __attribute__((always_inline)) void drmp3_cpuid(int CPUInfo[],
#endif
#endif
}
}
#endif
#endif
static
int
drmp3_have_simd
()
static
int
drmp3_have_simd
(
void
)
{
{
#ifdef DR_MP3_ONLY_SIMD
#ifdef DR_MP3_ONLY_SIMD
return
1
;
return
1
;
...
@@ -651,7 +651,7 @@ end:
...
@@ -651,7 +651,7 @@ end:
#define DRMP3_VMUL_S(x, s) vmulq_f32(x, vmovq_n_f32(s))
#define DRMP3_VMUL_S(x, s) vmulq_f32(x, vmovq_n_f32(s))
#define DRMP3_VREV(x) vcombine_f32(vget_high_f32(vrev64q_f32(x)), vget_low_f32(vrev64q_f32(x)))
#define DRMP3_VREV(x) vcombine_f32(vget_high_f32(vrev64q_f32(x)), vget_low_f32(vrev64q_f32(x)))
typedef
float32x4_t
drmp3_f4
;
typedef
float32x4_t
drmp3_f4
;
static
int
drmp3_have_simd
()
static
int
drmp3_have_simd
(
void
)
{
/* TODO: detect neon for !DR_MP3_ONLY_SIMD */
{
/* TODO: detect neon for !DR_MP3_ONLY_SIMD */
return
1
;
return
1
;
}
}
...
...
extras/dr_wav.h
View file @
16207dd0
...
@@ -1082,7 +1082,7 @@ static DRWAV_INLINE drwav_bool32 drwav__fourcc_equal(const unsigned char* a, con
...
@@ -1082,7 +1082,7 @@ static DRWAV_INLINE drwav_bool32 drwav__fourcc_equal(const unsigned char* a, con
static
DRWAV_INLINE
int
drwav__is_little_endian
()
static
DRWAV_INLINE
int
drwav__is_little_endian
(
void
)
{
{
#if defined(DRWAV_X86) || defined(DRWAV_X64)
#if defined(DRWAV_X86) || defined(DRWAV_X64)
return
DRWAV_TRUE
;
return
DRWAV_TRUE
;
...
...
miniaudio.h
View file @
16207dd0
...
@@ -4146,7 +4146,7 @@ Retrieves the size of the ma_context object.
...
@@ -4146,7 +4146,7 @@ Retrieves the size of the ma_context object.
This is mainly for the purpose of bindings to know how much memory to allocate.
This is mainly for the purpose of bindings to know how much memory to allocate.
*/
*/
MA_API size_t ma_context_sizeof();
MA_API size_t ma_context_sizeof(
void
);
/*
/*
Enumerates over every device (both playback and capture).
Enumerates over every device (both playback and capture).
...
@@ -5709,7 +5709,7 @@ IMPLEMENTATION
...
@@ -5709,7 +5709,7 @@ IMPLEMENTATION
#define MA_NO_XGETBV
#define MA_NO_XGETBV
#endif
#endif
static MA_INLINE ma_bool32 ma_has_sse2()
static MA_INLINE ma_bool32 ma_has_sse2(
void
)
{
{
#if defined(MA_SUPPORT_SSE2)
#if defined(MA_SUPPORT_SSE2)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_SSE2)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_SSE2)
...
@@ -5769,7 +5769,7 @@ static MA_INLINE ma_bool32 ma_has_avx()
...
@@ -5769,7 +5769,7 @@ static MA_INLINE ma_bool32 ma_has_avx()
}
}
#endif
#endif
static MA_INLINE ma_bool32 ma_has_avx2()
static MA_INLINE ma_bool32 ma_has_avx2(
void
)
{
{
#if defined(MA_SUPPORT_AVX2)
#if defined(MA_SUPPORT_AVX2)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_AVX2)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_AVX2)
...
@@ -5804,7 +5804,7 @@ static MA_INLINE ma_bool32 ma_has_avx2()
...
@@ -5804,7 +5804,7 @@ static MA_INLINE ma_bool32 ma_has_avx2()
#endif
#endif
}
}
static MA_INLINE ma_bool32 ma_has_avx512f()
static MA_INLINE ma_bool32 ma_has_avx512f(
void
)
{
{
#if defined(MA_SUPPORT_AVX512)
#if defined(MA_SUPPORT_AVX512)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_AVX512)
#if (defined(MA_X64) || defined(MA_X86)) && !defined(MA_NO_AVX512)
...
@@ -5839,7 +5839,7 @@ static MA_INLINE ma_bool32 ma_has_avx512f()
...
@@ -5839,7 +5839,7 @@ static MA_INLINE ma_bool32 ma_has_avx512f()
#endif
#endif
}
}
static MA_INLINE ma_bool32 ma_has_neon()
static MA_INLINE ma_bool32 ma_has_neon(
void
)
{
{
#if defined(MA_SUPPORT_NEON)
#if defined(MA_SUPPORT_NEON)
#if defined(MA_ARM) && !defined(MA_NO_NEON)
#if defined(MA_ARM) && !defined(MA_NO_NEON)
...
@@ -5875,7 +5875,7 @@ static MA_INLINE ma_bool32 ma_has_neon()
...
@@ -5875,7 +5875,7 @@ static MA_INLINE ma_bool32 ma_has_neon()
#endif
#endif
static MA_INLINE ma_bool32 ma_is_little_endian()
static MA_INLINE ma_bool32 ma_is_little_endian(
void
)
{
{
#if defined(MA_X86) || defined(MA_X64)
#if defined(MA_X86) || defined(MA_X64)
return MA_TRUE;
return MA_TRUE;
...
@@ -5885,7 +5885,7 @@ static MA_INLINE ma_bool32 ma_is_little_endian()
...
@@ -5885,7 +5885,7 @@ static MA_INLINE ma_bool32 ma_is_little_endian()
#endif
#endif
}
}
static MA_INLINE ma_bool32 ma_is_big_endian()
static MA_INLINE ma_bool32 ma_is_big_endian(
void
)
{
{
return !ma_is_little_endian();
return !ma_is_little_endian();
}
}
...
@@ -7177,22 +7177,22 @@ static MA_INLINE void ma_seed(ma_int32 seed)
...
@@ -7177,22 +7177,22 @@ static MA_INLINE void ma_seed(ma_int32 seed)
ma_lcg_seed(&g_maLCG, seed);
ma_lcg_seed(&g_maLCG, seed);
}
}
static MA_INLINE ma_int32 ma_rand_s32()
static MA_INLINE ma_int32 ma_rand_s32(
void
)
{
{
return ma_lcg_rand_s32(&g_maLCG);
return ma_lcg_rand_s32(&g_maLCG);
}
}
static MA_INLINE ma_uint32 ma_rand_u32()
static MA_INLINE ma_uint32 ma_rand_u32(
void
)
{
{
return ma_lcg_rand_u32(&g_maLCG);
return ma_lcg_rand_u32(&g_maLCG);
}
}
static MA_INLINE double ma_rand_f64()
static MA_INLINE double ma_rand_f64(
void
)
{
{
return ma_lcg_rand_f64(&g_maLCG);
return ma_lcg_rand_f64(&g_maLCG);
}
}
static MA_INLINE float ma_rand_f32()
static MA_INLINE float ma_rand_f32(
void
)
{
{
return ma_lcg_rand_f32(&g_maLCG);
return ma_lcg_rand_f32(&g_maLCG);
}
}
...
@@ -7383,7 +7383,7 @@ static void ma__free_from_callbacks(void* p, const ma_allocation_callbacks* pAll
...
@@ -7383,7 +7383,7 @@ static void ma__free_from_callbacks(void* p, const ma_allocation_callbacks* pAll
}
}
}
}
static ma_allocation_callbacks ma_allocation_callbacks_init_default()
static ma_allocation_callbacks ma_allocation_callbacks_init_default(
void
)
{
{
ma_allocation_callbacks callbacks;
ma_allocation_callbacks callbacks;
callbacks.pUserData = NULL;
callbacks.pUserData = NULL;
...
@@ -16379,9 +16379,9 @@ typedef ma_snd_pcm_sframes_t (* ma_snd_pcm_avail_proc) (
...
@@ -16379,9 +16379,9 @@ typedef ma_snd_pcm_sframes_t (* ma_snd_pcm_avail_proc) (
typedef ma_snd_pcm_sframes_t (* ma_snd_pcm_avail_update_proc) (ma_snd_pcm_t *pcm);
typedef ma_snd_pcm_sframes_t (* ma_snd_pcm_avail_update_proc) (ma_snd_pcm_t *pcm);
typedef int (* ma_snd_pcm_wait_proc) (ma_snd_pcm_t *pcm, int timeout);
typedef int (* ma_snd_pcm_wait_proc) (ma_snd_pcm_t *pcm, int timeout);
typedef int (* ma_snd_pcm_info_proc) (ma_snd_pcm_t *pcm, ma_snd_pcm_info_t* info);
typedef int (* ma_snd_pcm_info_proc) (ma_snd_pcm_t *pcm, ma_snd_pcm_info_t* info);
typedef size_t (* ma_snd_pcm_info_sizeof_proc) ();
typedef size_t (* ma_snd_pcm_info_sizeof_proc) (
void
);
typedef const char* (* ma_snd_pcm_info_get_name_proc) (const ma_snd_pcm_info_t* info);
typedef const char* (* ma_snd_pcm_info_get_name_proc) (const ma_snd_pcm_info_t* info);
typedef int (* ma_snd_config_update_free_global_proc) ();
typedef int (* ma_snd_config_update_free_global_proc) (
void
);
/* This array specifies each of the common devices that can be used for both playback and capture. */
/* This array specifies each of the common devices that can be used for both playback and capture. */
static const char* g_maCommonDeviceNamesALSA[] = {
static const char* g_maCommonDeviceNamesALSA[] = {
...
@@ -18910,7 +18910,7 @@ typedef void (* ma_pa_free_cb_t) (void* p);
...
@@ -18910,7 +18910,7 @@ typedef void (* ma_pa_free_cb_t) (void* p);
#endif
#endif
typedef ma_pa_mainloop* (* ma_pa_mainloop_new_proc) ();
typedef ma_pa_mainloop* (* ma_pa_mainloop_new_proc) (
void
);
typedef void (* ma_pa_mainloop_free_proc) (ma_pa_mainloop* m);
typedef void (* ma_pa_mainloop_free_proc) (ma_pa_mainloop* m);
typedef ma_pa_mainloop_api* (* ma_pa_mainloop_get_api_proc) (ma_pa_mainloop* m);
typedef ma_pa_mainloop_api* (* ma_pa_mainloop_get_api_proc) (ma_pa_mainloop* m);
typedef int (* ma_pa_mainloop_iterate_proc) (ma_pa_mainloop* m, int block, int* retval);
typedef int (* ma_pa_mainloop_iterate_proc) (ma_pa_mainloop* m, int block, int* retval);
...
@@ -20752,7 +20752,7 @@ typedef void (* ma_JackShutdownCallback) (void* arg);
...
@@ -20752,7 +20752,7 @@ typedef void (* ma_JackShutdownCallback) (void* arg);
typedef ma_jack_client_t* (* ma_jack_client_open_proc) (const char* client_name, ma_jack_options_t options, ma_jack_status_t* status, ...);
typedef ma_jack_client_t* (* ma_jack_client_open_proc) (const char* client_name, ma_jack_options_t options, ma_jack_status_t* status, ...);
typedef int (* ma_jack_client_close_proc) (ma_jack_client_t* client);
typedef int (* ma_jack_client_close_proc) (ma_jack_client_t* client);
typedef int (* ma_jack_client_name_size_proc) ();
typedef int (* ma_jack_client_name_size_proc) (
void
);
typedef int (* ma_jack_set_process_callback_proc) (ma_jack_client_t* client, ma_JackProcessCallback process_callback, void* arg);
typedef int (* ma_jack_set_process_callback_proc) (ma_jack_client_t* client, ma_JackProcessCallback process_callback, void* arg);
typedef int (* ma_jack_set_buffer_size_callback_proc)(ma_jack_client_t* client, ma_JackBufferSizeCallback bufsize_callback, void* arg);
typedef int (* ma_jack_set_buffer_size_callback_proc)(ma_jack_client_t* client, ma_JackBufferSizeCallback bufsize_callback, void* arg);
typedef void (* ma_jack_on_shutdown_proc) (ma_jack_client_t* client, ma_JackShutdownCallback function, void* arg);
typedef void (* ma_jack_on_shutdown_proc) (ma_jack_client_t* client, ma_JackShutdownCallback function, void* arg);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment