mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
miniaudio: fix wrong sizes for ma_device
This commit is contained in:
@@ -17,42 +17,42 @@ PTHREAD_RWLOCKATTR_SIZE :: 16
|
|||||||
|
|
||||||
pthread_t :: distinct u64
|
pthread_t :: distinct u64
|
||||||
|
|
||||||
pthread_attr_t :: struct #align(16) {
|
pthread_attr_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_ATTR_SIZE] c.char,
|
_: [PTHREAD_ATTR_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_cond_t :: struct #align(16) {
|
pthread_cond_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_COND_SIZE] c.char,
|
_: [PTHREAD_COND_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_condattr_t :: struct #align(16) {
|
pthread_condattr_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_CONDATTR_SIZE] c.char,
|
_: [PTHREAD_CONDATTR_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutex_t :: struct #align(16) {
|
pthread_mutex_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_MUTEX_SIZE] c.char,
|
_: [PTHREAD_MUTEX_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutexattr_t :: struct #align(16) {
|
pthread_mutexattr_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_MUTEXATTR_SIZE] c.char,
|
_: [PTHREAD_MUTEXATTR_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_once_t :: struct #align(16) {
|
pthread_once_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_ONCE_SIZE] c.char,
|
_: [PTHREAD_ONCE_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_rwlock_t :: struct #align(16) {
|
pthread_rwlock_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_RWLOCK_SIZE] c.char,
|
_: [PTHREAD_RWLOCK_SIZE] c.char,
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_rwlockattr_t :: struct #align(16) {
|
pthread_rwlockattr_t :: struct {
|
||||||
sig: c.long,
|
sig: c.long,
|
||||||
_: [PTHREAD_RWLOCKATTR_SIZE] c.char,
|
_: [PTHREAD_RWLOCKATTR_SIZE] c.char,
|
||||||
}
|
}
|
||||||
@@ -93,4 +93,4 @@ foreign pthread {
|
|||||||
pthread_setcancelstate :: proc (state: c.int, old_state: ^c.int) -> c.int ---
|
pthread_setcancelstate :: proc (state: c.int, old_state: ^c.int) -> c.int ---
|
||||||
pthread_setcanceltype :: proc (type: c.int, old_type: ^c.int) -> c.int ---
|
pthread_setcanceltype :: proc (type: c.int, old_type: ^c.int) -> c.int ---
|
||||||
pthread_cancel :: proc (thread: pthread_t) -> c.int ---
|
pthread_cancel :: proc (thread: pthread_t) -> c.int ---
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@ resampling_backend_vtable :: struct {
|
|||||||
onReset: proc "c" (pUserData: rawptr, pBackend: ^resampling_backend) -> result,
|
onReset: proc "c" (pUserData: rawptr, pBackend: ^resampling_backend) -> result,
|
||||||
}
|
}
|
||||||
|
|
||||||
resample_algorithm :: enum {
|
resample_algorithm :: enum c.int {
|
||||||
linear = 0, /* Fastest, lowest quality. Optional low-pass filtering. Default. */
|
linear = 0, /* Fastest, lowest quality. Optional low-pass filtering. Default. */
|
||||||
custom,
|
custom,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user