ffi_version added
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user