mp3lib



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/07/2008 at 21:55, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   10 
    Platform:      
    Language(s) :     C++  ;

    ---------
    Before i throw myself into writing one, has anyone done that already and would be willing to contribute? Would need smth that reads an mp3 and returns BaseSound...

    I'm not to fond on all the open source mp3 libraries since i've no idea how they will work on macos and with the api...

    cheers,
    Miha



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/07/2008 at 06:09, xxxxxxxx wrote:

    The Sound track (BaseSound) doesn't support mp3 so not even an mp3 library will help here unless you want to do a full implementation of a plugin track with audio playback. It is unusual since C4D uses the QuickTime library which is fully capable of handling mp3 files.

    Now, it may be possible to convert the mp3 into one of the accepted formats (WAV or AIFF) and then reference the resulting file. If the mp3lib is supported on Windows and MacOS you should have no problems using it with the SDK. I use both zlib and libpng in my plugins.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/07/2008 at 09:18, xxxxxxxx wrote:

    I was thinking more in the direction of decoding an mp3 and setting the samples in a basesound object... I don't see why that wouldn't work...



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/07/2008 at 11:04, xxxxxxxx wrote:

    You could do that - it will be the *very* long way as you can see that only one sample at a time can be set. And you'll need access to the audio sound sample data not just the internal mp3 data. So, if you can get an mp3 library that provides this, you should be on your way.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/07/2008 at 11:48, xxxxxxxx wrote:

    well in every frame the header tells you exactly what you need to decode the audio data correctly, so in theory it should be a piece of cake, but would take quite some time to study all the details... I guess i'll try to find a working lib first :) Still if smth like that was written using the c4d api it might be useful to someone else too.


Log in to reply