Musepack Forums  

Go Back   Musepack Forums > Main > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 20 August 2004, 01:39 pm   #1
jstembridge
Member
 
Join Date: Aug 2004
Location: England
Posts: 4
Default 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.
jstembridge is offline   Reply With Quote
Old 20 August 2004, 03:51 pm   #2
Lefungus
Procrastinator
 
Lefungus's Avatar
 
Join Date: Jul 2004
Posts: 131
Default

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
Lefungus is offline   Reply With Quote
Old 23 August 2004, 03:19 pm   #3
jstembridge
Member
 
Join Date: Aug 2004
Location: England
Posts: 4
Default

Ok, I will try and produce something usuable myself.
jstembridge is offline   Reply With Quote
Old 07 December 2004, 11:03 pm   #4
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

I'm thinking about working on this as well. Should we try and pool efforts? Have you made any progress on this?
kuniklo is offline   Reply With Quote
Old 08 December 2004, 04:47 am   #5
Seed
Musepack Nanny
 
Seed's Avatar
 
Join Date: Jul 2004
Posts: 168
Default

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.
Seed is offline   Reply With Quote
Old 08 December 2004, 05:30 am   #6
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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?
kuniklo is offline   Reply With Quote
Old 08 December 2004, 12:15 pm   #7
Seed
Musepack Nanny
 
Seed's Avatar
 
Join Date: Jul 2004
Posts: 168
Default

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.
Seed is offline   Reply With Quote
Old 08 December 2004, 04:32 pm   #8
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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 is offline   Reply With Quote
Old 10 December 2004, 07:28 pm   #9
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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 is offline   Reply With Quote
Old 11 December 2004, 10:51 pm   #10
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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.
kuniklo is offline   Reply With Quote
Old 12 December 2004, 03:07 pm   #11
Lefungus
Procrastinator
 
Lefungus's Avatar
 
Join Date: Jul 2004
Posts: 131
Default

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.
Lefungus is offline   Reply With Quote
Old 12 December 2004, 04:02 pm   #12
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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?
kuniklo is offline   Reply With Quote
Old 12 December 2004, 04:10 pm   #13
Shy
Admin
 
Shy's Avatar
 
Join Date: Jul 2004
Posts: 370
Default

Yes, I'll contact them right now.
Shy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python bindings for libmusepack piman Development 1 27 January 2005 04:59 pm


All times are GMT. The time now is 04:19 pm.


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