Getting ScoringInfo value inside EnterRealTime()

Discussion in 'Plugins' started by vyrush, Jan 19, 2012.

  1. vyrush

    vyrush Registered

    Joined:
    Jan 9, 2012
    Messages:
    210
    Likes Received:
    3
    I wanted to get the ScoringInfoV01.mTrackName value inside the method EnterRealTime() from struct ScoringInfoV01

    In the InternalsPlugin.hpp, I have already added

    Code:
    extern ScoringInfoV01 SInfoV01; 
    and then inside the EnterRealTime() in Example.cpp

    I have added
    Code:
    char *test = SInfoV01.mTrackName
    WriteToAllExampleOutputFiles("a",test);
    
    But this doesn't write anything to the file? What am I doing wrong?
     
  2. OS-Chris

    OS-Chris Registered

    Joined:
    Apr 5, 2011
    Messages:
    3
    Likes Received:
    0
    A structure (with data populated) is passed to the following function, just implement your code within that function
    Code:
    void ExampleInternalsPlugin::UpdateScoring( const ScoringInfoV01 &info )
    And change the following method (in the header file) to return true
    Code:
    bool WantsScoringUpdates() { return( false ); }
     
  3. vyrush

    vyrush Registered

    Joined:
    Jan 9, 2012
    Messages:
    210
    Likes Received:
    3
    thanks chris.. i can get the data in that function without any problem.. but i was wondering how to get the data in the enterrealtime function
     
  4. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    You cannot.
    You have to create new attribute: wasInEnterRealtime=false, set it to true in EnterRealtime method end test its value in UpdateScoring for doing a job you want.
     
  5. vyrush

    vyrush Registered

    Joined:
    Jan 9, 2012
    Messages:
    210
    Likes Received:
    3
    thanks maxym.. gonna try that way later tonight..
     

Share This Page