First, introduce the framework audiotool.
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
-
(ID) initwithpath :( nsstring
*
) Path{Uint32 size, maxpacketsize;
Char
*
Cookie;
Int
I;
If
(Gthereisanactivetrack){Nslog (
@"
* ** Warning ** gbmusictrack only plays one track at a time! You must close the previusly Running Track
"
"
Before you can play another
background run time of the application has ended (expired), the block will be called
//Hurry to finish the task
[Application Endbackgroundtask:task];
}];
/**
1. Defining Variables Uibackgroundtaskidentifier Task
2. Execute the code on the right
[Application beginbackgroundtaskwithexpirationhandler:^{
When the background run time for the application has ended (expired), the block is called
Finish the mission.
[Application Endbackgroundtask:task];
}];
3. Assign t
There are three main ways of playing music in C #: 1, system.media.soundplay;2, MCI interface, 3, MediaPlayer control. Soundplay is specifically used to play sound, that is,. wav files, the use of the method is relatively simple. The MediaPlayer control is the system's own player, and it's been introduced a lot.
Today I would like to introduce you to the MCI interface, about the MCI interface, you can refer
Set as music player
1, the general default is to use as a video player, but can also be used as a music player, right-click the mouse to select "Options", click "Association", and then click "Select Audio" can be associated with all the audio files
2, play the music, in the playback interface right mouse
Give the users of now live software A detailed analysis of how to play music.
Method Sharing:
In now live live between the interface, the bottom of the function button is chatting, adjust front and rear camera, beauty, DMS, sharing, and there is no function to sing aloud.
If you want to sing in the broadcast, now the simple way to teach you is to open another singing device, and then
Everyone in the use of office2010 to do PPT may have background music, then office2010 how to set the PPT to let the background music at the end of a page? Just click on the PPT Animation tab to find the audio playback of the effect settings to set the PPT to let the background music end on a certain page oh, Let's take a look at the following with small knitting
Some users like to use audio devices in WIN8 systems so that playing video or music can become larger and have a stereo effect. But sometimes in the use of audio equipment will also encounter some problems, such as the most common computer speaker horn One Ring and the other does not ring, sounds strange, how to solve it? The following small series and you introduce WIN8 system computer speaker equipment play
Speaking of this question, the use of the Win7 system of friends probably have ever encountered it? Originally was the cheerful listening to music, suddenly opened a function with the playback of the Web page or program, the music played suddenly abruptly stopped! At first, it's possible that a lot of people thought it was a ghost Win7 bug, It was not until the end that we realized the original cause of thi
This article illustrates the solution to the handset's inability to play music in Android development. Share to everyone for your reference, specific as follows:
This problem makes my egg ache, since Baidu also has the information of wood.
The main reason for the time consuming is because of insufficient permissions, but not terminating the program, with only a small line of log reminders, not seen
It's
/zhao/madplay/mad/include/ldflags=-l/home/zhao/madplay/mad/lib
(2) Compiling:sudo make
(3) Installation:sudo make install
7. Compile Madplay:Enter Path/madplay/madplay-0.15.2b1) Run the following command
./configure CC=ARM-LINUX-GCC Ar=arm-linux-ar ranlib=arm-linux-ranlib--host=arm-linux--prefix=/home/zhao/madplay/ Mad--disable-shared--enable-static--disable-nls cppflags=-i/home/zhao/madplay/mad/include/ldflags=-l/home/zhao/ Madplay/mad/lib
(2) Compiling:sudo make
(3) Installation:sudo make in
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.