mp3

C# MP3 Player using winmm.dll

醉酒当歌 提交于 2019-12-07 05:45:29
I'm trying to bash together a (very) rough MP3 player during my lunch hour, and so far I've got it to play the files, and I'm working on a way of building a list of filenames to enable random songs, but I think I've just hit a snag. Is there a way of knowing when the currently playing MP3 has finished? An event or some such? As it stands I don't think I'd be able to have playlists etc unless this was possible due to it stopping after every playback. I've attatched the whole source below, feel free to pick it apart and give me any feedback you may have, cheers. using System; using System.IO;

Ripping a CD to mp3 in C# - third party component or api out there?

蹲街弑〆低调 提交于 2019-12-07 03:36:00
问题 We're working on a project that requires the ripping of audio tracks from CDs to MP3s (ideally also retrieving the track information from CDDB or similar). More background information: Various music labels send us CDs of music which we then deliver to people via an online delivery system. We're looking at automating the process of converting those CDs into MP3s with full track information where possible. We want to produce a simple desktop application that allows a member of editorial staff

TagLib-sharp: Reading metadata from HttpPostedFile object

爱⌒轻易说出口 提交于 2019-12-07 03:19:46
问题 User post their MP3s to my site and I would like to read the metadata from the files before they are stored in the CDN. TagLib-Sharp seems to be library to go for this, but I can't see any way to open a HttPostedFile, which I don't not want to save to disk, and retrieve the metadata. Anybody have an example on how to do this with taglib-sharp? Edit: It seems that IFileAbstraction can solve this. Anybody know how to use IFileAbstraction? 回答1: You would want to do something as follows. The

Flash streaming player: shoutcast (mp3/aacplus), windows media audio

大城市里の小女人 提交于 2019-12-07 00:52:28
Is there a flash player that could handle all of the formats mentioned above. Or different players that could handle it? http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html explains Flash 9's h.264 and aac support. Presumably Flash can play aac audio without h.264 video. Someone wrote an ogg vorbis player in Flash ( http://drawlogic.com/2008/10/04/as3-fvorbis-flash-ogg-vorbis-player/ ) and the performance was acceptable. It's not written in ActionScript. It's written in a different language that compiles to Flash-compatible bytecode. If you want to play wma, look no

Force Download MP3 with PHP

拥有回忆 提交于 2019-12-06 16:49:30
问题 Be honest : I found the way to donwload mp3 files from s******d but Im not able to donwload the MP3 directly all the music is streaming in the browser. I already try with someting like this <a href="direct_download.php?file=fineline.mp3">Download the mp3</a> but my donwload link is not .mp3, this is my line of code to donwload a file href="<?php echo $val['stream_url']?>?client_id=67739332564a7130c3a05f90f2d02d2e">Descargar</a>. When I use the the option direct_download.php?file= just

How to add JFXPanel to already existing swing app

China☆狼群 提交于 2019-12-06 15:54:13
I am very stuck in knowing what to do to integrate my JFXPanel (which is an mp3 player) into an existing Swing app that - which is a JFrame with several different JPanels added to it. I am a complete noob to JavaFX and it is very different from swing. I am able to get the code that is below to run and do what I want. It will play mp3 files from a directory that I have them contained in. This is code from a sample that someone wrote. My issue is that this code creates the the JFrame, has the main method and everything just in this code. I have a swing application that is already made that I

Linux编译ffmpeg并转换MP3到AMR

雨燕双飞 提交于 2019-12-06 15:27:37
AMR格式是智能手机上的常用音频文件格式,比如MP3格式的压缩比大,但是文件比MP3小,所以在移动互联项目中应用比较广泛。去年年底协助联想研究院开发一款预装产品过程中需要使用到MP3格式和AMR格式的互相转换,服务器环境为CentOS 6.0,过程如下。 1. 首先安装系统基础环境 RHEL & CentOS 系列:yum install -y automake autoconf libtool gcc gcc-c++ Debian & Ubuntu 系列:apt-get install automake autoconf libtool gcc gcc-c++ 2. 下载最新的FFMpeg源码包 FFMpeg官方下载地址: http://ffmpeg.org/download.html 。 一般直接使用最新版本,下载完成后解压缩,进入源码文件夹,运行“./configure --help”查看帮助,这里主要是为了确认需要安装的扩展,有些扩展默认是已经开启的,有些是需要单独下载扩展源码包进行编译的。以我的需求为例,需要单独编译yasm、lame、OenCore AMR、AmrNB和AmrWB,其中lame是MP3解码器。 3. 编译所需源码包 从各个官方地址下载上述五种源码包,为了保证兼容最新版本的ffmpeg,请务必也下载最新版本的源码: yasm : http://yasm

How to tell if MediaPlayer is playing?

ⅰ亾dé卋堺 提交于 2019-12-06 14:16:09
问题 How can I tell if javafx.scene.media.MediaPlayer is playing? Preferably without any external imports or additions to the build path. If this is not possible, are there any libraries that I can use that are self-contained? I am installing this software on an ARM CPU so I am trying to make this code as minimalist as possible. I am only going to use this framework to play music files and primarily MP3s. Any suggestions on how I can tell if the player is playing music with this or a different

Android decode mp3 with MediaCodec. not use MediaExtractor

有些话、适合烂在心里 提交于 2019-12-06 12:37:38
I want to decode the mp3 using the MediaCodec. However, I do not want to use the MediaExtractor. Because it is because I want to get the meta data from mp3. icy (Shoutcast) stream are also taken into consideration. I tried writing the code to decode the mp3 files from FileInputStream by improving the sample of MediaExtractor. However decode caused the error is not possible. package com.test; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.media.MediaCodec; import android.media.MediaCodec

Trouble converting an MP3 file to a WAV file using Naudio

本小妞迷上赌 提交于 2019-12-06 12:28:02
Naudio Library: http://naudio.codeplex.com/ I'm trying to convert an MP3 file to a WAV file, but I've run in to a small error. I know what's going wrong, but I don't really know how to go about fixing it. Here's the piece of code I'm running: private void button1_Click(object sender, EventArgs e) { using(Mp3FileReader reader = new Mp3FileReader(@"path\to\MP3")) { using(WaveFileWriter writer = new WaveFileWriter(@"C:\test.wav", new WaveFormat())) { int counter = 0; while(reader.Read(test, counter, test.Length + counter) != 0) { writer.WriteData(test, counter, test.Length + counter); counter +=