26 May '13 - 00:26 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: wma to mp3  (Read 1104 times)
kopek
Posts: 26


« on: 5 Jan '08 - 11:34 »
Reply with quoteQuote

Hello,
How to convert wma file to mp3 ?
Second question: how to increase volume in FILE (not while listening)
Tools: Delphi, Cpp or C#,

Best regards,
kopek
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 6 Jan '08 - 13:13 »
Reply with quoteQuote

How to convert wma file to mp3 ?

You can use BASSWMA and BASSenc (with LAME) to do that, something like this...

decoder=BASS_WMA_StreamCreateFile(FALSE, "in.wma", 0, 0, BASS_STREAM_DECODE); // open WMA file for decoding
BASS_Encode_Start(decoder, "lame - out.mp3", BASS_ENCODE_AUTOFREE, NULL, NULL); // set MP3 encoder on it
while (BASS_ChannelIsActive(decoder)) { // not ended yet
BYTE buf[20000];
BASS_ChannelGetData(decoder, buf, sizeof(buf)); // process it
}
BASS_StreamFree(decoder); // free the decoder and encoder

Second question: how to increase volume in FILE (not while listening)

Assuming you're referring to the volume in the encoded output file, you could use BASS_FX's volume option to do that.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines