, beginners are gradually familiar with Quartus II, systems builder, niosii eds, aveon bus slave, and aveon bus master.
(Original) how to build a system that can run μC/DE2-70 on the OS-II with the system? (SOC) (Quartus II)(Original) how to design a seven-segment controller? (SOC) (Quartus II)(Original) how to design an SD card WAV player? (SOC) (Quartus II)(Original) how to design a digital photo frame? (SOC) (Quartus II)
(This tutorial is taken
How can I play a wav-file from memory or blob-field?Sometimes you needs to play a some sounds from own app but store these sounds in blob-field of table or in some external files.
To play a wav-file you must call the playsound procedure which have the few parameters-sound (which you want to play ), handle of file with resource (only for WAV from EXE/DLL-file) a
usingSystem.Runtime.InteropServices;//put WAV Public Partial classFrmmain:form {System play music wav MP3 [DllImport ("Winmm.dll")] Public Static extern BOOLPlaySound (stringPszsound,intHmod,intFdwsound);//play Windows music, Reload PublicFrmmain () {InitializeComponent (); } //enter the system to play music Private voidM_systemplaywav (stringstrplayfile) { Try {
PHP implements the method of converting a WAV file into an image file and displaying it in a page.
The examples in this paper are the methods that PHP implements to convert WAV files into image files and display them in a page. Share to everyone for your reference. The specific analysis is as follows:
Requirements: Convert WAV files to PNG files and display them
WAV files are resource Interchange file formats (RIFF), including a number of named blocks that contain header information, such as a sound sampling format, or data (such as the sample itself). The Win API provides functions such as turning off Fiff files, finding blocks, and so on. The names of these functions begin with "Mmio".
The DirectSound API does not include methods for writing WAV files. However,
This uses FAAC to implement AAC encoding. In addition, the data segment of WAV is PCM, the code will appear many PCM abbreviations. 1 Download and install FAAC
The installation process here is implemented on MAC and Linux, and windows can be similar to the reference.
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
tar zxvf faac-1.28.tar.gz
cd faac-1.28
. Configure
make
sudo make install
If prefix path is used in the default configure, t
Python uses wxPython to open and play wav files,
This example describes how to use wxPython to open and play wav files. Share it with you for your reference. The specific 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,
This article mainly introduces how to use wxPython to open and play wav files. it involves python-related techniques for operating audio files, for more information about how to use wxPython to open and play wav files, see the example in this article. Share it with you for your reference. The specific implementation method is as follows:
''' wx_lib_filebrowsebutton_sound.pyselect a sound file and play itw
, Java programmers define some native methods on the Java side and provide these methods to C programmers in the form of a C-language header file.|-Then, c programmers use the C language to implement functions defined in the header files provided by the Java programmer.|-Next, the C programmer packages the function into a library file and gives the library file to the Java programmer.When the Java program executes, if the native method is called in a class, the virtual opportunity passes through
The popular saying is: "16-bit delphi 1.0 and 32-bit delphi2.0 and 3.0 all provide resourcesCompilation tool. The resource compiler of Delphi 1.0 is BRCC. EXE and the resource compiler of Delphi 2.0.Brcc32.exe is used to compile 32-bit resources. All resource compilers only provide the command line version,Windows version not provided. To create a resource, follow these steps:1) Compile the. RC fileThe. RC file is the source file of the resource, and the compiler will compile the file to generat
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
Read the information on the Internet, the implementation is not difficult, next to study the FFTIn accordance with the online information, complement/32768The program is divided into two parts, the definition of WAV format on-line data manyRead WAV, save audio data to TXTUsing system.io;using system;using system.text;namespace audio Processing {class Program {const int bytesample = 2; const int datap
"Popular" is said to be: "16-bit Delphi 1.0 and 32-bit Delphi2.0, 3.0 have provided the resourcesCompiler tool, where Delphi 1.0 resource compiler is called Brcc.exe,delphi 2.0 Resource CompilerCalled BRCC32.EXE to compile a 32-bit resource, all resource compilers provide only command-line versions.The Windows version is not available. Creating a resource typically takes the following steps:1) write. RC file .. The RC file is the source file of the resource, and the compiler compiles the file to
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 block with a picture can be explained, as followsUsing Winhex to analyze a WAV audio file, Han Lei's farewell message is as followsBy co
value is the number of channels × the data bit value per sample/8. The playback software needs to process multiple bytes of data of this value at a time to adjust the value for the buffer zone.
22 h
2
The number of data digits of each sample, indicating the number of data digits of each sample in each channel. If multiple channels exist, the sample size is the same for each channel.
24 h
4
Char
DATA tag "data"
28 h
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.