1、Wav-->Mp3?(100) 2、Mp3-->Wav?(100)(200分)

  • 主题发起人 主题发起人 wind2000
  • 开始时间 开始时间
W

wind2000

Unregistered / Unconfirmed
GUEST, unregistred user!
1、Wav-->Mp3?(100)
2、Mp3-->Wav?(100)
重赏之下必有勇,可是我没钱了,大伙将就着点吧!:(
 
你是要控件还是软件?
 
控件!
我想编个软件!
有源代码更好!
有注解最好!
 
控件不好找,我也想要。
 
用xaudio能解决这个问题.

http://www.xaudio.com
---------------------
另外有别的,我也要一份,先谢了!
 
深度历险里有一些关于mp3的原码控件
 
给我也来一份吧!
xxz007@yeah.net
 
没人知道吗???
 
高手在哪???
 
How To Convert MP3 Files To WAV Files

There may be some times when you need to convert an MP3 file back to bog standard PCM wave audio format, like, for example in a sound editing program. If you want todo
this, then
all you have todo
is use the Xaudio SDK. By the way, I said that the Xaudio SDK was free. Well, it's not.

By default, when you tell the XAudioPlayer to play, it plays the music through your soundcard. However, instead of using the standard soundcard output module, you can instruct the player to use a different output module, like the one that outputs to a file.

To set the output module to the file writer thing, youdo
something like this:

XaudioPlayer.SetOutputModule(0);


0, in this case is the ID for the "Output To File" output module.

Usually the default OutputModule ID is -1 or value XA_DECODER_OUTPUT_AUTOSELECT, which means that the player automatically sets the output module to whatever it thinks best.

Ok, the next thing todo
is to say what file you want to write to. Todo
this, you tell the output module what file to open. Like this:

XaudioPlayer.OutputOpen('e:/stuff.wav');


This will output the raw PCM data to a file called "e:/stuff.wav". However if you really want a proper WAVE file, with a wave header section at the front you need tospecify it, like this: 'wav:e:/stuff.wav'

Also, if youdo
n't want the decoder to take all your processing time as it writes your file, you should set its priority level to 2, instead of the default 4:

XAudioPlayer.Priority := 2;


Now, all you have todo
is open the input file, like so:

if OpenFileDialog.Execute then

begin

XaudioPlayer.InputOpen(OpenFileDialog.FileName);

end

The player should start playing straight away. However instead of playing through your soundcard, it plays to your harddrive. If you have the equalizer switched on, well this will effect the saved file. In fact, if you have some sort of trackbar to set the position of the music, you could "remix" the music as it gets saved to the file, though it probably will not sound too good. Trust me, I've tried.

 
多人接受答案了。
 
wind2000:
可不可以将xaudioplayer控件给我发一份来。
我的e-mail:mperson@yeah.net

 
to lingxin,to xinglong:
I have test what you tell. Ido
wnloaded this 'XAUDIOPLAYER' from 'http://www.xaudio.com'
This vcl can really translate 'mp3' to 'wav',but the 'wav' translated was not
read.If you have this example ,Will you send me your example.
thanks a lot.
my e-mail :mperson@263.net.
 
能发我一份吗,另开贴给分,vargent77@163.com
 

Similar threads

回复
0
查看
676
万一
回复
0
查看
848
不得闲
回复
0
查看
690
不得闲
后退
顶部