The first three articles have explained in detail how to convert the WAV audio format to the FLV format. This article describes how to convert the last part, first, the AMR is converted into W
Based on the analysis of the FLV format in the previous article, the FLV format includes file header and file body. Therefore, you can define file header and previous tag size #0 as follows:
Const static unsigned char flvfilehdr [] = {0x46, 0x4c, 0x56, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00};
The file body consists of the tag header and tag data. Therefore, the tag header can be defined as follows:
Un
[] pbaacbuffer;}Int wavtoaac (const char * wavdata, int wavdatalen, char * aacdata ){/*** Convert WAV audio data of the length of wavdatalen into AAC and write aacdata* If AAC data is successfully returned, the value-1 is returned if an error occurs.*/If (hencoder = NULL ){Return-1;}Int32 ninputsamples = 0;Int32 readpcmbytesum = 0;Int32 writeaacbytesum = 0;Int32
// Mmsystem play audio in WAV format// Mmsystem supports *. wav sound format snd-> soundrecorderUsesMmsystem; // reference mmsystem// Play the system sound{. Default // This is a string ('str ').MailbeepSystemexclamationSystemexitSystemhand}Playsound ('systemeg', 0, snd_asyn
Usually we watch the concert video or MV Everything is RMVB format, but want to listen to the phone in the song and can not see how to do, to know mobile phone watch video is not backstage, you return to the desktop it will be turned off, so we want to convert the format, turn to WAV or other
WAV is a lossless sound file under Windows, the file holds the audio PCM information and the player plays that music when most information is made, he has two blocks, the first block is the format block, the second block is the data blockFirst, the format block, the format b
When audio files are stored in the database in binary format, can php convert binary data into audio files? RT: Just read the file and write it again. Both the database and php will not take the initiative to change the type of data to be stored when the data is stored, so as to avoid confusion in the future, store the
Give your cool dog software users A detailed explanation to share the cool dog tutorials that convert CDs into MP3 formats.
Analytical sharing:
1, after the CD into the optical drive, click on the cool dog player right "my application" under "Format conversion"; (Figure 1)
2. Click "Add File" to add the. cda file in the
why convert to audio format
Recently in instant messaging, there are always several types of files about voice recording, but you want to interoperate with Android for audio. Then convert the MP3 format
sample = 0; sample
Iii. re-sampling
Sampling is a complex part of this article.
==============================, Principles ===============================7. A simple re-sampling algorithm
The principle is to increase or decrease the distance between sampling points. Of course, it is obvious that if the new sampling rate is greater than the old one, it is meaningless, resulting in many simple repetition points.
If the new sampling rate is smaller than the old one, it will be pulled back at 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.