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 background
low response latency. In addition, SoundPool also allows you to set parameters such as sound quality, volume, and playback ratio, and allows you to manage multiple audio streams by ID.
As we know, SoundPool has some Design Bugs. Some bugs have not been fixed since the firmware version 1.0. We should be careful when using them. I believe Google will fix these problems in the future, but we 'd better list them as follows:
1. SoundPool can only apply fo
Cool Dog Music 2015 What is Viper sound?
To say goodbye to the equalizer's time of tuning sound, cool dog music pc side launched Viper Sound to create four sound artifacts (3D, hifi scene, overweight bass, pure voice), to achieve
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 heade
First, the basic knowledge1, the project needs to have Audiolistener, the player plays the sound is the Audiolistener component sits in the position hears the sound. The default audiolistener is placed on the main camera. There is no sound to be heard without audiolistener. Generally, the default is on the camera.2, drag the
Play soundthe ability to play sound effects may be encountered during iOS developmentIn fact very simple, iOS has provided a framework for directly responsible for playing sound audiotoolbox.frameworkNew Project Testwechatsounds
Import Audiotoolbox.framework to a new project
After the import succeeds the following figure
The project directory is as follows
Next we add several CAF-formatted a
Cocos2D encapsulates music/sound effects. The following is an example:
Define two files:
[Cpp]# Define MUSIC_FILE "lolbgmusic.pdf"# Define EFFECT_FILE "Attack.wav"
# Define MUSIC_FILE "lolbgmusic.pdf"# Define EFFECT_FILE "Attack.wav"Pre-load the music/sound file during initialization:
[Cpp]// Pre-loadCocosDenshion: Sim
Whether it is leisure or irritability, listening to a good music is very pleasant things, but there are some Windows7 32-bit flagship system user feedback, their own computer in the use of cool dog music no sound, but the system sound normal, this is how it? On this issue, The following small series to bring you Window
Cocos2d-x instance: Set the background music and sound-HelloWorld scene implementation,HelloWorld is the main menu scenario in the game. The HelloWorld. h file code is as follows:
# Define _ HELLOWORLD_SCENE_H __# include "cocos2d. h "# include" SimpleAudioEngine. h "① # include" SettingScene. h "class HelloWorld: public cocos2d: Layer {public: static cocos2d: Scene * createScene (); virtual bool init (); ②
As few code needs to be added here, let's talk more about sound engine here. The Cocos2d-x has encapsulated SimpleAudioEngine for cross-platform use. In our game, I can play background music and sound effects with only one line of code. This is very convenient. Of course, the supported audio formats vary by platform. For more information, see
Http://www.cocos2d-x
The quality of the problem you want to see what is the player and headphones or stereo.
Generally more than 50 headphones + any independent sound card will be able to hear the difference, hehe. But be careful to tell.
Of course, it is best to use better equipment, novice words, 200-300 of headphones, or about 1000 of the speakers can be, will feel the rendering, sound field is very good, than the general
This article mainly introduces jquery's method of controlling the background music switch and automatic playing of the prompt sound. The example analyzes the technique of the background music switch and the common usage of the automatic playing of the prompt sound, which is of great practical value, for more informatio
Solving computer antivirus sequelae: there is sound but no music can be played
EndurerOriginal2009-11-25 th1Version
After clearing the virus on a colleague's computer, see:
In the event of kav32.exe, scvhost.exe, nxd.exe, extext74296t.exe, etc. 1Http://blog.csdn.net/Purpleendurer/archive/2009/11/10/4793127.aspx
Computer sequelae: sound, but
Win7 System computer when listening to music always emit current sound how to eliminate
The method is as follows:
1, check the "Audio line" interface is correct, through the "audio line" with the computer Green audio interface to connect, and the sound card panel in the pink interface is usually used to connect the microphone, if so the wrong stereo will also e
Small man (Bill man) Personal Original, welcome to reprint, reprint please indicate the address, small man (Bill man) column address http://blog.csdn.net/bill_man
In the game, music is an indispensable part. Music is divided into two types: long-time background music and short sound effects, which can increase the effe
: cleanup () {layer: cleanup (); log ("helloworld cleanup"); // stop simpleaudioengine: getinstance ()-> stopbackgroundmusic ("sound/jazzaudio"); ⑥}
The first line of the above code, using namespace cocosdenshion, uses the namespace cocosdenshion, which is required by the cocosdenshion engine. Lines ②, ③, and ④ simpleaudioengine: getinstance ()-> playeffect ("sound/blip.wav") Play the
cause Analysis: Due to misoperation or other software settings
Realtek
high-definition audio changes in sound management.
Workaround: Re-select
Realtek
high-Definition audio manager in the sound effects can be, the specific methods are as follows:
1. Click "Control Panel" and select "
Realtek
High Definition Audio manager ".
2. Enter the speaker, select the
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
To the users of NetEase cloud music software to the detailed analysis to share a test to listen to the changes in the quality of the debugging tutorial.
Tutorial Sharing:
1, open NetEase Cloud Music app, click on the Left menu button
2, click the bottom left corner "setting"
3, click on "Online playback quality"
4, choose your favorite sound quality, p
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.