First, let's look at the screenshot of the implementation:
When a recording file exists, it is shown in the ListView below.
The complete code for implementation is given below:
1. Main program code
Package irdc.ex07_11;
Import Java.io.File;
Import java.io.IOException;
Import java.util.ArrayList;
Import android.app.Activity;
Import android.content.Intent;
Import Android.media.MediaRecorder;
Import
First, the basic knowledge of digital audio
Fourier series:
The waveform of any period can be decomposed into several sine waves, the frequencies of which are integral times. The frequencies of other positive line waves in the series are integral times of the base frequencies. The base frequency is called first-level harmonics.
Pcm:
Pulse code modulation, pulse code modulation, that is, the waveform according to the fixed-cycle frequency sampling.
As long as you want to listen to CDs, it's at any time (DOS, games can be activated with the mouse, mouse control, for you to play. and provides a choice and pause function, which is not directly on the CD-ROM on the construction of friends to provide a great convenience. The program is ingenious, using an int 33H of existing mouse function, cleverly extended, Ability to activate under any conditions!! If you are interested, you can change him to mous
/n""/t-d device:assign sound device to record or playback (DEFAULT/DEV/DSP)/n""/t-c channel:indicate in MONO or STEREO channel (default MONO)/n""/t-b bits:assign Sampling bits Depth (default 8bits unsigned)/n""/t-f hz:indicate sampling rate,i.e,frequence (default 8kbps)/n""/t-l len:indicate recording sound ' s length (default 1024k)/n""/t-r|-p file:indicate record in or playback (no default,must give out explicitly)/n""E.g.:/n""/T./sndkit-h Show Help
Today do a mobile phone play page, found on iOS as long as the lock screen or switch other programs music off, find a long time to find the reason.Because the page plays a file, so I wrote it.id= "audio" autoplay= "true" controls= "" preload = "preload" > Audio >Then set MP3 address via JSAudio.setattribute ("src", "Http://xxxx.mp3");Refer to other websites and find that music files written in source wil
I. Description:
Recently I want to test the driver, so I am working as a wave file parser to obtain PCM audio data in the wave file.
Ii. program code:
# Include # Include Typedef int DWORD;Typedef unsigned short word;Typedef struct _ riff_header{Char riffid [4]; // 'R', 'I', 'F', 'F'DWORD riffsize;Char riffformat [4]; // 'w', 'A', 'V', 'E'} _ Riff_header;
Typedef struct _ fmt_block{Char fmtid [4]; // 'F'
= 226338Implementation of beautiful Bitmap Buttons in the MFC Program (with routine)Http://bbs.oorroo.com/viewthread.php? Tid = 156097List box program and source code of the Self-painted background on WmHttp://bbs.pdafans.com/thread-286806-1-1.html
9. Audio and VideoH.263 Network Video Transmission program-handheld
This article recommends a good example program for playing Wav audio files. If you want to use java, you can refer to it.
The Code is as follows:
Copy code
Import java. io. File;Import java. io. FileInputStream;Import javax. sound. sampled .*;Import javax. swing .*;Public class test extends JFrame{Public static void main (String [] args){Test app = new test ();App. playStartupSound (
generatedLog. Println ("Rs. Stat failed: ", err)Return}Handling Return ValuesLog. PRINTLN (ret)}Uploading Local FilesFunc upload (key string) {Uptoken: = Uptoken ("Needkane")Fmt. Printf ("uptoken:%s\n", Uptoken)var err errorvar ret io. Putretvar extra = io. putextra{Params:params,Mimetype:mietype,CRC32:CRC32,CHECKCRC:CHECKCRC,}var LocalFile = "/home/qboxtest/downloads/a.wav"The RET variable is used to access the returned information, see IO for details. PutretUptoken the upload password generat
1 knowledge background, need to have basic programming function of C + +, can read c/++ Project project, understand injection process, understand basic safety programming2 required to inject the driver and the program, as well as the need to inject the DLL3 related tools WinDbg win7x64 virtual machine Pchunter64.exe Procxp.exe3 problem description in win7x64 with our own tools generated by the program, laun
This is a creation in
Article, where the information may have evolved or changed. Package Main
Import (
"Html/template"
"IO"
"Io/ioutil"
"Log"
"Net/http"
"OS"
"Path"
"Runtime/debug"
)
Const (
Listdir = 0x0001
Upload_dir = "./uploads"
Template_dir = "./views"
)
Cache Storage All Template
var templates = Make (map[string]*template. Template)
Func init () {
Fileinfoarr, err: = Ioutil. ReadDir (Template_dir)
Check (ERR)
var templatename, TemplatePath string
For _, FileInfo: =
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.