mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
sokol: fix audio example to work on FreeBSD (#21558)
This commit is contained in:
parent
27833e0dbe
commit
5407dbbde7
2 changed files with 10 additions and 0 deletions
6
thirdparty/sokol/sokol_audio.h
vendored
6
thirdparty/sokol/sokol_audio.h
vendored
|
@ -780,7 +780,13 @@ inline void saudio_setup(const saudio_desc& desc) { return saudio_setup(&desc);
|
|||
#include "aaudio/AAudio.h"
|
||||
#endif
|
||||
#elif defined(_SAUDIO_LINUX)
|
||||
// __v_ start
|
||||
#if !defined(__FreeBSD__)
|
||||
// __v_ end
|
||||
#include <alloca.h>
|
||||
// __v_ start
|
||||
#endif
|
||||
// __v_ end
|
||||
#define _SAUDIO_PTHREADS (1)
|
||||
#include <pthread.h>
|
||||
#define ALSA_PCM_NEW_HW_PARAMS_API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue