Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    how to access a sound

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 309 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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 🙂

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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??

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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??

            1 Reply Last reply Reply Quote 0
            • First post
              Last post