Silverlight4beta brings a new and long-awaited feature: support for the camera/microphone.
This article will demonstrate this new feature through an example of the operation of the camera, and our example mainly implements the following features
Display device Name
Start/Stop capturing video
Real-time Image capture
Because the microphone is used in the same way as the camera, and can not be intuitive
This example describes the Android implementation that directly plays the sound captured by the microphone. Share to everyone for your reference. Specifically as follows:
This is a direct playback microphone captured by the voice thread class:
Class Recordthread extends thread{static final int frequency = 44100;
static final int channelconfiguration = Audioformat.channel_configuration_mono;
static
Purpose:Using microphones as an event Input MethodCore:Use audiosession and audioqueue to capture microphone input data.
Enable audiosession:1. audiosessioninitialize2. audiosessionsetproperty (kaudiosessionproperty_audiocategory)3. audiosessionsetactive
Create sound format:1. audiostreambasicdescription2. Use kaudioformatlinearpcm as the sound format
Create audioqueue:1. audioqueuenewinput2. audioqueuestart3. audioqueuesetproperty (kaudioqueuepropert
Android has some interesting applications, such as blowing skirts and blowing balloons. The microphone input volume is obtained in real time and then processed accordingly. How can we obtain the sound size during the recording process? There is an instance below
Java code:
Package EOE. demo; import android. media. audioformat; import android. media. audiorecord; import android. media. mediarecorder; import android. util. log; public class recordthrea
Scenario: You need to control the volume when doing the playback device, the following methods will meet your requirementsMethod One: Change the system volume settings [DllImport ("User32.dll")] static extern void keybd_event (byte bvk, byte Bscan, UInt32 dwFlags, UInt32 dwext Rainfo); [DllImport ("User32.dll")] static extern Byte Mapvirtualkey (UInt32 uCode, UInt32 umaptype); Private Const byte Vk_volume_mute = 0xAD; Private Const byte Vk_volume_down = 0xAE;
Connect: Photoshop to draw a realistic studio microphone detailed tutorial (i)
79. Effect Drawing.
80. Select the Rectangle tool, draw a rectangle, the width and the hoop, the height is shorter, refer to the image below and named as the Hoop Shadow.
81. Change the position of the layer.
82. Select the vector mask of the shadow on the hoop and use the Pen tool to add an anchor point to the center.
83. Adjust the path of
The control was streamlined on the work of Jacob Klint. I hereby acknowledge.Now you are developing a voice recording software. You need to actually monitor the microphone input volume and display it. Similar to QQ voice function.There are a lot of available technologies that can be implemented by Windows Media Encoder, Microsoft Expression Encoder, Microsoft SAPI, and Microsoft DirectX. Taking into account the compatibility of XP, Vista and Win7, Dir
1, we open the latest version of the mobile phone in the music app, and then click on "Online music" and then we click on the "Find music" effect as shown below
”
2, after entering into the microphone after the music we find music page click Activities
3, in the activity page click Sign in to earn the flow, the month sends the 2GB the activity
4, then you can sign in and then click on the following share to return to this p
At first, I thought I would only take the last sample of the recording to determine the volume size, and found that it was undetectable.Later search, the original need to take a sample to judge, some of this section to take the average as the volume size. I'm here to take out a sample of the peak as the volumeAudio.clip.GetData got a value of 0-1, so I took the 99来 to divide the volume into four levels (0-24-49-74-99)1 Public floatVolume2 {3 Get4 {5 if(Microphone.isrecording (NU
How do I order the ringtone?
1. Click on the picture of the Ring tone order button
2. In the order page, enter the mobile phone number, graphics verification code. Get the SMS Verification code and enter, click OK, complete the color ring order.
How do you give a ring to a friend?
1. Click on the picture of the color ring gift button, or in the order page switch to "give friends" label.
2. Enter the mobile phone number, friend mobile number, graphics verification c
Integrated sound cards are generally full-duplex sound, the recording part of the chance of individual damage is very small. You can try to resolve it by following these steps.
1. Right-click My Computer on the desktop, select Properties, and open System properties.
2. In System properties, in the Hardware tab, click Device Manager.
3. Expand the sound, video and game Controllers branch in the open Device Manager. If a yellow "?" appears in this ar
ALSA is a Linux advanced audio interface. ALSA provides a set of standard access mechanisms for Linux audio developers to easily develop audio devices. Believe it? Next we will use it to compile a simple recording/broadcasting program, but this requires you to have a certain degree of computer language basics.
A typical audio program should have the following structure:
Enable the audio device
Set read/write parameters for devices
Read/write audio dat
Computers are connected to the network every day. Nowadays, there are countless Trojan viruses on the network, and viruses will inevitably happen one day. So what should we do after the virus? The correct solution can avoid greater losses and minimize the damage caused by viruses. Let's take a look.
I. MediumVirusSymptom
When your computer is infected with viruses, the virus will not tell you that the virus has been poisoned. We can see from some abno
How to disable USB flash drives on the company's computer, prohibit USB flash drives from copying computer files on the company's computer, and prohibit USB flash drives on the computerAt present, USB flash drives are frequently used, and the read/write speed and storage space are getting bigger and bigger. Although it is convenient to work, it also makes it extr
.
Second: The computer does not sound please first check your speakers or headphones whether there is a problem, whether the speaker or headset audio cable and computer connections good, the interface is plugged in.
Previously found that a friend using a speaker or a headset because the audio line and computer connection caused no sound, this is also very low-l
Http://www.tianya.cn/New/PublicForum/Content.asp? Flag = 1 idwriter = 0 Key = 0 idarticle = 300143 stritem = it
Each computer connected with a network cable can browse the Web page through the ADSL Router, and computer A can view and browse the shared files of computer B, however, computer B can only see but cannot
Many people will ask: "How to use the computer to record?" "This kind of problem, this is actually because forgot actually the computer to bring the recording function, lets us recall this to be forgotten function !"
The following simple sharing how to use a computer recorder to record 120 seconds of the song, if you want to record longer songs, suggest you ca
What if the computer doesn't sound? There are many ways to solve the problem. We can easily solve the problem by understanding how the computer has no sound. The computer does not sound the reason is nothing but 2, computer hardware problems and software problems. The following according to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.