This is how you play and stop sound effects in cocos2d
| Embed |Plain text
Copy this code and paste it in your HTML
-(Void) playsoundfxfor :( INT) Type
{
Switch (type ){
Case1:
[[Simpleaudioengine sharedengine] playeffect: @ "snap. caf"];
Break;
Case2:
[[Simpleaudioengine sharedengine] playeffect: @ "erase. caf"];
Break;
Case3:
[[Simpleaudioengine sharedengine] playeffect: @ "boing2.m4a"];
Break;
Case4:
[[Simpleaudioengine sharedengine]
Download an audio plugin, and then modify the file suffix to ". dll" file:
Now in the computer to open the "Baidu Music player" and then enter and then click the "Settings" button.
Click "Audio Plugin" in the open Window-"Add plugin".
Follow the prompts to add and then click "Save All" to save.
The next step is to use, we choose to use the plug-in, that is, in front of them with a tick, you can enable multiple audio plug-ins, as shown:
Set the switch at
Based on jQuery mouse slide click event sound effect test, jquery slide over
Based on jQuery mouse slide click event sound test. This is a very simple and practical jQuery plug-in for HTML element audio effects. As follows:
Download Online Preview source code
Implementation code.
Html code:
Via: http://www.w2bc.com/article/59200
You can use HTML5 + jQuery to add a floating mouse sound effect. It is compatible with Firefox3.5 + and Chrome3 +. You can use the html5 audio element to play an mp3 sound effect randomly, for more information about how to use HTML5 + jQuery, do not use FLASH:
Browser: Firefox 3.5 +, Chrome 3 +, Opera 10.5 +, Safari
1, open the sound will shadow X5, insert the video that wants to make the scrolling caption, click the t key, enter text, and adjust the format of font and background color.
2, select the properties, open and select the application options, and then choose the flight effect
3, select the Custom animation properties, select the Red box below the options, and then click the Play button, brows
1. On the computer open "will sound will shadow x7" then we put a picture to be processed to "storyboard."
2. We then select "Old movie" in the "Camera lens" filter material library, as shown below, and then drag it to the material image in the story panel.
3. Then in the Open Options panel on the right, click the-> button in the "Properties" " Custom Filter", and then in the pop-up window we click on the filter preset
If you do not have professional audio-visual equipment, I believe that your Mac device sound quality is difficult to have the ideal effect, and sometimes even the volume is not very high, obviously this is Apple's quality of this piece of the lack of attention, there is no way we automatically after the clothing and clothing, small series recommended the following three methods, I hope you can use.
First,
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.