This example is a flash AS3.0 example tutorial, in the tutorial we will learn to use the Soundmixer.computespectrum () method to build a simple sound visualization program (that is, wave diagram), hoping to bring help to friends ~ ~
AS3.0 constructs a simple sound visualization program (wave pattern):
Use the Sound
float
0x0006
Wave_format_alaw
8bits ITU-T G.711 A-law
0x0007
Wave_format_mulaw
8-bit ITU-T G.711 U-law
0xFFFE
Wave_format_extensible
Attention:1) wave file default byte order is the small end order, if the big-endian order with RIFX instead of riff logo2) The sampled data must be even bytes3) 8-bit sampling data is stored as an unsigned number, from 0 to 255.16 bits of
Document directory
Notes:
General discussion of riff files:
References:
The wave file format is a subset of Microsoft's Riff specification for the storage of multimedia files. A riff file starts out with a file header followed by a sequence of data chunks. A wave file is often just a riff file with a single "wave" chunk which consists of two sub-Chunks --
This example for you to share the JS water wave background effect of the code, for your reference, the specific content as follows
Effect Chart:
Implementation code:
The above is the entire content of this article, I hope to learn JavaScript program to help you.
Reference: Https://github.com/cyclegtx/wave_backgroundDo the water background, may be used in the future ha!The effect is as follows:The code is as follows:DOCTYPE HTML>HTML>Head> title>Wave backgroundtitle> MetaCharSet= "Utf-8" /> style>html, Body{width:100%;Height:100%;padding:0;margin:0;} style>Head>Body> CanvasID= "Canvas"style= "position:absolute;top:0px;left:0px;z-index:1;">Canvas> S
Jquery controls the background music switch and automatic playing of the prompt sound, jquery background music
This article describes how jquery controls the background music switch and automatically plays the prompt sound. Share it with you for your reference. The details a
Music and sound in the game are essential, good music can leave us a deep impression also determines the quality of the game. Today we'll learn how to use music and sound effects in cocos2d-x. The functions used are simpler and are now directly on the code.
The header file for the sound pre-processing class
#ifndef _audio_pretreat_h
#define _AUDIO_PRETREA
The processing of audio in the game is also very important, it is divided into background music playback and sound effects. Background music is played for a long time, it takes up a lot of memory, the background music can not be played more than one time. The sound is short,
Cocos2d-x 3.0 background music and sound beginner mciplayer class
* *********************************** Please specify the source: bytes ********************************************
Statement:
This article is compiled with vs2012, cocos2d-x version 3.0.
I am also a newbie. If you have any mistakes, please point out and make progress together.
Hmm ~ This time I learned how to use
Reprinted! Please indicate the source when reprint: http://write.blog.csdn.net/postedit/8140083
First of all, I am sorry to everyone here. I have prepared the action editor for this lecture, but there is really no good action editor on the Internet. spritex can barely join in, however, I only have the Java parsing version. If I have time, I will parse it and share it with you ~
A game with no sound will make the game less attractive. For some classic
Cocos2d-x with UserDefault data persistence instance: Save background music and sound settings,UserDefault can store data, but it cannot be used in a flood. In general, it will not be used to store a large amount of data, and it is not as flexible as SQL statements. In addition to saving game settings, UserDefault can also maintain the status of Game Genie and other objects for a long time.An example is pro
Cocos2d cocos2d-x game developers iOS 8Userdefault can store data, but it cannot be used in a flood. In general, it will not be used to store a large amount of data, and it is not as flexible as SQL statements. In addition to saving game settings, userdefault can also maintain the status of Game Genie and other objects for a long time.
An example is provided to illustrate how to use userdefault in game projects ., In the setting scenario, you can set whether to play
Cocos2d-x instance: Set background music and sound effects-set scene implementationThe Setting. h file code is as follows:
#ifndef __Setting_SCENE_H__#define __Setting_SCENE_H__#include cocos2d.h#include SimpleAudioEngine.hclass Setting : public cocos2d::Layer{bool isEffect;①public: static cocos2d::Scene* createScene(); virtual bool init(); virtual void onEnter();virtual void onEnterTransitionDidFini
Original Work, reprinted, please mark:
Android: on android, CocosDenshion supports the audio format that corresponds to the format supported by android. media. MediaPlayer. IOS: The formats supported by CocosDenshion in the Cocos2d-x on IOS are the same as those supported in the Cocos2d-iphone, and mp3, caf is the recommended format. Windows:. mid,. wav are supported. Note that mp3 is not supported. Marmalade: mp3
# Include "SimpleAudioEngine. h" using namespace CocosDenshion; // if t
methods of inserting, replacing, deleting and editing background sound in WPS demonstration
I. Insert, replace, and delete of "background music"
1, click on the upper left corner WPS Demo Small triangle, in the pop-up menu click "Insert" → "background music."
2, in the pop-up dialog box to find the speci
Cocos2d-x instance: Set background music and sound-AppDelegate implementation, appdelegateTo learn more about playing background music and sound effects, let's use an example. As shown in, there are two scenarios: HelloWorld and Setting. In the HelloWorld scenario, click the "game Settings" menu to switch to the Settin
to learn more about background music and sound effects, let's introduce you through an example. For example, there are two scenarios that you can see: HelloWorld and setting.In the HelloWorld scene, click on the "Game Settings" menu to switch to the setting scene, in the setting scene can set whether to play background music and
to learn more about background music and sound effects, let's introduce you through an example. There are two scenarios as shown: HelloWorld and setting.In the HelloWorld scene, click on the "Game Settings" menu can switch to the setting scene, in the setting scene can set whether to play the background music and sound
First, we want to put the sound and background music required for the project in the Res directory under the project.Then to preload this music at the beginning of the project //Pre-load main game page picture resource array varRes:array[{URL:"Res/atlas/ui.json", Type:Laya.Loader.ATLAS}, {URL:"Res/atlas/ui.png", Type:Laya.Loader.IMAGE}, {URL:"Res/atlas/bg.mp3", Type:Laya.Loader.SOUND},//pre-lo
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.