Skip to content

Commit

Permalink
all: fix running on Windows, run vfmt over all files
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 6, 2023
1 parent de0418b commit ac77886
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions miniaudio.auto.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ pub enum ThreadPriority {
default = C.ma_thread_priority_default // 0,
}

/* See miniaudio_default.c.v and miniaudio_windows.c.v
/*
See miniaudio_default.c.v and miniaudio_windows.c.v
[typedef]
struct C.ma_event {
pub mut:
Expand All @@ -380,7 +381,8 @@ pub mut:
*/
pub type Event = C.ma_event

/* See miniaudio_default.c.v and miniaudio_windows.c.v
/*
See miniaudio_default.c.v and miniaudio_windows.c.v
[typedef]
struct C.ma_semaphore {
pub mut:
Expand Down
2 changes: 1 addition & 1 deletion miniaudio_windows.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module miniaudio

// C typedef aliases used

pub type C.ma_mutex = C.ma_handle
pub type C.ma_mutex = voidptr

[typedef]
pub struct C.ma_event {}
Expand Down
6 changes: 3 additions & 3 deletions x/miniaudio.v
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ pub fn (mut d AudioDevice) free() {
// C.ma_decoder_uninit(d.decoder)
C.ma_context_uninit(d.context)
C.ma_mutex_uninit(d.mutex)
d.context = &C.ma_context(unsafe{nil})
d.mutex = &C.ma_mutex(unsafe{nil})
d.device = &C.ma_device(unsafe{nil})
d.context = &C.ma_context(unsafe { nil })
d.mutex = &C.ma_mutex(unsafe { nil })
d.device = &C.ma_device(unsafe { nil })
// d.decoder = 0
}

Expand Down

0 comments on commit ac77886

Please sign in to comment.