bass.dll rip audio cd

Started by AudioVideo,

AudioVideo

Hi
Can I use bass.dll only to rip audio cd? not other dlls.
If so which format is support to export? wav only? I heard maybe wma format or others maybe?
Thanks.

Chris

Hi,
for ripping is BASSCD needed.
BASS_CD_StreamCreate
https://www.un4seen.com/doc/#basscd/BASS_CD_StreamCreate.html
or
BASS_CD_StreamCreateFile

https://www.un4seen.com/doc/#basscd/BASS_CD_StreamCreateFile.html

for encoding ist bass_enc and/or one of the bass_enc_x Addons needed.

Ian @ un4seen

As Chris says, you will need BASSCD for the CD reading and BASSenc for the file writing, and optionally BASSenc_MP3/etc for encoding. For example, here's how you could convert a CD track to an MP3 file:

stream = BASS_CD_StreamCreate(drive, track, BASS_STREAM_DECODE); // create stream from a CD track
encoder = BASS_Encode_MP3_StartFile(stream, NULL, 0, "output.mp3"); // set MP3 encoder on it
for (;;) {
    BYTE buffer[50000]; // processing buffer
    int got = BASS_ChannelGetData(stream, buffer, sizeof(buffer)); // process stream (read from CD and encode it)
    if (got < 0) break; // check if ended
}
BASS_StreamFree(stream); // free stream
BASS_Encode_Stop(encoder); // free encoder

Please see the documentation for details on the mentioned functions.