24 May '13 - 07:11 *
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: Recording to mp3 file  (Read 345 times)
Mike10Bike
Guest
« on: 29 Dec '11 - 01:09 »
Reply with quoteQuote

Hi, I just started to use bass library and I want to know how to record to mp3 file. Can someone give me example written in c++? Smiley
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #1 on: 29 Dec '11 - 16:49 »
Reply with quoteQuote

The easiest way to encode to MP3 is with the BASSenc add-on (and LAME encoder). Basically, all you need to add to your code is a BASS_Encode_Start call, something like this...

BASS_Encode_Start(channel, "lame - output.mp3", BASS_ENCODE_AUTOFREE, 0, 0);

A more complete encoded recording demonstration can be found in the RECTEST example in the BASSenc package.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines