mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 21:57:10 +02:00
Merge pull request #12626 from gcalero/android_hifi_audio_codec
Android hifi audio codec
This commit is contained in:
commit
db2b79f4fb
4 changed files with 24 additions and 3 deletions
|
@ -137,6 +137,13 @@ def packages = [
|
|||
checksum: '20768f298f53b195e71b414b0ae240c4',
|
||||
sharedLibFolder: 'lib/release',
|
||||
includeLibs: ['libtbb.so', 'libtbbmalloc.so'],
|
||||
],
|
||||
hifiAC: [
|
||||
file: 'libplugins_libhifiCodec.zip',
|
||||
versionId: 'mzKhsRCgVmloqq5bvE.0IwYK1NjGQc_G',
|
||||
checksum: '9412a8e12c88a4096c1fc843bb9fe52d',
|
||||
sharedLibFolder: '',
|
||||
includeLibs: ['libplugins_libhifiCodec.so']
|
||||
]
|
||||
]
|
||||
|
||||
|
@ -353,6 +360,7 @@ task verifyGvr(type: Verify) { def p = packages['gvr']; src new File(baseFolder,
|
|||
task verifyOpenSSL(type: Verify) { def p = packages['openssl']; src new File(baseFolder, p['file']); checksum p['checksum'] }
|
||||
task verifyPolyvox(type: Verify) { def p = packages['polyvox']; src new File(baseFolder, p['file']); checksum p['checksum'] }
|
||||
task verifyTBB(type: Verify) { def p = packages['tbb']; src new File(baseFolder, p['file']); checksum p['checksum'] }
|
||||
task verifyHifiAC(type: Verify) { def p = packages['hifiAC']; src new File(baseFolder, p['file']); checksum p['checksum'] }
|
||||
|
||||
task verifyDependencyDownloads(dependsOn: downloadDependencies) { }
|
||||
verifyDependencyDownloads.dependsOn verifyQt
|
||||
|
@ -362,6 +370,7 @@ verifyDependencyDownloads.dependsOn verifyGvr
|
|||
verifyDependencyDownloads.dependsOn verifyOpenSSL
|
||||
verifyDependencyDownloads.dependsOn verifyPolyvox
|
||||
verifyDependencyDownloads.dependsOn verifyTBB
|
||||
verifyDependencyDownloads.dependsOn verifyHifiAC
|
||||
|
||||
task extractDependencies(dependsOn: verifyDependencyDownloads) {
|
||||
doLast {
|
||||
|
|
|
@ -16,10 +16,11 @@ import "../js/Utils.js" as Utils
|
|||
|
||||
Item {
|
||||
id: frame
|
||||
objectName: "Frame"
|
||||
HifiConstants { id: hifi }
|
||||
|
||||
default property var decoration
|
||||
|
||||
property string qmlFile: "N/A"
|
||||
property bool gradientsSupported: desktop.gradientsSupported
|
||||
|
||||
readonly property int frameMarginLeft: frame.decoration ? frame.decoration.frameMarginLeft : 0
|
||||
|
@ -44,7 +45,7 @@ Item {
|
|||
id: debugZ
|
||||
visible: DebugQML
|
||||
color: "red"
|
||||
text: (window ? "Z: " + window.z : "")
|
||||
text: (window ? "Z: " + window.z : "") + " " + qmlFile
|
||||
y: window ? window.height + 4 : 0
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,9 @@ const LoaderList& getLoadedPlugins() {
|
|||
static std::once_flag once;
|
||||
static LoaderList loadedPlugins;
|
||||
std::call_once(once, [&] {
|
||||
#ifdef Q_OS_MAC
|
||||
#if defined(Q_OS_ANDROID)
|
||||
QString pluginPath = QCoreApplication::applicationDirPath() + "/";
|
||||
#elif defined(Q_OS_MAC)
|
||||
QString pluginPath = QCoreApplication::applicationDirPath() + "/../PlugIns/";
|
||||
#else
|
||||
QString pluginPath = QCoreApplication::applicationDirPath() + "/plugins/";
|
||||
|
@ -106,6 +108,10 @@ const LoaderList& getLoadedPlugins() {
|
|||
pluginDir.setFilter(QDir::Files);
|
||||
if (pluginDir.exists()) {
|
||||
qInfo() << "Loading runtime plugins from " << pluginPath;
|
||||
#if defined(Q_OS_ANDROID)
|
||||
// Can be a better filter and those libs may have a better name to destinguish them from qt plugins
|
||||
pluginDir.setNameFilters(QStringList() << "libplugins_lib*.so");
|
||||
#endif
|
||||
auto candidates = pluginDir.entryList();
|
||||
for (auto plugin : candidates) {
|
||||
qCDebug(plugins) << "Attempting plugin" << qPrintable(plugin);
|
||||
|
|
|
@ -342,6 +342,11 @@ void OffscreenSurface::finishQmlLoad(QQmlComponent* qmlComponent,
|
|||
// Make sure we make items focusable (critical for
|
||||
// supporting keyboard shortcuts)
|
||||
newItem->setFlag(QQuickItem::ItemIsFocusScope, true);
|
||||
#ifdef DEBUG
|
||||
for (auto frame : newObject->findChildren<QQuickItem *>("Frame")) {
|
||||
frame->setProperty("qmlFile", qmlComponent->url());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool rootCreated = getRootItem() != nullptr;
|
||||
|
|
Loading…
Reference in a new issue