Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#+build !linux
#+build !darwin
#+build !netbsd
#+build !openbsd
#+build !freebsd
#+build !haiku
package miniaudio

thread :: distinct rawptr
Expand Down
2 changes: 1 addition & 1 deletion vendor/miniaudio/common_unix.odin
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#+build !windows
#+build linux, darwin, netbsd, openbsd, freebsd, haiku
package miniaudio

import "core:sys/posix"
Expand Down
6 changes: 3 additions & 3 deletions vendor/miniaudio/logging.odin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package miniaudio

import "core:c/libc"
import "core:c"

foreign import lib { LIB }

Expand Down Expand Up @@ -48,12 +48,12 @@ log :: struct {
@(default_calling_convention="c", link_prefix="ma_")
foreign lib {
log_callback_init :: proc(onLog: log_callback_proc, pUserData: rawptr) -> log_callback ---

log_init :: proc(pAllocationCallbacks: ^allocation_callbacks, pLog: ^log) -> result ---
log_uninit :: proc(pLog: ^log) ---
log_register_callback :: proc(pLog: ^log, callback: log_callback) -> result ---
log_unregister_callback :: proc(pLog: ^log, callback: log_callback) -> result ---
log_post :: proc(pLog: ^log, level: u32, pMessage: cstring) -> result ---
log_postv :: proc(pLog: ^log, level: u32, pFormat: cstring, args: libc.va_list) -> result ---
log_postv :: proc(pLog: ^log, level: u32, pFormat: cstring, args: c.va_list) -> result ---
log_postf :: proc(pLog: ^log, level: u32, pFormat: cstring, #c_vararg args: ..any) -> result ---
}