Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Development (https://forum.musepack.net/forumdisplay.php?f=11)
-   -   C Bindings (https://forum.musepack.net/showthread.php?t=37)

jstembridge 20 August 2004 01:39 pm

C Bindings
 
Is it likely that there will be C bindings to libmusepack provided any time soon?

I ask as I have been intending to add muspack support to xine for a while now. libmusepack would in theory make this much easier to achieve, however there is a general policy against including any C++ code.

Lefungus 20 August 2004 03:51 pm

I'd love to add C bindings, but i fear it's a bit over my skills right now. Maybe someone will be up to the task and send them :)

jstembridge 23 August 2004 03:19 pm

Ok, I will try and produce something usuable myself.

kuniklo 07 December 2004 11:03 pm

I'm thinking about working on this as well. Should we try and pool efforts? Have you made any progress on this?

Seed 08 December 2004 04:47 am

Let us know if you need help. We can have a CVS server for this purpose if several of you wish to work on new code together.

kuniklo 08 December 2004 05:30 am

Quote:

Let us know if you need help. We can have a CVS server for this purpose if several of you wish to work on new code together.
I started working on the c version today. I don't think it's going to be too hard. I need to think a little bit about how to expose the same functionality since the current library is fairly OO, but it's not that complicated.

How can I access the CVS server?

Seed 08 December 2004 12:15 pm

When I'm convinced the community is determined to work together, rather than make 15 different versions of the XMMS plugin, there will be a CVS server available for them to use. Anyone who's interested in collaborating can start a thread and then I'll see how many really want it.

kuniklo 08 December 2004 04:32 pm

Quote:

When I'm convinced the community is determined to work together, rather than make 15 different versions of the XMMS plugin, there will be a CVS server available for them to use. Anyone who's interested in collaborating can start a thread and then I'll see how many really want it.
I hate CVS anyway. I'll put up a public darcs repository of what my work as soon as it's reached a stage that anyone would care.

kuniklo 10 December 2004 07:28 pm

I've completed the first rough conversion of libmusepack to C. The sample app code is still C++ but everything else is now pure C code. The sample program compiles and runs and produces bit-identical output to the C++ version.

You can browse the code at http://www.caddr.com/code/libmusepack/ . This url is also a darcs repository so if you have darcs you can just run:

darcs get http://www.caddr.com/code/libmusepack/

To check out a copy of the code.

I've also built doxygen docs of the code which you can find here:

http://www.caddr.com/code/libmusepack/docs...html/files.html

I'd appreciate any feedback on the new API or code layout. I'd also like to discuss some slight reorganization of the code. Is IRC still the preferred venue for this? I kind of prefer the forum since it gives people a chance to contribute that aren't in IRC and because it preserves the history of discussions.

kuniklo 11 December 2004 10:51 pm

I've done some cleanup and documentation work on the C version of libmusepack. The updated docs are available here:

http://www.caddr.com/code/libmusepack/docs/html/

Now using musepack is as simple as including one header file and calling 4 library functions. I'd appreciate any comments or suggestions on the new interface before we try to approach any other developers with this.

Lefungus 12 December 2004 03:07 pm

Thanks for your work

I think that mplayer and xine devs should look at it. After all, the C lib is mainly done for them to include musepack support in their players. So their feedback is important.

kuniklo 12 December 2004 04:02 pm

Quote:

Thanks for your work

I think that mplayer and xine devs should look at it. After all, the C lib is mainly done for them to include musepack support in their players. So their feedback is important.
Good point. Are any of you in contact with them already or should I just approach them myself?

Shy 12 December 2004 04:10 pm

Yes, I'll contact them right now.


All times are GMT. The time now is 06:02 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2019, vBulletin Solutions Inc.