sokol.audio: fix compilation on macos (link with -framework AudioToolbox)

pull/6205/head
Delyan Angelov 2020-08-23 20:55:01 +03:00
parent dad2c6608e
commit e71aff71ce
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ module audio
#define SOKOL_IMPL #define SOKOL_IMPL
#include "sokol_audio.h" #include "sokol_audio.h"
#flag linux -lasound #flag linux -lasound
#flag darwin -framework AudioToolbox
// //
pub type FNStreamingCB = fn (buffer &f32, num_frames, num_channels int) pub type FNStreamingCB = fn (buffer &f32, num_frames, num_channels int)