Record MP3?

Started by willsmith2050, 6 Aug '03 - 21:18

willsmith2050

In the "Recordtest" example included with the BASS library the result is saved as a wave file.

Can i use Bass to save the result as an mp3 file?

Will Smith

Irrational86

Nope. You cant, if you do want to save a file as MP3, you have to convert it yourself. You can use LAME to encode the file while recording. Or you can record the whole wav and then encode it to MP3 with a command line program.

willsmith2050

I found Something like that in BassEnc.

BASS_Encode_Start(channel,"lame.exe --alt-preset standard - output.mp3",0);

How does it fit in the "Recordtest" example?

willsmith2050

What i mean is:

If i Remove all the wave writing and replace
Channel with RECORDCHAN?

e.g.

BASS_Encode_Start(RECORDCHAN,"lame.exe --alt-preset standard - output.mp3",0);

would that work?

Ian @ un4seen

I expect this will be quite a common question, so I'll add a "recording to MP3/OGG" example to the BASSenc distribution... give it a couple of days :)


Ian @ un4seen

The "recording to OGG/MP3" example is now in the BASSenc ZIP file. If anyone wants to translate it to Delphi or VB, that'd be nice :D

suathd

Delphi conversion of Rectest.exe posted to Ian.

Ian @ un4seen

Delphi and VB translations are now in the BASSenc ZIP, courtesy of Suathd and Jobby.