小编rpa*_*abi的帖子

使用Fluidsynth在Android上播放SoundFonts的笔记

有没有办法允许Android通过使用FluidSynth使用SoundFont文件播放声音?我一直在寻找jOrgan,但源代码似乎有点......至少可以说是压倒性的.

问题是android中不支持java声音API,因此我所参与的项目的一个很好的样本将是Java Sound Demo的 Midi Synth.

我认为我应该没有从C到JNI的一些移植,但是在处理音频功能方面我不知情(我今天只阅读并开始研究).

任何帮助?

此外,我已经阅读了以下线程并尝试了可用的java/android项目,并为此提供了可能的解决方案:

midi java-native-interface android audio-streaming soundfont

5
推荐指数
1
解决办法
5847
查看次数

用于JRuby的SWT的DSL/Rubyish包装器?

我从MRI来到JRuby主要是为了SWT和Java库,用于桌面开发.

通过一些小实验,我发现它可用于我的目的.但它看起来像使用等效的ruby语法编写的java代码.

你好世界JRuby + SWT

我在SWT上四处寻找任何红宝石包装或DSL.我发现了一丝微光.但我不确定状态,看起来没有维护.

使用JRuby对SWT有哪些其他选择?你对他们的体验是什么?

dsl swt jruby gui-toolkit

5
推荐指数
0
解决办法
617
查看次数

Ruby代码中的C/C++?

C/C++是编写Ruby应用程序的一些性能关键方面的好选择.我知道这是可能的.

我想知道如何将C/C++代码添加到Ruby代码中; 任何其他语言.

您是否在开源项目中注意到了这方面的实际应用?

c c++ ruby embed interop

4
推荐指数
2
解决办法
5078
查看次数

Windows Apps的性能分析.Visual Studio Profiler的更好替代品?

我对Visual Studio Profiler的性能分析印象深刻.快速为我的目的和易于使用.

我很想知道visual studio profiler中的警告.是否有更好的Windows应用程序分析器,这些注意事项更好?

windows comparison performance profiling

2
推荐指数
1
解决办法
709
查看次数

忽略 kotlin 的这些 proguard 注释是否安全?

我不明白为什么我会从 proguard 那里得到这些笔记,以及我是否必须做任何事情来解决它们。

Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.jdk8.JDK8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE7PlatformImplementations 

Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class 
kotlin.reflect.jvm.internal.ReflectionFactoryImpl
Run Code Online (Sandbox Code Playgroud)

其中三个是为了kotlin.internal.PlatformImplementationKt,一个是为了kotlin.jvm.internal.Reflection

我的设置

kotlin: 1.2.71
Android Studio / gradle plugin: 3.2.0
gradle: 4.10.2
Run Code Online (Sandbox Code Playgroud)

android proguard kotlin

2
推荐指数
1
解决办法
1113
查看次数

如何访问MediaBrowserServiceCompat服务的实例?

令人惊讶的是,我很难抓住源自的服务实例MediaBrowserServiceCompat.

对于典型的服务,为了实现这一点,使用本地绑定器

class MyService extends MediaBrowserServiceCompat {
  class MyBinder extends Binder {
    public MyService getService() {
      return MyService.this;
    }

  private final MyBinder binder = new MyBinder();

  @Override
  public IBinder onBind(Intent intent) {
    return binder;
  }

  public void doMagic() { // <-- How to call this from activity?
    // ...
  }
}

// At the activity, for example, this binder is retrieved through 
// `onServiceConnected()`, typecast to `MyBinder` and thus 
// `getService()` gets us the service instance.
Run Code Online (Sandbox Code Playgroud)

但是,这不适用于派生的服务MediaBrowserServiceCompat …

android android-service android-mediaplayer android-support-library android-service-binding

1
推荐指数
1
解决办法
1157
查看次数