Skip to content

Commit

Permalink
1) Cleanup of sdk cmake files for flutter.
Browse files Browse the repository at this point in the history
2) Cleanup of file naming
3) Removal of all binrender project specific stuff
  • Loading branch information
hkbinaurics committed May 16, 2024
1 parent 2738550 commit 91a8ac3
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 90 deletions.
1 change: 0 additions & 1 deletion cmake-sdk/cmake-ayf-minimal-header-includes.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
list(APPEND AYF_MINIMAL_SDK_HEADER_INCLUDE_LIST
"${AYF_SDK_PATH}/include/include"
"${AYF_SDK_PATH}/include/jvx-system-min/include"
"${AYF_SDK_PATH}/include/ayfbinrender-native-config/include"
"${AYF_SDK_PATH}/include/jvx-system-min/include/platform/windows"
"${AYF_SDK_PATH}/include/jvx-system-base/include"
"${AYF_SDK_PATH}/include/jvx-system-base/include/platform/windows"
Expand Down
4 changes: 2 additions & 2 deletions flutter/ayf_webhost/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import '/models/ayf_ui_specific_widgets.dart';
import 'models/ayf_be_specific.dart';
import 'package:ayf_pack/ayf_pack.dart';

import 'package:ayf_webhost/ayf_web_backend_host.dart'
if (dart.library.html) 'package:ayf_webhost/ayf_web_backend_host.dart';
import 'package:ayf_webhost/ayf_webhost.dart'
if (dart.library.html) 'package:ayf_webhost/ayf_webhost.dart';

// import 'package:flutter_native_splash/flutter_native_splash.dart';

Expand Down
57 changes: 0 additions & 57 deletions flutter/ayf_webhost/example/lib/models/ayf_ui_specific.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,11 @@ import 'package:ayf_pack_native/ayf_pack_native.dart'

// import '../ayfpacks/ayf_pack.dart';

import 'package:ayfbinrender/ayf_binrender_widget.dart';
import 'package:ayf_pack/main-widgets/ayf_audio_settings_widget.dart';

class AudYoFloUiModelSpecific extends AudYoFloUiModel
with AudYoFloUiElementsTabBar {
// ==========================================================================
// We define the ui modeling parameters for the binaural rendering widget here.
// Note that this instance also defines a local property shown in the settings
// ==========================================================================
AudYoFloBinauralRendererSection binauralRenderer =
AudYoFloBinauralRendererSection(true,
'packages/ayf_pack/images/ayf_icons/ayf-brender.png', 'Bin. Renderer',
imageNameIcon: 'packages/ayf_pack/images/ayf_icons/ayf-micsrc.png',
height: 70,
width: 70);

// ==========================================================================
// We define some rendering parameters for the audio io widget.
// We use package specific icons here.
// ==========================================================================
Expand All @@ -47,7 +35,6 @@ class AudYoFloUiModelSpecific extends AudYoFloUiModel
imageNameApp = 'images/ayfbinrender_icons/ayfbinrender-logo.png';

// Define some specific configuration entities
widgetSpecificConfigurations['binauralRenderer'] = binauralRenderer;
widgetSpecificConfigurations['soundIo'] = soundIo;
widgetSpecificConfigurations['headtracker'] = headtracker;
widgetSpecificConfigurations['fileinput'] = fileinput;
Expand All @@ -68,31 +55,6 @@ class AudYoFloUiModelSpecific extends AudYoFloUiModel
oneSection = AudYoFloSettingsConfigurationSection();
oneSection.nameEntry = 'Application';

// =======================================================================
// Initialize the local property at this position
// =======================================================================
binauralRenderer.propIconSize.selection
.initialize(flags.compileNum32BitBitfield);
binauralRenderer.propIconSize.selection.bitZSet(0);
AudYoFloOneComponentSettingsLocal addThisLoUi =
AudYoFloOneComponentSettingsLocal('Ui Properties', [
binauralRenderer.propIconSize,
binauralRenderer.propSpread,
fastRefreshPerMsecs,
slowRefreshPerMsecs
], propTags: [
'Binaural Render Icon Size',
'Spread Azimuth Angle',
'Fast callback period',
'Slow callback period',
], propTooltips: [
'Specify the size of the binaural render icon.',
'Setup the maximum spread angle in case of icon spread button',
' Specify the period for the fast timer',
' Specify the period for the slow timer',
]);
oneSection.addEntry(addThisLoUi);

AudYoFloOneComponentSettingsBackend addThisBeHost =
AudYoFloOneComponentSettingsBackend(
JvxComponentIdentification(
Expand Down Expand Up @@ -188,25 +150,6 @@ class AudYoFloUiModelSpecific extends AudYoFloUiModel
return jvxErrorType.JVX_NO_ERROR;
}

if (prop.descriptor == binauralRenderer.propIconSize.descriptor) {
if (binauralRenderer.propIconSize.selection.bitTest(0)) {
binauralRenderer.height = 40;
binauralRenderer.width = 40;
} else if (binauralRenderer.propIconSize.selection.bitTest(1)) {
binauralRenderer.height = 70;
binauralRenderer.width = 70;
} else if (binauralRenderer.propIconSize.selection.bitTest(2)) {
binauralRenderer.height = 100;
binauralRenderer.width = 100;
}
notifyThis = true;
}

if (prop.descriptor == binauralRenderer.propSpread.descriptor) {
binauralRenderer.spreadAngle = binauralRenderer.propSpread.value;
notifyThis = true;
}

if (notifyThis) {
notifyListeners();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:ayf_pack/ayf_pack.dart';
import 'ayf_ui_specific.dart';

import 'package:ayfbinrender/ayf_binrender_widget.dart';
import 'package:ayf_pack/main-widgets/ayf_audio_settings_widget.dart';

import 'package:flutter/foundation.dart' show kIsWeb;
Expand Down Expand Up @@ -70,31 +69,6 @@ class AudYoFloUiModelSpecificWithWidget extends AudYoFloUiModelSpecific {
// Add the Binaural rendering widget
// ======================================================================

JvxComponentIdentification cpBin = widgetConfigCpId(
entriesCfgWidgets,
JvxComponentIdentification(
cpTp: JvxComponentTypeEnum.JVX_COMPONENT_AUDIO_NODE,
slotid: 0,
slotsubid: 0),
'binrender');
theAllocatedTabs.add(RotatedBox(
quarterTurns: -1,
child: Tooltip(
message: cpBin.txt,
child: Column(children: [
Image.asset(binauralRenderer.imageName,
filterQuality: FilterQuality.medium,
width: navButtonSizeMain,
height: navButtonSizeMain),
GestureDetector(
onSecondaryLongPress: () {
// print('Hello'); to be filled later
},
child: Text(binauralRenderer.textShow),
) // <- maybe, make this switchable by right click?
]),
)));
theAllocatedTabViews.add(AudYoFloBinRenderWidget(cpBin));
// ======================================================================
// Add the primary audio device widget
// ======================================================================
Expand Down
3 changes: 0 additions & 3 deletions flutter/ayf_webhost/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ dependencies:
ayf_pack:
path: ../../ayf_pack

ayfbinrender:
path: ../../ayfbinrender/ayfbinrender

ayf_webhost:
path: '..'
# path: '../../ayf_ffihost'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion flutter/ayf_webhost/test/ayf_ffihost_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';

import 'package:ayf_webhost/ayf_web_backend_host.dart';
import 'package:ayf_webhost/ayf_webhost.dart';

void main() {
test('adds one to input values', () {
Expand Down

0 comments on commit 91a8ac3

Please sign in to comment.