Thread: Get Started with lame

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    12

    Question Get Started with lame

    Hi All,
    I want to make single file encoder with lame_enc.dll.
    I have DLL Manual and it tells me steps to follow is to fill BE_CONFIG and going with other stuffs. I'm newbee with this and I need help to get started.

    Google didn't help me much, I tried in other places with no avail. I hope someone here will give me a shoulder of help to get started with this library.

    Thanks for your precious time

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Would you care to point out the URL where this manual can be obtained?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Elysia View Post
    Would you care to point out the URL where this manual can be obtained?
    Wow, Google much? :P Lame-Enc DLL Manual
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Can't be bothered. After all, the OP came to ask us for help
    Last edited by Elysia; 08-27-2009 at 04:40 AM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Elysia View Post
    Can't be bothered. After all, the OP came to ask us of help
    Ya, I realized you were implying he should have posted it himself.. after I hit the submit button.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    OK, so you have to fill the structure with information and pass it to beInitStream. Any specific part you don't understand?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Feb 2009
    Posts
    12

    Thumbs up

    How to fil it. I find variables to fill but I don't see where to get it.
    Is BE_CONFIG defined somewhere I dont see? I remember looking at akrip Manual and all structs in it were defined. But where I can get in depth information. Once I get passed this I can start wrtting codes

    Code::Blocks!
    Yes sir!
    Get ready to fire anytime the experts gives an answer!
    Right sir!

    Thanks guys for your precious time.

  8. #8
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by evstevemd View Post
    How to fil it. I find variables to fill but I don't see where to get it.
    Is BE_CONFIG defined somewhere I dont see? I remember looking at akrip Manual and all structs in it were defined. But where I can get in depth information. Once I get passed this I can start wrtting codes

    Code::Blocks!
    Yes sir!
    Get ready to fire anytime the experts gives an answer!
    Right sir!

    Thanks guys for your precious time.
    You need to include the interface header into your source and use that.

    Here's the latest download: Download LAME (Lame Aint an MP3 Encoder) from SourceForge.net

    In the "Dll" folder you want "BladeMP3EncDLL.h", link the DLL (via .def apparently) and there's an example there. Look up the name "lame" "blademp3" and the function names on Google Code, Koders, or any other code library for more examples.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Quote Originally Posted by evstevemd View Post
    How to fil it. I find variables to fill but I don't see where to get it.
    Is BE_CONFIG defined somewhere I dont see? I remember looking at akrip Manual and all structs in it were defined. But where I can get in depth information. Once I get passed this I can start wrtting codes

    Code::Blocks!
    Yes sir!
    Get ready to fire anytime the experts gives an answer!
    Right sir!

    Thanks guys for your precious time.
    That's very comical, but humor won't get you anywhere.

    Can you post the code you're having trouble with?

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    From what I understand, there's a single header file (not confirmed). So you would include this to get all the types.
    Then the manual says you must create a struct of type BE_CONFIG (LHV1), and fill it in. So something like:

    Code:
    #include <lame_header.h>
    BE_CONFIG config = {};
    config.dwConfig = BE_CONFIG_LAME;
    config.LHV1.dwStructVersion = 1;
    config.LHV1.dwStructSize = sizeof(config);
    // ...
    And so on.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Feb 2009
    Posts
    12

    Talking

    Quote Originally Posted by Sebastiani View Post
    That's very comical, but humor won't get you anywhere.

    Can you post the code you're having trouble with?
    That is my way of talking.
    If you read careful I failed to write code because I was having no place to put my feet.
    Once I get that place journey will begin

  12. #12
    Registered User
    Join Date
    Feb 2009
    Posts
    12

    Thumbs up

    Quote Originally Posted by Elysia View Post
    From what I understand, there's a single header file (not confirmed). So you would include this to get all the types.
    Then the manual says you must create a struct of type BE_CONFIG (LHV1), and fill it in. So something like:

    Code:
    #include <lame_header.h>
    BE_CONFIG config = {};
    config.dwConfig = BE_CONFIG_LAME;
    config.LHV1.dwStructVersion = 1;
    config.LHV1.dwStructSize = sizeof(config);
    // ...
    And so on.
    Thanks sir
    At least I start seeing something. I had no Idea.
    Thanks alot

  13. #13
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Sure. Now if you would read the manual and continue filling the struct with relevant information. That would be the first step.
    If you don't understand something in the manual, feel free to check back.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    Registered User
    Join Date
    Feb 2009
    Posts
    12
    I dedicated my life to helping others
    I understand now what that means :lol:
    You are good, not only to help, but also how to help!

  15. #15
    Registered User
    Join Date
    Feb 2009
    Posts
    12
    Another question, how can I get .lib file to link with DLL?
    I have read that it will easy my code but I cannot see it (Downloaded from divers of sources)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help getting started..matrices
    By BobDole11 in forum C Programming
    Replies: 7
    Last Post: 11-15-2008, 09:51 PM
  2. Templates and Macros plus more...
    By Monkeymagic in forum C++ Programming
    Replies: 8
    Last Post: 01-20-2007, 05:53 PM
  3. Help getting started :(
    By blackocellaris in forum C Programming
    Replies: 4
    Last Post: 11-05-2006, 06:50 PM
  4. Getting Started
    By UnclePunker in forum Game Programming
    Replies: 3
    Last Post: 04-11-2003, 12:34 PM
  5. How to get started?
    By anoopks in forum Linux Programming
    Replies: 0
    Last Post: 01-14-2003, 03:48 AM