justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: How do I properly use doublesToPcm for 24 bit data?
Asked by fkbash (79.130.172.x) on July 19 2017, 8:17am
Reply on July 19 2017, 1:32pm:
    Assuming input and output are planar (not interleaved):
    for (x=0;x<nch;x++)
      doublesToPcm(double_ptr[x], 1, num_samples, char_ptr[x], 24, 1,0);
    
    If interleaved, then:
    for (x=0;x<nch;x++)
      doublesToPcm(double_ptr+x, nch, num_samples, char_ptr + 3*x, 24, nch,0);
    

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS