-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEssentia.mm
More file actions
37 lines (27 loc) · 812 Bytes
/
Essentia.mm
File metadata and controls
37 lines (27 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Essentia.m
// essentia-analysis
//
// Created by Lukas Tenbrink on 04.04.21.
// Copyright © 2021 ivorius. All rights reserved.
//
#import "Essentia.h"
// TODO No idea what do import lol, but this works
#import "algorithmfactory.h"
#import "AVFoundationLoader.hpp"
#import "AVFoundationMonoLoader.hpp"
using namespace essentia;
typedef essentia::streaming::AlgorithmFactory::Registrar<essentia::streaming::AVAudioLoader> AVAudioLoaderRegistrar;
typedef essentia::streaming::AlgorithmFactory::Registrar<essentia::streaming::AVMonoLoader> AVMonoLoaderRegistrar;
@implementation Essentia
+ (void) initAlgorithms {
if (isInitialized())
return;
essentia::init();
AVAudioLoaderRegistrar test;
AVMonoLoaderRegistrar test3;
}
+ (bool) isInitialized {
return essentia::isInitialized();
}
@end