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
189f8941
Commit
189f8941
authored
Aug 10, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Switch to mmdevapi's unixlib.h.
parent
13fa7a57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
264 deletions
+24
-264
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+4
-1
pulse.c
dlls/winepulse.drv/pulse.c
+20
-2
unixlib.h
dlls/winepulse.drv/unixlib.h
+0
-261
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
189f8941
...
...
@@ -29,6 +29,7 @@
#include "winternl.h"
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/unixlib.h"
#include "ole2.h"
#include "mimeole.h"
...
...
@@ -45,12 +46,14 @@
#include "endpointvolume.h"
#include "audiopolicy.h"
#include "unixlib.h"
#include "
../mmdevapi/
unixlib.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
pulse
);
static
unixlib_handle_t
pulse_handle
;
#define MAX_PULSE_NAME_LEN 256
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
/* From <dlls/mmdevapi/mmdevapi.h> */
...
...
dlls/winepulse.drv/pulse.c
View file @
189f8941
...
...
@@ -38,12 +38,20 @@
#include "initguid.h"
#include "audioclient.h"
#include "unixlib.h"
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/unixlib.h"
#include "../mmdevapi/unixlib.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
pulse
);
enum
phys_device_bus_type
{
phys_device_bus_invalid
=
-
1
,
phys_device_bus_pci
,
phys_device_bus_usb
};
struct
pulse_stream
{
EDataFlow
dataflow
;
...
...
@@ -2367,6 +2375,7 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
pulse_release_render_buffer
,
pulse_get_capture_buffer
,
pulse_release_capture_buffer
,
NULL
,
pulse_get_mix_format
,
pulse_get_device_period
,
pulse_get_buffer_size
,
...
...
@@ -2380,6 +2389,10 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
pulse_test_connect
,
pulse_is_started
,
pulse_get_prop_value
,
NULL
,
NULL
,
NULL
,
NULL
,
};
#ifdef _WIN64
...
...
@@ -2805,6 +2818,7 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
pulse_release_render_buffer
,
pulse_wow64_get_capture_buffer
,
pulse_release_capture_buffer
,
NULL
,
pulse_wow64_get_mix_format
,
pulse_wow64_get_device_period
,
pulse_wow64_get_buffer_size
,
...
...
@@ -2818,6 +2832,10 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
pulse_wow64_test_connect
,
pulse_is_started
,
pulse_wow64_get_prop_value
,
NULL
,
NULL
,
NULL
,
NULL
,
};
#endif
/* _WIN64 */
dlls/winepulse.drv/unixlib.h
deleted
100644 → 0
View file @
13fa7a57
/*
* Copyright 2021 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/list.h"
#include "wine/unixlib.h"
#define MAX_PULSE_NAME_LEN 256
typedef
UINT64
stream_handle
;
enum
phys_device_bus_type
{
phys_device_bus_invalid
=
-
1
,
phys_device_bus_pci
,
phys_device_bus_usb
};
struct
endpoint
{
unsigned
int
name
;
unsigned
int
device
;
};
struct
main_loop_params
{
HANDLE
event
;
};
struct
get_endpoint_ids_params
{
EDataFlow
flow
;
struct
endpoint
*
endpoints
;
unsigned
int
size
;
HRESULT
result
;
unsigned
int
num
;
unsigned
int
default_idx
;
};
struct
create_stream_params
{
const
char
*
name
;
const
char
*
device
;
EDataFlow
flow
;
AUDCLNT_SHAREMODE
share
;
DWORD
flags
;
REFERENCE_TIME
duration
;
REFERENCE_TIME
period
;
const
WAVEFORMATEX
*
fmt
;
HRESULT
result
;
UINT32
*
channel_count
;
stream_handle
*
stream
;
};
struct
release_stream_params
{
stream_handle
stream
;
HANDLE
timer_thread
;
HRESULT
result
;
};
struct
start_params
{
stream_handle
stream
;
HRESULT
result
;
};
struct
stop_params
{
stream_handle
stream
;
HRESULT
result
;
};
struct
reset_params
{
stream_handle
stream
;
HRESULT
result
;
};
struct
timer_loop_params
{
stream_handle
stream
;
};
struct
get_render_buffer_params
{
stream_handle
stream
;
UINT32
frames
;
HRESULT
result
;
BYTE
**
data
;
};
struct
release_render_buffer_params
{
stream_handle
stream
;
UINT32
written_frames
;
UINT
flags
;
HRESULT
result
;
};
struct
get_capture_buffer_params
{
stream_handle
stream
;
HRESULT
result
;
BYTE
**
data
;
UINT32
*
frames
;
UINT
*
flags
;
UINT64
*
devpos
;
UINT64
*
qpcpos
;
};
struct
release_capture_buffer_params
{
stream_handle
stream
;
BOOL
done
;
HRESULT
result
;
};
struct
get_mix_format_params
{
const
char
*
device
;
EDataFlow
flow
;
WAVEFORMATEXTENSIBLE
*
fmt
;
HRESULT
result
;
};
struct
get_device_period_params
{
const
char
*
device
;
EDataFlow
flow
;
HRESULT
result
;
REFERENCE_TIME
*
def_period
;
REFERENCE_TIME
*
min_period
;
};
struct
get_buffer_size_params
{
stream_handle
stream
;
HRESULT
result
;
UINT32
*
size
;
};
struct
get_latency_params
{
stream_handle
stream
;
HRESULT
result
;
REFERENCE_TIME
*
latency
;
};
struct
get_current_padding_params
{
stream_handle
stream
;
HRESULT
result
;
UINT32
*
padding
;
};
struct
get_next_packet_size_params
{
stream_handle
stream
;
HRESULT
result
;
UINT32
*
frames
;
};
struct
get_frequency_params
{
stream_handle
stream
;
HRESULT
result
;
UINT64
*
freq
;
};
struct
get_position_params
{
stream_handle
stream
;
BOOL
device
;
HRESULT
result
;
UINT64
*
pos
;
UINT64
*
qpctime
;
};
struct
set_volumes_params
{
stream_handle
stream
;
float
master_volume
;
const
float
*
volumes
;
const
float
*
session_volumes
;
};
struct
set_event_handle_params
{
stream_handle
stream
;
HANDLE
event
;
HRESULT
result
;
};
struct
test_connect_params
{
const
char
*
name
;
HRESULT
result
;
};
struct
is_started_params
{
stream_handle
stream
;
HRESULT
result
;
};
struct
get_prop_value_params
{
const
char
*
device
;
EDataFlow
flow
;
const
GUID
*
guid
;
const
PROPERTYKEY
*
prop
;
HRESULT
result
;
PROPVARIANT
*
value
;
void
*
buffer
;
/* caller allocated buffer to hold value's strings */
unsigned
int
*
buffer_size
;
};
enum
unix_funcs
{
process_attach
,
process_detach
,
main_loop
,
get_endpoint_ids
,
create_stream
,
release_stream
,
start
,
stop
,
reset
,
timer_loop
,
get_render_buffer
,
release_render_buffer
,
get_capture_buffer
,
release_capture_buffer
,
get_mix_format
,
get_device_period
,
get_buffer_size
,
get_latency
,
get_current_padding
,
get_next_packet_size
,
get_frequency
,
get_position
,
set_volumes
,
set_event_handle
,
test_connect
,
is_started
,
get_prop_value
,
};
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