/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and communication. For more information, indicate the author and its source.
**************************************** **************************************** ************/
1. Introduction to Android audiotrack
I
Reprinted from http://tiger506.blog.51cto.com/318536/367624
After using fedora for a period of time, I would like to hear MP3 files. I was surprised to find that the default player could not be played. Don't worry. This blog post can solve this problem.
1. Install RPM fusion first (RPM fusion provides software not provided under fedora or red hat, which is a third-party software pants). Be sure to install
C # No class is provided for playing audio files such as MP3. To write audio file programs such as MP3, you must use third-party controls or classes. This article uses the API function mcisendstring to compile a class for playing audio files such as MP3.
The source code is
This article mainly introduces how python uses the win32com library to play mp3 files. it involves related techniques for Python to use the win32com library to operate audio files, for more information about how to use the win32com library to play
C # No class is provided for playing audio files such as MP3. To write audio file programs such as MP3, you must use third-party controls or classes. This article uses the API function mciSendString to compile a class for playing audio files such as MP3.The source code is as
Problem
You want to play an MP3 or WMA audio file in xNa.Solution
XNa can use the default content pipeline to load MP3 or WMA audio files to a song object. After loading, you can use the static mediaplayer class to play the song object.Working Principle
First, add the
function, just add a line of code to complete. Private void Play(intCurrentTime) {Try{Mediaplayer.reset ();//Restore the parameters to their original stateMediaplayer.setdatasource (path); Mediaplayer.prepare ();//BufferingMediaplayer.setonpreparedlistener (NewPreparedlistener (currenttime));//Register a listenerINITLRC ();//Update playback statusIntent Intent =NewIntent (Play_statue);//Send the completed signal, update the playback statusIntent.pute
/*************************************************************************** * Android command line play MP3 music * Note: * Sometimes we will encounter touch not use, and no mouse, but we want to test the sound card on Android, so we will think of the ADB or debug terminal using the command line to
1. On the VS2012 Toolbox right---"select"-"COM Components" and "Windows Media Player" Tick on, then click OK.2. In the WinForm form, add two button buttons, one Windows Media Player, and the correspondingThe button code is as follows:Play Music private void button1_click (object sender, EventArgs e) {FileDialog open = new OpenFileDialog (); WxWindowsMediaplayer1 is the control name This.axWindowsMediaPlayer1.settings.playCount = 2;//played; ope N.filter = "*.
Title: how to play mp3 and wma media files under Fedora. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories (1) first remove the existing system totem # yum remove totem
(2) install totem-xine # yum install-y totem-xine
(3)
The cause is the discovery of online translation of the website can't pronounce.F12 the console and found that it was unable to decode the mp3 file.Try installing the Deadbeef package and find a package named FFmpeg in the list of recommended software installed after installation. After installation, restart Firefox. All right.Remember that the installation of Windows 7 Ultimate N version, Firefox is also unable to
Address: http://www.omgubuntu.co.uk/2011/03/html5-browser-based-media-player-plays-your-mp3s-works-offline/
_______________________________________________________________________________
"Er ~ Is it a browser ?", Maybe you see OMG! The first response from another media player on the Ubuntu page, but this one is really special.
This HTML5 media player runs in a browser (what about it ?), But it is designed to play your local media (Oh !!!) : You
In. Net winform, there is no hosted music player. APIs can only play in WAV format. For MP3 and other audio files, it depends on mediaplayer.
Usage:
Right-click the toolbox, select "choose items", switch to the com page, find Windows Media Player, select, and OK
In toolbox, drag and drop the mediaplayer control you just added to winform.
Code:
Axwindow
This article describes how Python uses Pygame to play MIDI and MP3 files. Share to everyone for your reference. The implementation method is as follows:
"' Pg_midi_sound101.py play MIDI Music files (also mp3
1. Because you need to delete files, you need the following permissions:
2. Core Code
Copy Code code as follows:
Package Com.example.deleteyoumi;
Import Java.io.File;
Import Android.os.Bundle;
Import Android.os.Handler;
Import Android.os.Message;
Import android.app.Activity;
Import Android.view.Menu;
Import Android.view.View;
Import Android.view.View.OnClickListener;
Import Android.widget.Button;
Import Android.widget.Toast;
Hello everyone, we are going to use Android mediaplayer today
Step 1: Preparation work.
Mksdcard 512 M sdcard. img
Create a new AVD named androidsdcard
Push songs into sdcard (before you push, you make sure your AVD is running, else the operation of push will not work ):
ADB push F:/music/1.mp3/sdcard
Step 2: Layout UI desigen:
Create two. xml files we c
Reference: http://mindtherobot.com/blog/624/android-audio-play-an-mp3-file-on-an-audiotrack/
Http://baike.baidu.com/view/14471.htm
We recommend that you download a ringtone file (smaller) and then convert it to WAV.
The source code is as follows:
Public class playmp3activity extends activity {Private final string file = "// sdcard // testring.wav ";Private Final
this morning to the office, as usual open the blog park to see the article, see there is a piece of article is used http://www.cnblogs.com/wdfrog/p/3738180.htmlSee this buddy to achieve the method is very complex, is the configuration of the computer, but also the configuration of mobile phone, or transcoding what, Daoteng time not to say, but also very troublesome, here is how I use the mobile phone directly to play the
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.