Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8882cf01
Commit
8882cf01
authored
Jan 16, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winejack.drv: Remove superflouous pointer casts.
parent
72fb5e62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
audio.c
dlls/winejack.drv/audio.c
+13
-13
No files found.
dlls/winejack.drv/audio.c
View file @
8882cf01
...
...
@@ -272,7 +272,7 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
/* Length is in terms of 32 bit samples */
static
void
volume_effect32
(
void
*
buffer
,
int
length
,
int
left
,
int
right
)
{
short
*
data
=
(
short
*
)
buffer
;
short
*
data
=
buffer
;
int
i
,
v
;
if
(
right
==
-
1
)
right
=
left
;
...
...
@@ -360,15 +360,15 @@ static int JACK_callback_wwo (nframes_t nframes, void *arg)
{
sample_t
*
out_l
;
sample_t
*
out_r
;
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
WINE_WAVEOUT
*
wwo
=
arg
;
TRACE
(
"wDevID: %u, nframes %u state=%u
\n
"
,
wwo
->
wDevID
,
nframes
,
wwo
->
state
);
if
(
!
wwo
->
client
)
ERR
(
"client is closed, this is weird...
\n
"
);
out_l
=
(
sample_t
*
)
fp_jack_port_get_buffer
(
wwo
->
out_port_l
,
nframes
);
out_r
=
(
sample_t
*
)
fp_jack_port_get_buffer
(
wwo
->
out_port_r
,
nframes
);
out_l
=
fp_jack_port_get_buffer
(
wwo
->
out_port_l
,
nframes
);
out_r
=
fp_jack_port_get_buffer
(
wwo
->
out_port_r
,
nframes
);
if
(
wwo
->
state
==
WINE_WS_PLAYING
)
{
...
...
@@ -494,7 +494,7 @@ static int JACK_callback_wwo (nframes_t nframes, void *arg)
*/
static
int
JACK_bufsize_wwo
(
nframes_t
nframes
,
void
*
arg
)
{
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
WINE_WAVEOUT
*
wwo
=
arg
;
DWORD
buffer_required
;
TRACE
(
"wDevID=%d
\n
"
,
wwo
->
wDevID
);
TRACE
(
"the maximum buffer size is now %u frames
\n
"
,
nframes
);
...
...
@@ -562,7 +562,7 @@ static int JACK_srate (nframes_t nframes, void *arg)
/* if this is called then jack shut down... handle this appropriately */
static
void
JACK_shutdown_wwo
(
void
*
arg
)
{
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
WINE_WAVEOUT
*
wwo
=
arg
;
wwo
->
client
=
0
;
/* reset client */
...
...
@@ -582,7 +582,7 @@ static void JACK_shutdown_wwo(void* arg)
/* if this is called then jack shut down... handle this appropriately */
static
void
JACK_shutdown_wwi
(
void
*
arg
)
{
WINE_WAVEIN
*
wwi
=
(
WINE_WAVEIN
*
)
arg
;
WINE_WAVEIN
*
wwi
=
arg
;
wwi
->
client
=
0
;
/* reset client */
...
...
@@ -1783,18 +1783,18 @@ static int JACK_callback_wwi (nframes_t nframes, void *arg)
{
sample_t
*
in_l
;
sample_t
*
in_r
=
0
;
WINE_WAVEIN
*
wwi
=
(
WINE_WAVEIN
*
)
arg
;
WINE_WAVEIN
*
wwi
=
arg
;
TRACE
(
"wDevID: %u, nframes %u
\n
"
,
wwi
->
wDevID
,
nframes
);
if
(
!
wwi
->
client
)
ERR
(
"client is closed, this is weird...
\n
"
);
in_l
=
(
sample_t
*
)
fp_jack_port_get_buffer
(
wwi
->
in_port_l
,
nframes
);
in_l
=
fp_jack_port_get_buffer
(
wwi
->
in_port_l
,
nframes
);
if
(
wwi
->
in_port_r
)
in_r
=
(
sample_t
*
)
fp_jack_port_get_buffer
(
wwi
->
in_port_r
,
nframes
);
in_r
=
fp_jack_port_get_buffer
(
wwi
->
in_port_r
,
nframes
);
EnterCriticalSection
(
&
wwi
->
access_crst
);
if
((
wwi
->
lpQueuePtr
!=
NULL
)
&&
(
wwi
->
state
==
WINE_WS_PLAYING
))
...
...
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