visualizer

android.media.audiofx.Visualizer throwing exception every other time

ぃ、小莉子 提交于 2019-12-07 02:21:32
问题 I'm making a Live Wallpaper for Android 2.3.3 and it used the Visualizer class. I've already got a working version of my Visualizer program working as a stand alone but when I place the code into a Live Wallpaper service, my problem begins. The following code is where the error exists: // Called in my Engine extension's constructor public void setupVisualizer() { mBytes = null; mVisualizer = new Visualizer(0); // EDIT mVisualizer.setEnabled(false); // This fixes the issue // END EDIT

Android Error code -3 when initializing Visualizer

纵饮孤独 提交于 2019-12-06 02:19:33
Got this error while initializing Visualizer visualizer = new Visualizer(mediaPlayer.getAudioSessionId()); <---- Error: Cannot initialize Visualizer engine, error: -3 java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3 NB : This is only happening in Marshmallow Got the cause of the problem !!! This is caused for dynamic permission problem for Marshmallow. It requires RECORD_AUDIO permission to initialize it. I need to give permission Manifest.permission.RECORD_AUDIO before initialize the visualizer. 来源: https://stackoverflow.com/questions/35498734/android-error-code-3

Creating a simple VS2008 visualizer inside autoexp.dat (problem with casting)

こ雲淡風輕ζ 提交于 2019-12-05 11:59:51
I have a large project of mixed C/C++. I've created a simple visualizer for the ICU UnicodeString class as follows... [inside autoexp.dat] icu_4_2::UnicodeString { preview ([$c.fUnion.fFields.fArray,su]) } ...and that works fine. Inside the debugger wherever I see the object I now see the text inside in the preview line. I then created a wrapper class containing one of these objects as follows... class StringHandleData { public: icu_4_2::UnicodeString str; }; ...and then created another visualizer for this... [inside autoexp.dat] StringHandleData { preview ([$c.str.fUnion.fFields.fArray,su]) }

How to add two edges having the same label (but different endpoints) in JUNG?

旧时模样 提交于 2019-12-04 13:11:34
How to add two edges having the same label but different endpoints? For example, I want to add two edges having the same label 'label1', one from vertex v-1 to vertex v-2 and the other one from vertex v-2 to v-3. Part of the code would be: g.addEdge("label1","v-1","v-2"); g.addEdge("label1","v-2","v-3"); But JUNG does not allow to add two edges with the same label. It gives an error: edge label1 already exists in this graph with endpoints [v-1, v-2] and cannot be added with endpoints [v-2, v-3] How can I add two edges having the same label? Thanks. Edit: I just read that there is a way to

Android Visualizer FFT / waveform affected by device volume?

爱⌒轻易说出口 提交于 2019-12-04 05:00:36
I'm working on some music analysis using the Visualizer class on Android 2.3.1. I am finding that the FFT and waveform magnitudes are affected by the volume of the device. This means that if the user has the volume turned down I receive little or not FFT data. I've tested this on a Motorola Xoom, Samsung Galaxy Tab and the emulator and it behaves this way. I am using the code below: mp = new MediaPlayer(); mp.setDataSource("/sdcard/sine1.wav"); mp.prepare(); mp.setLooping(true); mp.start(); int audioSessionID = mp.getAudioSessionId(); v = new Visualizer(audioSessionID); v.setEnabled(true);

How to work with onWaveFormDataCapture result of Visualizer object?

二次信任 提交于 2019-12-03 21:03:40
I'm new to android programming and audio visualization. I want to create a simple audio visualizer using MediaPlayer and Visualizer classes. My problem is, I don't know what wave form data really is. Must I use it to visualize audio? I'm using the code below. It's problem is, it will only visualize audio for the first 10-12 seconds of the file; after that, I'm unable to capture more data! Where did I go wrong? public void attachVisualizer() { Visualizer vis = new Visualizer(mPlayer.getAudioSessionId()); vis.setCaptureSize(Visualizer.getCaptureSizeRange()[0]); vis.setDataCaptureListener(new

Debugger Visualizer not working? Have i incorrectly registered it?

房东的猫 提交于 2019-12-01 22:51:39
I have created a debugger visualizer in VS2008. There are two classes i've made, in the same .dll :- BinaryDataDebuggerVisualizer ImageDebuggerVisualizer The image one works fine (eg. the magnify glass appears in debug mode) but not for the byte[] one (BinaryDataDV). What my visualizer does is display the binary data as an image in a modal window (if the data is a legit image). I compiled to code in Release mode, then dropped the .dll into C:\Users\\Documents\Visual Studio 2008\Visualizers this is the code that i used to 'define' the vis... using System; using System.Diagnostics; using System

JSON viewer for browsing APIs [closed]

落爺英雄遲暮 提交于 2019-11-30 03:52:22
Does anyone have any recommendations for applications or browser plugins that make browsing and visualizing JSON APIs easy. Please support your answer with a reference or link to the application you recommend. This one looks quite good, it's a firefox plugin called JSONView https://addons.mozilla.org/en-US/firefox/addon/10869 Also ported to a chrome extension https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc Johns tool is nice. Anoter nice online tool is http://jsonviewer.stack.hu/ I'm not completely sure what you're asking. If you're looking for a JSON viewer to

Visual Studio: Dataset and DataTable Visualizer not working in watch window

送分小仙女□ 提交于 2019-11-29 11:18:35
I have just installed visual studio 2005 service pack 1 on a Windows 7 64 bit machine. Everything appears to work fine and I am able to run my project without any errors. However, when I am in debug mode I have noticed a problem with the "Watch" window for DataTables and DataSets. I have a DataTable named dt and I enter it in the watch window. No magnifying glass appears to open the visualizer and I get the following error in the value column: 0x000000001d438c90 { KEY_XMLSCHEMA="XmlSchema" KEY_XMLDIFFGRAM="XmlDiffGram" KEY_NAME="TableName" ...} Has anyone else had this problem? I have tried

Why is the dictionary debug visualizer less useful in Visual Studio 2010 for Silverlight debugging?

心已入冬 提交于 2019-11-29 09:50:34
I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those shows the Count and Non-Public members, Non-Public members continues the trail and I never see the values in the dictionary. I can run test.Take(10) and see the values, but why should I have to do that. I don't have VS 2008 installed anymore to compare, but it seems that I could debug a dictionary much easier. Why is it this way now? Is it just a setting I set somehow on my machine? Test code: Dictionary<string, string> test