how do I convert SInt16 to double?
how can I convert SInt16 to double or Float32 to double? I know I can convert SInt16 to Float32 like this:

    double *buffer;
    SInt16* frames;

    for (i=0; i<number_of_frames; i++ ) {

    Float32 currentFrame = frames[i] / 32768.0f;
    }

but I'm using many C functions and I want to pass data to them in double. 
    
Now I use this code:
   
    for (i=0; i<number_of_frames; i++ ) {

    Float32 currentFrame = frames[i] / 32768.0f;

    buffer[i] = currentFrame;
    }
 
but I'm not sure the result is correct..
    
   

    
how do I convert SInt16 to double?
===

how can I convert SInt16 to double or Float32 to double? I know I can convert SInt16 to Float32 like this:

    double *buffer;
    SInt16* frames;

    for (i=0; i<number_of_frames; i++ ) {

    Float32 currentFrame = frames[i] / 32768.0f;
    }

but I'm using many C functions and I want to pass data to them in double. 
    
Now I use this code:
   
    for (i=0; i<number_of_frames; i++ ) {

    Float32 currentFrame = frames[i] / 32768.0f;

    buffer[i] = currentFrame;
    }
 
but I'm not sure the result is correct..
    
   

    