diff Alc/backends/send.c @ 15:19ff95c69cf5

moved send.c to org file
author Robert McIntyre <rlm@mit.edu>
date Thu, 03 Nov 2011 12:08:39 -0700
parents 63312ec4a2bf
children
line wrap: on
line diff
     1.1 --- a/Alc/backends/send.c	Mon Oct 31 08:01:08 2011 -0700
     1.2 +++ b/Alc/backends/send.c	Thu Nov 03 12:08:39 2011 -0700
     1.3 @@ -1,3 +1,4 @@
     1.4 +
     1.5  #include "config.h"
     1.6  #include <stdlib.h>
     1.7  #include "alMain.h"
     1.8 @@ -304,15 +305,13 @@
     1.9    ALCdevice *recorder = (ALCdevice*) ((intptr_t)device);
    1.10    send_data *data = (send_data*)recorder->ExtraData;
    1.11    if ((ALuint)n > data->numContexts){return;}
    1.12 -  //if ((uint) samples > data->size){
    1.13 -  //  samples = (int) data->size;
    1.14 -  //}
    1.15 -  printf("Want %d samples for listener %d\n", samples, n);
    1.16 -  printf("Device's format type is %d bytes per sample,\n", 
    1.17 -	  BytesFromDevFmt(recorder->FmtType));
    1.18 -  printf("and it has %d channels, making for %d requested bytes\n", 
    1.19 -	 recorder->NumChan, 
    1.20 -	 BytesFromDevFmt(recorder->FmtType) * recorder->NumChan * samples);
    1.21 +  
    1.22 +  //printf("Want %d samples for listener %d\n", samples, n);
    1.23 +  //printf("Device's format type is %d bytes per sample,\n", 
    1.24 +  //  BytesFromDevFmt(recorder->FmtType));
    1.25 +  //printf("and it has %d channels, making for %d requested bytes\n", 
    1.26 +  //	 recorder->NumChan, 
    1.27 +  //	 BytesFromDevFmt(recorder->FmtType) * recorder->NumChan * samples);
    1.28  
    1.29    memcpy(buffer_address, data->contexts[n]->renderBuffer, 
    1.30  	 BytesFromDevFmt(recorder->FmtType) * recorder->NumChan * samples);
    1.31 @@ -327,7 +326,7 @@
    1.32  JNIEXPORT void JNICALL Java_com_aurellem_send_AudioSend_naddListener
    1.33  (JNIEnv *env, jclass clazz, jlong device){
    1.34    UNUSED(env); UNUSED(clazz);
    1.35 -  printf("creating new context via naddListener\n");
    1.36 +  //printf("creating new context via naddListener\n");
    1.37    ALCdevice *Device = (ALCdevice*) ((intptr_t)device);
    1.38    ALCcontext *new = alcCreateContext(Device, NULL);
    1.39    addContext(Device, new);
    1.40 @@ -418,8 +417,8 @@
    1.41    int channels = Device->NumChan;
    1.42  
    1.43  
    1.44 -  printf("freq = %f, bpf = %d, channels = %d, signed? = %d\n",
    1.45 -	 frequency, bitsPerFrame, channels, isSigned);
    1.46 +  //printf("freq = %f, bpf = %d, channels = %d, signed? = %d\n",
    1.47 +  //	 frequency, bitsPerFrame, channels, isSigned);
    1.48  
    1.49    jobject format = (*env)->
    1.50      NewObject(
    1.51 @@ -517,6 +516,3 @@
    1.52        break;
    1.53      }
    1.54  }
    1.55 -
    1.56 -
    1.57 -