0
0

Is there any way to rip a CD track directly to the MP3 format so I don’t have to rip to WAVE and then encode it to MP3? Thanks.

  • You must to post comments
0
0

[quote="Paranoid_Android":1wlpojl4]hmmm, well, it looks like I can’t use lame_enc.dll in VB without a DLL wrapper! Does anybody have a wrapper for the LAME encoder?[/quote:1wlpojl4]

Yes, i ve heavily modified lame/vorbis dll to get them working with VB, i ve started a simple encoder but i switched to PureBasic, so if you want, i can link you this unfinished “project”. But be warned : the code is really not optimised or well coded … but it works :)

  • You must to post comments
0
0

I can’t download your zip file :)
Btw, this module was written a long time ago, just to understand how to read idtag2, i added writing and reading/writing idtag 1 as an extra, the code wasn’t meant to be used as a well coded example, though i think there are some ways the code could be optimised :)
I ve some code reading the mp3 header wich can be found [url=http://starnetasso.free.fr/Upload/IdTags-PB.rar:yoeq5ew5]here[/url:yoeq5ew5]. It is written in PureBasic but it could easily converted to VB. The reader is very accurate (adapted from Foobar2000/MpgLib), read vbr, read some corrupted mp3 …

Some notes :

  • << = vbShiftLeft
  • >> = vbShiftRight
  • Put a mp3 renamed to “test.mp3”
  • mmhhh nothing else ๐Ÿ˜†
  • You must to post comments
0
0

I’ve replaced all lame_enc.dll’s in my computer with the one in your example so it couldn’t be that I have another lame_enc.dll in my path. Even your example is giving me the “Bad dll calling convention” error. Maybe you are using a different dll than the on in the rar archive, check to make sure the dll included in the archive is the correct one.

  • You must to post comments
0
0

hmmm, well, thanks for the input Ken, but its already been said that I’m doing CD ripping with FMOD and LAME, and I’ve halted it at the moment. :roll: But thanks anyways! ๐Ÿ˜†

  • You must to post comments
0
0

Karlkox:
Ok, how “unfinished” is it exactly? ๐Ÿ˜† hehe, yeah, if you can drop it to me via email and I’ll take a look at it.

  • You must to post comments
0
0

[quote="KarLKoX":3gzpj9dl]I can’t download your zip file :)
Btw, this module was written a long time ago, …[/quote:3gzpj9dl]

ah yes, thanks … thats way better!

PS: i also found something very interesting … but its not open source
try to search the net for audioGenie … it’s an ocx which reads/writes
a lot of tag and reads a hell lot of file infos of audio files …
(Good for comparison of own code functions…)

  • You must to post comments
0
0

Ok, i can reproduce it : try it out of the ide and execute the binary, i don’t know why it occure from the ide (??)

  • You must to post comments
0
0

I’ve translated the VB module to Delphi and made a working Lame sample.
It’s using a DSP-callback
Download it [url]http://home.tiscali.nl/tanaskoski/MP3Delphi.zip]Here[/url][/url]

  • You must to post comments
0
0

[url=http://starnetasso.free.fr/Upload/EncoderVB.rar:14v79xfs]Here[/url:14v79xfs] is the sourcecode :)

  • You must to post comments
0
0

I hate ocx :roll:
Btw, i prefer to code it by myself as i don’t code in VB anymore :)

  • You must to post comments
0
0

Ahh, you are right, in the IDE I always get the error, but when i compile your example it works fine with lame_enc.dll. That’s odd, see if you can figure out why it doesn’t work in the IDE.

  • You must to post comments
0
0

[quote="/Chris":1ecvnpx0]I’ve translated the VB module to Delphi and made a working Lame sample.
It’s using a DSP-callback
Download it [url]http://home.tiscali.nl/tanaskoski/MP3Delphi.zip]Here[/url][/url][/quote:1ecvnpx0]

๐Ÿ˜ณ
The right link: [url:1ecvnpx0]http://home.tiscali.nl/tanaskoski/MP3Delphi.zip[/url:1ecvnpx0]

  • You must to post comments
0
0

Ok, I’ve looked at your example and wrote a DSP callback, but what I’m having trouble with is writing to a file. Whenever I write to a file it opens it, writes a chunk of data, and then closes it. But then when I open it again to write another chunk of data it erases all the data that was there before. So, I’m having trouble writing to a file inside a DSP callback, because unlike your example I’m not dealing with a sample, but with a stream, so I can’t use Lock and Unlock etc. to access the pcm data. Is there a way in VB to write to the end of the file instead of writing over all other data?

  • You must to post comments
0
0

It’s a Visual Basic problem I think.
I’ve had it with all my custom dll’s.
The only way to make it work in the ide is to put the dll’s in a path that is accessible from vb.exe (the vb directory, or windows\system for example)

  • You must to post comments
0
0

Good job, very simple to use.

  • You must to post comments
0
0

You should only open the file once, write all your data to it and then close it when you’re done. You don’t need to open and close it each time you write a chunk.

  • You must to post comments
0
0

Well, puting it in the system folder doesnt work, hehe. Karlkox, I dont understand the lame_enc.dll API, how would I encode pcm data coming from a dsp unit?

  • You must to post comments
0
0

Ok, I’m having more problems with MP3 encoding in VB. I posted my example and I was wondering if you (KarLKoX) could take a look at it. The problem I’m having isnt with Lame, but whenever I start encoding I get an ilegal operation error with FMOD. And afterwards the output MP3 file is 392 Bytes, so I know its writing something out! :-?. [url=http://members.aol.com/libertyed1986/MP3Encoder.zip:23882dam]Heres[/url:23882dam] the link. Thanks!

  • You must to post comments
0
0

Ok, I’ve successfully ripped a CD track to WAV format, but when I try to use lame_enc.dll with KarLKoX’s example it gives me a “Bad DLL calling convention” error.

  • You must to post comments
0
0

the lame encoder is a bit hard to follow, I can’t figure out how to encode chunks of pcm data from a dsp callback. Does anyone know how to do this?

  • You must to post comments
Showing 1 - 20 of 39 results
Your Answer

Please first to submit.