Author Topic: Record MP3?  (Read 7483 times)

willsmith2050

  • Posts: 8
Record MP3?
« on: 6 Aug '03 - 21:18 »
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

  • Posts: 960
Re: Record MP3?
« Reply #1 on: 6 Aug '03 - 21:20 »
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

  • Posts: 8
Re: Record MP3?
« Reply #2 on: 7 Aug '03 - 12:27 »
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

  • Posts: 8
Re: Record MP3?
« Reply #3 on: 7 Aug '03 - 12:33 »
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

  • Administrator
  • Posts: 20433
Re: Record MP3?
« Reply #4 on: 7 Aug '03 - 12:55 »
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 :)

willsmith2050

  • Posts: 8
Re: Record MP3?
« Reply #5 on: 7 Aug '03 - 14:43 »
Thanks Ian.

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: Record MP3?
« Reply #6 on: 9 Aug '03 - 12:21 »
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

  • Posts: 48
Re: Record MP3?
« Reply #7 on: 9 Aug '03 - 16:04 »
Delphi conversion of Rectest.exe posted to Ian.

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: Record MP3?
« Reply #8 on: 11 Aug '03 - 12:31 »
Delphi and VB translations are now in the BASSenc ZIP, courtesy of Suathd and Jobby.