Windows mCi (media control interface)
Yes
Windows
Provides high-level and general control over multimedia devices.
. It provides a set of device-independent functions and
Command to effectively control multimedia devices.
By using MCI, we can easily perform operations on multimedia without having to understand the working principle of multimedia devices and call the underlying function library, which greatly reduces the difficulty and burden of development. Here is a small example of a
Sometimes, we write the program need to play music, generally we will use the following ways: 1. Place music files in a specific directory, such as Sound,wav,music for the program to read and play; 2. Use resources to store music. Some people may also use this method, but most people might have to release the music files from the resources before they read the playback. The way I'm going to present today is to load the music files directly into memory
First, your resources should be in WAV format and include header files and required library files as follows#include #pragma comment (lib, "Winmm.lib")
The declaration of the PlaySound function is:
BOOL PlaySound (lpcstr pszsound, hmodule hmod,dword fdwsound);
PlaySound (null,null,null); stop playing.
The parameter pszsound is a string that specifies the sound to play (generally the absolute path, if the sound file is copied to the executable file
This example describes how Python opens and plays a WAV file using Wxpython. Share to everyone for your reference. The implementation method is as follows:
"' Wx_lib_filebrowsebutton_sound.pyselect a sound file and play Itwx.lib.filebrowsebutton.FileBrowseButton (parent, LabelText, Filemask) (combines WX. Textctrl and Wxfiledialog widgets) wx. Sound (fileName, isresource=false) tested with Python27 and wxPython291 by Vegaseat 25jul2013 ' Import wximp
In the study of "dialect and Chinese culture", we need to submit a recording, the phone's recording default is WAV format, need to convert to MP3 formatLinux can be converted with lameLame sample.wav sample.mp3lame-h sample.wav Sample.mp3 # highest qualitylame-h-b sample.wav Sample.mp3 # Fixed bit Rate Jstereo KbpsGUI tools are soundconverter, and there are several other toolsYou can also use the online conversionReference:http://blog.longwin.com.tw/2
This article describes how Python opens and plays a WAV file using Wxpython. Share to everyone for your reference. The implementation method is as follows:
"' wx_lib_filebrowsebutton_sound.py Select a sound file and play it Wx.lib.filebrowsebutton.FileBrowseButton (parent, LA Beltext, Filemask) (combines WX. Textctrl and Wxfiledialog widgets) wx. Sound (FileName, isresource=false) tested with Python27 and wxPython291 by Vegaseat 25jul2013 ' ' Im
Tutorial on how to capture a CD as a WAV file
1. First, the implementation of exact Audio Copy (hereinafter referred to as EAC) main program, open EAC main interface;
2. Then open the "drive options" in the EAC item in the menu bar to set up the catch mode.
Note: This is critical and directly affects the audio quality of the captured rail
3. "Catch mode" setting: It is recommended to use precise flow, disable caching, do not use C2 sec
1, import wave used to read and write WAV files
It provides a convenient WAV format interface.
However, compression/decompression is not supported and mono/stereo is supported.
Read format:
Open (file[, mode])
If file is a string, open it or treat it as a class file object.
Mode can be default, and if the input parameter is a class file object, then File.mode will be the value of mode.
Mode optional paramet
Using PHP to analyze and draw the waveform of audio files, the Internet is still rarely seen. In fact, as long as the specification of WAV files, using PHP fseek,fopen,fopen,pack/unpack functions, as well as the powerful GD graphics library, these are very easy. Many people may be unfamiliar with the pack/unpack function; this is actually PHP borrowed from Perl, and they provide a way to access complex binary data structures using scripting languages.
WAV conforms to the riff (Resource Interchange file Format) files specification, which is used to hold audio information resources for the Windows platform and is widely supported by the Windows platform and its applications, which also supports Msadpcm,ccitt A Law, such as a variety of compression operations, supporting a variety of audio numbers, sampling frequency and channel, standard format WAV files a
Wednesday, September 24 2003 PM when an event is completed, the program sends a specific signal to add the user interface features of the program, such as when the download is completed or a command is selected. Using a multimedia function and using a vbprogram to run WAV files is a breeze. However, the system must install a sound card for this operation.The API function you need is called PlaySound. The following is the declaration of this function:P
Wednesday, September 2003 1:24 PM when a certain event is completed, the program sends a specific signal to increase the user interface characteristics of the program, such as when downloading is complete or when a command is selected. The use of a multimedia function, through a VB program to run WAV files is an easy thing. However, the system must install a sound card for this operation.
The API function you need is called PlaySound, and the followin
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:
Unsigned char flvtaghdr [] = {0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x00};
Note:
First, map to see the effect:
Supported
Audio Playback in WAV format starts from API. You can perform any skin replacement on the player. You can select your favorite image for skin replacement.Resource usage is extremely small and installation-free. The interface is implemented using an "interface control skin library". You can download the latest version of "interface control skin library" in my resource list, I will keep updating this
Play multiple audio parts sequentially in Java, instead of playing simultaneously. The code is as follows: listThis I play in the local no problem, put on the server will be error:Java.io.ioexception:mark/reset not Supportedat Java.util.zip.InflaterInputStream.reset (Unknown Source) at Com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream (Unknown Source) at Javax.sound.sampled.AudioSystem.getAudioInputStream (Unknown Source) at Com.yulong.mes.winapp.form.quality.forbatchope
Using System; Using System.IO; Using System.Text; Using System.Windows.Forms; Using System.Runtime.InteropServices; namespace TRAIN.WAV2PCM {public partial class Frmmain:form {///
There is nothing to do today, write a wav "= =" PCM file conversion program. Let's announce that we learn together. The PCM file is not played and is not known to be successful. only when studying.
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.