how to access a sound



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

    On 08/02/2010 at 11:13, xxxxxxxx wrote:

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

    ---------
    hi there,

    can anyone point me to the right direction how i can access a sound? my idea is to have a tag with a link-field where the user can drag the sound but how do i read that linkfield and get access?

    thanks for any help,
    ello



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

    On 08/02/2010 at 13:22, xxxxxxxx wrote:

    ok, i got it by using a filename description :)



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

    On 08/02/2010 at 14:15, xxxxxxxx wrote:

    ok, now i have a nother problem. i use the following code:

      
         Filename soundfile = tag->GetData().GetFilename(SOUNDFILE);   
         AutoAlloc<BaseSound> sound;   
         if (!sound) return FALSE;   
         sound->Load(soundfile);   
         SData sdata;   
         sound->GetSample(doc->GetTime().GetFrame(doc->GetFps()),&sdata;);   
    

    and i have a test wav-file with significant base drums, but the sdata l and r contents dont fit to the file.

    my question is now: am i setting the sample position the wrong way?

    would be cool if someone could bring some light in :)

    edit: another thing i'd really like to know is how can one create a similar playback option as cinema's timeline offers??



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

    On 09/02/2010 at 11:32, xxxxxxxx wrote:

    are there any example codes i can look at??


Log in to reply