capture

How to capture Audio data in Java

时间秒杀一切 提交于 2019-12-10 19:50:09
问题 I want to access the audio data that my microphone is recording with Java. How would I do that? My goal is to save the audio data that is recorded and simultaneously play it to the user. 回答1: If you don't need any of the additional functionality in JMF, I would avoid it since development has ceased (last version is from 2004), it has compatibility issues with Java 6, has a very restricted functionality in 64-bit VMs and has to installed as a separate extension library. Audio recording,

Android: How to configure “tinymix” to record system audio with “tinycap”

醉酒当歌 提交于 2019-12-10 16:51:50
问题 in Android it's currently impossible to record system-audio with the Android-SDK. Therefore I played around a bit with TinyALSA (since Android 4) and hope I can reroute the audio-out so I can record it. When I call "tinymix" on my device I get following configuration: ctl type num name value 0 ENUM 1 DL1 Equalizer Flat response 1 ENUM 1 DL2 Left Equalizer 450Hz High-pass 2 ENUM 1 DL2 Right Equalizer 450Hz High-pass 3 ENUM 1 Sidetone Equalizer Flat response 4 ENUM 1 AMIC Equalizer High-pass

How do I get the output from Database.ExecuteNonQuery?

我们两清 提交于 2019-12-10 15:58:13
问题 I would like to use the Database.ExecuteNonQuery or something similar to execute a sql script and then capture the output. eg: xxx Table created My script: strArray = Regex.Split(streamReader.ReadToEnd(), "\r\nGO"); if (connection.State == ConnectionState.Open) { System.Data.SqlClient.SqlCommand cmd; foreach (string sql in strArray) { cmd = new System.Data.SqlClient.SqlCommand(sql); cmd.Connection = connection; Console.WriteLine(sql); Console.WriteLine(cmd.ExecuteNonQuery().ToString()); } }

C++ Direct3D Multiple Screen Capture

隐身守侯 提交于 2019-12-10 14:48:20
问题 Hello Direct3D experts, I am currently developing an application with Direct3D in order to capture my two monitors desktop (used as extended desktop of course). The following code works well but I am just able to capture the primary display and not the extended desktop (just one screen is captured twice) How can I adapt this solution for a dual screen capture ? First of all, I initialize Direct3D: D3DDISPLAYMODE d3dDisplayMode; D3DPRESENT_PARAMETERS d3dPresentationParameters; //Presentation

UIGetScreenImage will be reject now?

和自甴很熟 提交于 2019-12-10 14:12:38
问题 I know UIGetScreenImage is a private api, and in a period time can use in the appstore. and later someone said can't use anymore. So I ask here to make sure, Can use in my app and pass to Appstore? Best Regards 回答1: Around a year ago, Apple started to run static analysis on submitted binaries during the App Store review process. Before that, access to private APIs will pass the review if the functionality itself wasn't too obvious to be caught by the reviewer. Currently, reviewer uses

Capture debug output in C#

偶尔善良 提交于 2019-12-10 13:48:08
问题 Is it possible to capture debug output (create debug listener) in C#? I'd like to have functionality like DebugView has, but I'd like to log debug output to SQL Server. Or maybe a better way would be to make DebugView log to a file, and then feed the file to SQL Server? I've implemented TraceListener and added it to Debug.Listeners collection, but it seems to capture debug only from my application. What I want to do is to capture debug from all applications. Is there a way to do that? 回答1:

How can i get a tweet for a specific url? [closed]

北战南征 提交于 2019-12-10 12:17:34
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I want some resource which can lead me to capture tweets for only a specific links. Suppose i will capture all tweets which contain a link http://aaa.com how can i do it ? thanks 回答1: Read about Twitter API here,

Are there any modern Windows PCs that don't have at least one DirectShow capture device in them? [closed]

与世无争的帅哥 提交于 2019-12-10 11:18:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I am considering doing something that might seem strange to get a reliable time clock . I have to push buffers to a WiFi connected

Capture entire content of EditText into a picture

不想你离开。 提交于 2019-12-10 11:17:52
问题 I have to print the entire text of a text field into a picture. The reason is: I have to exchange messages with unsupported UTF-8 characters between Android and other web clients. By unsupported UTF-8 characters I mean missing fonts in Android (see this topic here ). I tried to use the direct way Bitmap b; EditText editText = (EditText) findViewById(R.id.editText); editText.buildDrawingCache(); b = editText.getDrawingCache(); editText.destroyDrawingCache(); which works like a charm until I

Access C++14 lambda captures like struct members

痴心易碎 提交于 2019-12-10 02:58:41
问题 AFAIK, C++11/14 does not allow in-place definition of a new return type while defining a lambda. However, it seems a C++14 lambda capture expression essentially creates an anonymous type with one or more "members" and an operator (). So, why is that the compiler does not allow access to the captured members from outside the lambda. My feeble mind cannot handle the complexities of C++ but does it sound like a reasonable language extension to you? Here is an example. vector<string> words = {