Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: TAK SDK 1.0.1 Header files for checking (Read 6095 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

TAK SDK 1.0.1 Header files for checking

This file contains header files in Pascal and C for my upcoming TAK SDK, which is based upon a Windows DLL:

Link removed. The SDK has been released: TAK SDK 1.0.1 released

Currently my primary programming language is (Delphi-) Pascal. Parts of my pascal header file have been translated to C by an experienced C developer, but later i have added some new features and tried to translate them to C. There is a chance that i did something wrong, especially because i never tried to compile it...

I need some help:

1) Try to compile the C-Header.

2) Check, if the C-declarations are matching the Pascal declarations.

3) Check the type definition of TtakUInt32:
Code: [Select]
#ifdef _MSC_VER
...
typedef unsigned int TtakUInt32;
#else
#error Port me!
#endif

Please report errors (or success!) in this thread. Please no discussions about general programming style...

Thank you

  Thomas

TAK SDK 1.0.1 Header files for checking

Reply #1
This file contains header files in Pascal and C for my upcoming TAK SDK, which is based upon a Windows DLL:
[attachment=2984:attachment]
Currently my primary programming language is (Delphi-) Pascal. Parts of my pascal header file have been translated to C by an experienced C developer, but later i have added some new features and tried to translate them to C. There is a chance that i did something wrong, especially because i never tried to compile it...

I need some help:

1) Try to compile the C-Header.

2) Check, if the C-declarations are matching the Pascal declarations.

3) Check the type definition of TtakUInt32:
Code: [Select]
#ifdef _MSC_VER
...
typedef unsigned int TtakUInt32;
#else
#error Port me!
#endif

Please report errors (or success!) in this thread. Please no discussions about general programming style...

Thank you

  Thomas

Ad.1. It compiles (using tak_deco_lib.h header) and links (using tak_deco_lib.lib library) without any problems under MS Visual Studio 2005 using C++ compiler and also when using Intel C++ Compiler 9.1.

Ad.2. The header file looks OK for me, but there is one thing missing (in tak_deco_lib.h file) in comparison to pascal header:
Code: [Select]
  tak_FrameSizeType_First  = tak_FrameSizeType_94_ms;
  tak_FrameSizeType_Last   = tak_FrameSizeType_16384;
  tak_FrameSizeType_Num    = tak_FrameSizeType_Last - tak_FrameSizeType_First + 1;

Ad.3. For unsinged int it propobly should be:
Code: [Select]
#ifdef _MSC_VER
...
typedef unsigned __int32 TtakUInt32;
#else
#error Port me!
#endif

PS. You can check my build to see if it works with your dll - download (exe file is in 'Win32\Release' directory, sources included).

TAK SDK 1.0.1 Header files for checking

Reply #2
Ad.1. It compiles (using tak_deco_lib.h header) and links (using tak_deco_lib.lib library) without any problems under MS Visual Studio 2005 using C++ compiler and also when using Intel C++ Compiler 9.1.

Great!

Ad.2. The header file looks OK for me, but there is one thing missing (in tak_deco_lib.h file) in comparison to pascal header:
Code: [Select]
  tak_FrameSizeType_First  = tak_FrameSizeType_94_ms;
  tak_FrameSizeType_Last   = tak_FrameSizeType_16384;
  tak_FrameSizeType_Num    = tak_FrameSizeType_Last - tak_FrameSizeType_First + 1;

Thanks for looking so careful. Those declarations are not really needed, i forgot to delete them.

Ad.3. For unsinged int it propobly should be:
Code: [Select]
#ifdef _MSC_VER
...
typedef unsigned __int32 TtakUInt32;
#else
#error Port me!
#endif

Because you wrote "probably", any other opinions?

PS. You can check my build to see if it works with your dll - download (exe file is in 'Win32\Release' directory, sources included).

I tried it and it crashed with a runtime error... Although your call of the tak_GetLibraryVersion-function looks ok. It's possible, that the *.lib isn't ok. I have neither generated it by myself nor checked it...

If you like to put more work into this, you can contact me via email and i will be happy to send you a preview of the whole SDK (including documentation) for further evaluation.

Thank you for your effort!

  Thomas

TAK SDK 1.0.1 Header files for checking

Reply #3
Any bug reports?

As expected there have been not many downloads. Has anyone of the downloaders tried to compile the C-headers? Or even checked them against the pascal declarations?

Many thanks to wisodev, who has not only compiled the headers but also written a sample decoding application based upon the sdk preview i sent him. The trouble with his first test program (reported above) had been caused by the use of unicode file names (unfortunately not directly supported by SDK 1.0.1).

I plan to release the whole SDK within the next days.

  Thomas

 

TAK SDK 1.0.1 Header files for checking

Reply #4
A foobar2000 plugin based on tak_deco_lib is fully working and passes all test of the foobar2000 decoder verifier (included in the foobar2000 SDK). It currently still uses the APE tag routines from foobar2000 instead of the ones provided in the TAK SDK (I haven't had time to port this yet). Beta release planned soon.

TAK SDK 1.0.1 Header files for checking

Reply #5
A foobar2000 plugin based on tak_deco_lib is fully working and passes all test of the foobar2000 decoder verifier (included in the foobar2000 SDK). It currently still uses the APE tag routines from foobar2000 instead of the ones provided in the TAK SDK (I haven't had time to port this yet). Beta release planned soon.

Great news! Thanks for the update. Now preparing the (full) SDK release...

TAK SDK 1.0.1 Header files for checking

Reply #6
A foobar2000 plugin based on tak_deco_lib is fully working and passes all test of the foobar2000 decoder verifier (included in the foobar2000 SDK). It currently still uses the APE tag routines from foobar2000 instead of the ones provided in the TAK SDK (I haven't had time to port this yet). Beta release planned soon.


great news, really!  but WHEN do you think to release this beta...!? as you could suggest, most of the people are only waiting for the fb2k-support of TAC to switch from whatever to this (indeed) much better codec.

greatz, FixXx

p.s.: not exactly when...but tell us (me) is it a day a week a month... so i can mentally prepare myself. 
..::l0ve is needed::..