ffi_version added

This commit is contained in:
2026-05-04 13:11:50 +02:00
parent 9a0ef7d76e
commit 4134cf0549
8 changed files with 25 additions and 5 deletions
+2
View File
@@ -5,6 +5,8 @@ project(ao-play-async LANGUAGES C)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_library(ao-play-async SHARED
ao_playasync.c
ao_playasync.h
+2 -4
View File
@@ -1,4 +1,5 @@
#include "ao_playasync.h"
#include "../ffi_version.h"
#ifdef WIN32
#include <windows.h>
@@ -326,7 +327,7 @@ static DWORD run(LPVOID arg)
int ao_async_version()
{
return VERSION;
return ffi_version();
}
#ifdef _WIN32
@@ -702,9 +703,6 @@ void ao_pause_async(void *ao_handle, int paused)
MUTEX_UNLOCK(h->mutex);
}
int ao_real_output_bits_async(void *handle)
{
AO_Handle *h = (AO_Handle *) handle;
+3 -1
View File
@@ -11,7 +11,9 @@
#define AOPLAYASYNC_EXPORT extern
#endif
#define VERSION 3
#define VERSION_MAJOR 1
#define VERSION_MINOR 0
#define VERSION_PATCH 0
typedef enum {
ao = 1,