mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
Move AVFoundation to parent directory (#677)
This commit is contained in:
committed by
GitHub
parent
03900dcb1b
commit
09fe4a9a6e
-6
@@ -30,12 +30,6 @@
|
||||
#import "AVFoundationBind.h"
|
||||
#include <string.h>
|
||||
|
||||
// AVFoundationBind.m is the entry point for cgo compilation (included by avfoundation_darwin.go).
|
||||
// Including DeviceObserver.m here compiles both into a single compilation unit,
|
||||
// making all symbols available to the linker.
|
||||
#include "DeviceObserver.m"
|
||||
|
||||
|
||||
#define CHK(condition, status) \
|
||||
do { \
|
||||
if(!(condition)) { \
|
||||
@@ -3,8 +3,7 @@ package avfoundation
|
||||
|
||||
// #cgo CFLAGS: -x objective-c
|
||||
// #cgo LDFLAGS: -framework AVFoundation -framework Foundation -framework CoreMedia -framework CoreVideo
|
||||
// #include "AVFoundationBind/AVFoundationBind.h"
|
||||
// #include "AVFoundationBind/AVFoundationBind.m"
|
||||
// #include "AVFoundationBind.h"
|
||||
// extern void onData(void*, void*, int);
|
||||
// void onDataBridge(void *userData, void *buf, int len) {
|
||||
// onData(userData, buf, len);
|
||||
|
||||
@@ -5,7 +5,7 @@ package avfoundation
|
||||
#cgo LDFLAGS: -framework AVFoundation -framework Foundation -framework CoreMedia -framework CoreVideo
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "AVFoundationBind/DeviceObserver.h"
|
||||
#include "DeviceObserver.h"
|
||||
|
||||
extern void deviceEventBridge(void *userData, DeviceEventType eventType, DeviceInfo *device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user