Trying to understand some random excerpts of coding. I believe is C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ScottDay96
    New Member
    • May 2014
    • 10

    Trying to understand some random excerpts of coding. I believe is C++

    These codes were given to me by a friend and asked if i could understand any of it. It links to a piece of music somehow(?). It is slightly mashed together but should link together in some way. I know this seems like an impossible task with little/no context. Thanks for any light you may be able to shed on this situation.
    Code:
    ~0x000F
    Code:
    s1: 0xFFF0 s2: 0x000F
    Code:
    s1=s&0xFFF0;s2=s&0x000F<<12
    Code:
    double scaled = double(samples2[(i*ch2)%count2])/65535.0;
    mixSamples[i] = (samples1[(i%count1)*ch1]&0xFFF0) | (unsigned short)(scaled*15);
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Maybe the best thing is for you to tell me what you this this code means. I don't want to write a huge explanation when the answers are in any C++ textbook.

    Comment

    Working...