mp3

wav <> mp3 for flash(as3)

房东的猫 提交于 2019-12-04 23:48:24
问题 I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in Flash using AS3 I'm sure it'll be a right pain... I have no idea where to start, can anyone offer any pointers? reference material? ----much later--- Thank you all very much for your input... It seems I have a long road ahead of me yet! 回答1: See LAME MP3 Encoder. You can checkout their source code and their link page. Mpeg.org should have documents too. 回答2: You could also theoretically do this as a PixelBender

Decode MP3 File from NSData

僤鯓⒐⒋嵵緔 提交于 2019-12-04 23:00:01
问题 For my application, I need to decode an MP3 file which is stored in an NSData object. For security reasons, it is undesirable to write the NSData object to disk and re-open it using a System URL reference, even if its only locally stored for a few moments. I would like to take advantage Extended Audio File Services (or Audio File Services) to do this, but I'm having trouble getting a representation of the NSData, which exists only in memory, that can be read by these Audio File Services. Edit

Where to get pure C++ Lame MP3 encoder - PCM to MP3 example?

扶醉桌前 提交于 2019-12-04 22:33:13
问题 So all I need is a simple function that sets it up (eating incoming PCM RATE (for example: rate near to 44100) It's channels (for example: 2) and -bits (for example: 16) and desirable 128 kb\s rate) and another one that takes PCM data and encodes it into pure MP3 frames. I know it looks like a silly homework task but I assure you - it is not. I hope it will be of help to all C++ developers starting with MP3s. So can anybody please help me with that? 回答1: See the example I gave in your other

Android Youtube Download mp3

自闭症网瘾萝莉.ら 提交于 2019-12-04 22:00:28
Assume I have the id (The numbers and signs in the video's hyperlink after "http://www.youtube.com/watch?v=") of a Youtube video. How can I download the audio stream of the file to an sd-card as an mp3 with android code? (I wrote an application for 2.x but this part is missing). Look at how some other YouTube scrapers do it, e.g. youtube-dl . Then recreate their algorithm in Java for Android. Then keep spending time trying to stay up-to-date with the capricious changes YouTube will make to their site every now and then. 来源: https://stackoverflow.com/questions/9115681/android-youtube-download

How to keep track of audio playback position?

一曲冷凌霜 提交于 2019-12-04 21:51:28
I created a thread to play an mp3 file in Java by converting it to an array of bytes. I'm wondering if I can keep track of the current play position as the mp3 is being played. First, I set up my music stream like so: try { AudioInputStream in = AudioSystem.getAudioInputStream(file); musicInputStream = AudioSystem.getAudioInputStream(MUSIC_FORMAT, in); DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, MUSIC_FORMAT); musicDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo); musicDataLine.open(MUSIC_FORMAT); musicDataLine.start(); startMusicThread(); } catch

Force Download MP3 with PHP

牧云@^-^@ 提交于 2019-12-04 21:42:14
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 donwload one file with the name client_id=05b4f2000dad27aa9fc48d08915d7830.html The complete php code that I

Ruby audio Library

我的未来我决定 提交于 2019-12-04 21:06:48
问题 is there any good Ruby audio libraries that we can build upon? Need to manage/edit mp3 files!!! 回答1: There's an interface to a C++ mp3 editor, and an active pure ruby project. 回答2: ruby-audio is the best one right now, it's a wrapper for libsndfile 回答3: There's also earworm and icanhasaudio which may be interesting... 来源: https://stackoverflow.com/questions/252239/ruby-audio-library

Autoplay an audio with HTML5 embed tag while the player is invisible

瘦欲@ 提交于 2019-12-04 20:53:11
问题 I want to autoplay a MP3 audio file and I don't want the player to be visible. <div id="music"><embed src="Comfortably Numb.mp3" autostart=true loop=false></div> When I added display:none to the audio tag using css, it doesn't play the music at all. Could someone explain me hot to play the music without displaying the player? 回答1: Alternatively you can try the basic thing to get your need, <audio autoplay loop> <source src="johann_sebastian_bach_air.mp3"> </audio> For further reference click

How to tell if MediaPlayer is playing?

牧云@^-^@ 提交于 2019-12-04 19:54: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 library? if I understood: mediaPlayer.setOnEndOfMedia(new Runnable() { @Override public void run() {

MP3 Cover Art Tagging in C#

流过昼夜 提交于 2019-12-04 19:51:35
I need to tag MP3 files with a Cover Art in C#... Is there any easy way to do this? I found UltraID3Lib as an exampel and it is great for regular ID3 tagging but I cant handle the cover art. If someone know an easy way to do this would it be great :) I do something like this : private static void FixAlbumArt(FileInfo MyFile) { //Find the jpeg file in the directory of the Mp3 File //We will embed this image into the ID3v2 tag FileInfo[] fiAlbumArt = MyFile.Directory.GetFiles("*.jpg"); if (fiAlbumArt.Length < 1) { Console.WriteLine("No Album Art Found in {0}", MyFile.Directory.Name); return; }