Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b490890d
Commit
b490890d
authored
Oct 04, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Rename wine_dbgstr_fourcc to coreaudio_dbgstr_fourcc.
parent
ae77ddaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
coreaudio.h
dlls/winecoreaudio.drv/coreaudio.h
+1
-1
coremidi.c
dlls/winecoreaudio.drv/coremidi.c
+12
-12
No files found.
dlls/winecoreaudio.drv/coreaudio.h
View file @
b490890d
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "wine/debug.h"
#include "wine/debug.h"
/* fourcc is in native order, where MSB is the first character. */
/* fourcc is in native order, where MSB is the first character. */
static
inline
const
char
*
wine
_dbgstr_fourcc
(
INT32
fourcc
)
static
inline
const
char
*
coreaudio
_dbgstr_fourcc
(
INT32
fourcc
)
{
{
char
buf
[
4
]
=
{
(
char
)
(
fourcc
>>
24
),
(
char
)
(
fourcc
>>
16
),
char
buf
[
4
]
=
{
(
char
)
(
fourcc
>>
24
),
(
char
)
(
fourcc
>>
16
),
(
char
)
(
fourcc
>>
8
),
(
char
)
fourcc
};
(
char
)
(
fourcc
>>
8
),
(
char
)
fourcc
};
...
...
dlls/winecoreaudio.drv/coremidi.c
View file @
b490890d
...
@@ -448,7 +448,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
...
@@ -448,7 +448,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
sc
=
NewAUGraph
(
graph
);
sc
=
NewAUGraph
(
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"NewAUGraph return %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"NewAUGraph return %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -463,7 +463,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
...
@@ -463,7 +463,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
sc
=
AUGraphAddNode
(
*
graph
,
&
desc
,
&
synth_node
);
sc
=
AUGraphAddNode
(
*
graph
,
&
desc
,
&
synth_node
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphAddNode cannot create synthNode : %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphAddNode cannot create synthNode : %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -474,14 +474,14 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
...
@@ -474,14 +474,14 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
sc
=
AUGraphAddNode
(
*
graph
,
&
desc
,
&
out_node
);
sc
=
AUGraphAddNode
(
*
graph
,
&
desc
,
&
out_node
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphAddNode cannot create outNode %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphAddNode cannot create outNode %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
sc
=
AUGraphOpen
(
*
graph
);
sc
=
AUGraphOpen
(
*
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphOpen returns %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphOpen returns %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -490,7 +490,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
...
@@ -490,7 +490,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphConnectNodeInput cannot connect synthNode to outNode : %s
\n
"
,
ERR
(
"AUGraphConnectNodeInput cannot connect synthNode to outNode : %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -498,7 +498,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
...
@@ -498,7 +498,7 @@ static BOOL synth_unit_create_default(AUGraph *graph, AudioUnit *synth)
sc
=
AUGraphNodeInfo
(
*
graph
,
synth_node
,
0
,
synth
);
sc
=
AUGraphNodeInfo
(
*
graph
,
synth_node
,
0
,
synth
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphNodeInfo return %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphNodeInfo return %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -512,14 +512,14 @@ static BOOL synth_unit_init(AudioUnit synth, AUGraph graph)
...
@@ -512,14 +512,14 @@ static BOOL synth_unit_init(AudioUnit synth, AUGraph graph)
sc
=
AUGraphInitialize
(
graph
);
sc
=
AUGraphInitialize
(
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphInitialize(%p) returns %s
\n
"
,
graph
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphInitialize(%p) returns %s
\n
"
,
graph
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
sc
=
AUGraphStart
(
graph
);
sc
=
AUGraphStart
(
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphStart(%p) returns %s
\n
"
,
graph
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphStart(%p) returns %s
\n
"
,
graph
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -533,14 +533,14 @@ static BOOL synth_unit_close(AUGraph graph)
...
@@ -533,14 +533,14 @@ static BOOL synth_unit_close(AUGraph graph)
sc
=
AUGraphStop
(
graph
);
sc
=
AUGraphStop
(
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"AUGraphStop(%p) returns %s
\n
"
,
graph
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"AUGraphStop(%p) returns %s
\n
"
,
graph
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
sc
=
DisposeAUGraph
(
graph
);
sc
=
DisposeAUGraph
(
graph
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"DisposeAUGraph(%p) returns %s
\n
"
,
graph
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"DisposeAUGraph(%p) returns %s
\n
"
,
graph
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
FALSE
;
return
FALSE
;
}
}
...
@@ -686,7 +686,7 @@ static UINT midi_out_data(WORD dev_id, UINT data)
...
@@ -686,7 +686,7 @@ static UINT midi_out_data(WORD dev_id, UINT data)
sc
=
MusicDeviceMIDIEvent
(
dest
->
synth
,
bytes
[
0
],
bytes
[
1
],
bytes
[
2
],
0
);
sc
=
MusicDeviceMIDIEvent
(
dest
->
synth
,
bytes
[
0
],
bytes
[
1
],
bytes
[
2
],
0
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"MusicDeviceMIDIEvent returns %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"MusicDeviceMIDIEvent returns %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
MMSYSERR_ERROR
;
return
MMSYSERR_ERROR
;
}
}
}
}
...
@@ -739,7 +739,7 @@ static UINT midi_out_long_data(WORD dev_id, MIDIHDR *hdr, UINT hdr_size, struct
...
@@ -739,7 +739,7 @@ static UINT midi_out_long_data(WORD dev_id, MIDIHDR *hdr, UINT hdr_size, struct
sc
=
MusicDeviceSysEx
(
dest
->
synth
,
(
const
UInt8
*
)
hdr
->
lpData
,
hdr
->
dwBufferLength
);
sc
=
MusicDeviceSysEx
(
dest
->
synth
,
(
const
UInt8
*
)
hdr
->
lpData
,
hdr
->
dwBufferLength
);
if
(
sc
!=
noErr
)
if
(
sc
!=
noErr
)
{
{
ERR
(
"MusicDeviceSysEx returns %s
\n
"
,
wine
_dbgstr_fourcc
(
sc
));
ERR
(
"MusicDeviceSysEx returns %s
\n
"
,
coreaudio
_dbgstr_fourcc
(
sc
));
return
MMSYSERR_ERROR
;
return
MMSYSERR_ERROR
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment