wineandroid: Add an audio driver.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2017-07-03 20:59:40 +02:00 committed by Alexandre Julliard
parent 9027b927a4
commit 287be7c5ee
7 changed files with 2949 additions and 4 deletions

2
configure vendored
View File

@ -14464,7 +14464,7 @@ test -z "$NETAPI_LIBS" || NETAPI_LIBS=`echo " $NETAPI_LIBS" | sed 's/ -L\([^/]\)
fi
if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv" = xnononono -a \
if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv$enable_wineandroid_drv" = xnonononono -a \
"x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
then
as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."

View File

@ -1765,7 +1765,7 @@ then
fi
dnl **** Check for any sound system ****
if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv" = xnononono -a \
if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv$enable_wineandroid_drv" = xnonononono -a \
"x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
then
WINE_WARNING([No sound system was found. Windows applications will be silent.])

View File

@ -114,7 +114,7 @@ static BOOL WINAPI init_driver(INIT_ONCE *once, void *param, void **context)
static const WCHAR drv_value[] = {'A','u','d','i','o',0};
static WCHAR default_list[] = {'p','u','l','s','e',',','a','l','s','a',',','o','s','s',',',
'c','o','r','e','a','u','d','i','o',0};
'c','o','r','e','a','u','d','i','o',',','a','n','d','r','o','i','d',0};
DriverFuncs driver;
HKEY key;

View File

@ -3,6 +3,7 @@
package="org.winehq.wine">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<application
android:icon="@drawable/wine"
android:label="Wine" >

View File

@ -1,10 +1,11 @@
MODULE = wineandroid.drv
IMPORTS = user32 gdi32 advapi32 ntoskrnl
IMPORTS = uuid ole32 user32 gdi32 advapi32 ntoskrnl
C_SRCS = \
device.c \
init.c \
keyboard.c \
mmdevdrv.c \
opengl.c \
window.c

File diff suppressed because it is too large Load Diff

View File

@ -29,3 +29,9 @@
# Desktop
@ cdecl wine_create_desktop(long long) ANDROID_create_desktop
# MMDevAPI driver functions
@ stdcall -private GetPriority() AUDDRV_GetPriority
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
@ stdcall -private GetAudioEndpoint(ptr ptr ptr) AUDDRV_GetAudioEndpoint
@ stdcall -private GetAudioSessionManager(ptr ptr) AUDDRV_GetAudioSessionManager