mp3

C# play MP3 file from specified time for the specified time

百般思念 提交于 2019-12-08 08:29:30
I'm wanting to create a program that you can import an mp3 file into, and tell it to play it starting at a specific position, and to play for a specified amount of time. I've looked into NAudio, and got it to play and stop the mp3 file, but I can't figure out how to start at a specific position. Anybody know what I should do? If you're using NAudio, look for a Seek method on the output stream -- the information returned from this Google search, http://www.google.com/search?q=seek+site:naudio.codeplex.com , should get you started. You could also use some old but functional Windows APIs (the MCI

JAVA, play mp3 by URL

别来无恙 提交于 2019-12-08 08:03:30
问题 I would like to create player that play mp3 music from the internet by url. I tried this, but it doesn't work: import java.net.URL; import sun.audio.AudioData; import sun.audio.AudioPlayer; import sun.audio.AudioStream; import sun.audio.ContinuousAudioDataStream; public class Player { public static void main(String[] argv) throws Exception { URL url = new URL("http://stream10.jamendo.com/stream/247/mp31/07%20-%20Both%20-%20Je%20le%20veux%20aussi.mp3"); AudioStream as = new AudioStream (url

Batch file executing a sound silently

两盒软妹~` 提交于 2019-12-08 07:36:04
问题 Would it be possible to execute a mp3 silently from batch I have tried: @echo off 1.mp3 pause It works but it doest do it silently it launches WMP. does any one know how I could accomplish this. I am making a program and the track it one of the sound effects. 回答1: Here is a Bat/VBS to play an audio file : @echo off set file=track12.mp3 ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo

C# play MP3 file from specified time for the specified time

风流意气都作罢 提交于 2019-12-08 06:19:29
问题 I'm wanting to create a program that you can import an mp3 file into, and tell it to play it starting at a specific position, and to play for a specified amount of time. I've looked into NAudio, and got it to play and stop the mp3 file, but I can't figure out how to start at a specific position. Anybody know what I should do? 回答1: If you're using NAudio, look for a Seek method on the output stream -- the information returned from this Google search, http://www.google.com/search?q=seek+site

C# MP3 Player using winmm.dll

≯℡__Kan透↙ 提交于 2019-12-08 05:57:48
问题 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

Phonegap Media record mp3 file corrupt

末鹿安然 提交于 2019-12-08 05:13:51
问题 I am using phonegap media to record audio as mp3. After recording, it plays fine on my Android and plays fine on Windows Media Player. However, when I try it in the browser it says that the file is corrupt. Exact errors: Chrome: "We cannot play this audio file right now." Firefox: "Video can't be played because the file is corrupt." IE: Opens the file in WMP and it plays. I used the code from the example. http://docs.phonegap.com/en/2.6.0/cordova_media_media.md.html#media.startRecord //

JAVA, play mp3 by URL

十年热恋 提交于 2019-12-08 04:31:26
I would like to create player that play mp3 music from the internet by url. I tried this, but it doesn't work: import java.net.URL; import sun.audio.AudioData; import sun.audio.AudioPlayer; import sun.audio.AudioStream; import sun.audio.ContinuousAudioDataStream; public class Player { public static void main(String[] argv) throws Exception { URL url = new URL("http://stream10.jamendo.com/stream/247/mp31/07%20-%20Both%20-%20Je%20le%20veux%20aussi.mp3"); AudioStream as = new AudioStream (url.openStream()); AudioData data = as.getData(); ContinuousAudioDataStream cas = new

Looking for Wii compatible Javascript Flash mp3 player

泄露秘密 提交于 2019-12-08 02:32:27
问题 I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player? I have looked at these players: jPlayer:

Trouble playing mp3s after id3 image edit

故事扮演 提交于 2019-12-08 01:57:22
问题 Due to hardware restrictions, the software we produce tries to ensure that any audio file it imports into it's library (ready to be copied onto the hardware) is an acceptable bit rate. Recently we've started using FFmpeg to convert a number of different audio types to mp3 to allow them to be imported and used on our hardware. Whilst the conversion works fine and the mp3 files work on our hardware afterwards, we're having issues specifically when adding an album art to the ID3 tags of the mp3.

How to implement seek on mp3

大兔子大兔子 提交于 2019-12-08 01:52:52
问题 I am about to get into a project that involves decoding + playing an mp3 stream. I have a Java decoder (JLayer), but as far as I can see it has no seek functionality (I don't use the built in player, I need to implement my own player). Also, the stream is encrypted, so I need to decrypt + decode in real time - can't have an entire decrypted file. So how do you approach seeking on mp3 stream? I would like to set a time value, and get the appropriate offset in the file to decode from. Please