sdk

Playing a sound from a generated buffer in a Windows phone app

陌路散爱 提交于 2019-12-11 13:54:17
问题 I new in windows phone sdk. I can't find example of playing a sound from a generated buffer in a Windows phone app. Help pls. i found this example: byte] buffer = new byte[44100 * 2 * 5]; float t = 0; for (int i = 0; i < 44100 * 2 * 5; i += 2) { short val = (short)(Math.Sin(t * 2 * Math.PI * 440) * short.MaxValue); buffer[i] = (byte)(val & 0xFF); buffer[i + 1] = (byte)(val >> 8); t += 1 / 44100.0f; } sf = new SoundEffect(buffer, 44100, AudioChannels.Mono); // Play. sf.Play(); but it's crash

Appcelerator on Windows: No valid Android SDK Targets Found

谁都会走 提交于 2019-12-11 13:28:52
问题 I'm trying to run an app on my Samsung Galaxy S6 installed with Marshmallow 6.0 in Appcelerator. I have downloaded Android Studio and used the SDK Manager to download the SDK for the OS. However, when trying to run my code, the console outputs these errors: [ERROR] : No valid Android SDK targets found. [ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager. I tried uninstalling the API level 23 for Marshmallow 6.0 and reinstalling it directly

image comparison in java [closed]

别等时光非礼了梦想. 提交于 2019-12-11 13:27:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm working on my college project, in which I am required to do fingerprint comparison. This can be done by comparing two image and matching their pixel similarity (as per my finding). Is there any API/library/SDK or anything available in Java, for comparing two images and getting the percentage match between them

CUDA 5.0: checkCudaErrors fails to find correct “check” method if class has a “check” method

无人久伴 提交于 2019-12-11 13:04:00
问题 As the cutil.h header is removed from CUDA Samples, some new headers are introduced like helper_cuda.h, helper_functions.h. One of the main keywords that is used by me was CUDA_CHECK_ERROR, and I think it is replaced with checkCudaErrors. In most of my code the macro compiles and works well. However when I use it in a class which has a function named check(..), checkCudaErrors function gives compile errors. Here is an example: #include <stdio.h> #include <cuda_runtime.h> #include <helper_cuda

How close can we programmatically get to the hardware of an Android device?

家住魔仙堡 提交于 2019-12-11 12:55:30
问题 the camera of my mobile (running Eclair-update1) keeps being non-responsive in 90% of the time, so I assumed a hardware defect at first. After whiping the cache and the phone user data sereval times it worked again. At least for a while. Now it stopped working again. Browsing the net I found quite some users who experience the same problem and had a hard time after whiping their user data off the device. So my question would be: how close can I get to the hardware with the SDK? I'd like to

NSTimer nonstop memory increasing - iOS bug?

天大地大妈咪最大 提交于 2019-12-11 12:49:59
问题 I'm figuring out memory issues with an iPad app using instruments - looking at the overall allocated bytes. My NSTimer causes the bytes to constantly increase, while commenting it out causes memory usage to remain static. From viewDidLoad of my view controller: tickTime = 1.0 / 30.0; tickTimer = [NSTimer scheduledTimerWithTimeInterval:tickTime target: self selector:@selector(update2) userInfo: nil repeats: YES]; And the method update2: - (void) update2 { } As you can see there is nothing done

How to Rollback from iPad beta SDK to iPhone SDK 3.1

坚强是说给别人听的谎言 提交于 2019-12-11 12:49:57
问题 If I update to the iPhone SDK 3.2 beta, will I then be able to rollback to iPhone SDK 3.1.2 (xcode 3.2.1) ? 回答1: You can install new SDKs in non-/Developer paths. This is what you should do with any new, NDA-PROTECTED SDKs. Perhaps /Developer-Beta. 来源: https://stackoverflow.com/questions/2151159/how-to-rollback-from-ipad-beta-sdk-to-iphone-sdk-3-1

Admob publish id error

China☆狼群 提交于 2019-12-11 12:47:13
问题 I have created a paid application and I'm trying to create the free with admob ads. I setup the entire proyect as explained on Google's tutorial with SDK 6.1, but when running it doesn't work. The code I have used is the same as the tutorial: Main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:layout_width="fill_parent"

VDI resizing api does not work

戏子无情 提交于 2019-12-11 12:32:38
问题 This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated 6 years ago . I am developing a Xen management webapp with Php. The VDI (virtual disk image) renaming API and resizing APIs usage are very same. I haven't managed to succeed resizing the VDI. Do you think what I am doing wrong here. Renaming function: function xenapi_set_vdi_name($session, $ref, $name) { $conn = $session[0]; $sess = new xmlrpcval($session[1]); $vdi = new xmlrpcval($ref); $name

AWS PHP SDK Promise doesnt work

雨燕双飞 提交于 2019-12-11 12:23:08
问题 According to the promise feature: AWS PHP SDK V3 one should create a promise and the run the "then" function. My code: $promise = $client->copyObjectAsync($params); $promise->then(function ($value) { echo "The promise was fulfilled with {$value}"; }, function ($reason) { echo "The promise was rejected with {$reason}"; }); but the promise doesnt run...(it stays in pending state) Only when i run the "wait" method (which is blocking) then the promise is executed. Do you have to use "wait" and if