src/audio/openslES/SDL_openslES.c
changeset 12597 b5ea5997cbf9
parent 12596 6654faf2160e
child 12598 d3acc7299a95
equal deleted inserted replaced
12596:6654faf2160e 12597:b5ea5997cbf9
   270     LOGI("Try to open %u hz %u bit chan %u %s samples %u",
   270     LOGI("Try to open %u hz %u bit chan %u %s samples %u",
   271           this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format),
   271           this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format),
   272           this->spec.channels, (test_format & 0x1000) ? "BE" : "LE", this->spec.samples);
   272           this->spec.channels, (test_format & 0x1000) ? "BE" : "LE", this->spec.samples);
   273 
   273 
   274     /* configure audio source */
   274     /* configure audio source */
   275     SLDataLocator_AndroidSimpleBufferQueue loc_bufq = { SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, 2 };
   275     SLDataLocator_AndroidSimpleBufferQueue loc_bufq = { SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, NUM_BUFFERS };
   276     /* SLDataLocator_AndroidSimpleBufferQueue loc_bufq = { SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, OPENSLES_BUFFERS }; */
       
   277 
   276 
   278     format_pcm.formatType    = SL_DATAFORMAT_PCM;
   277     format_pcm.formatType    = SL_DATAFORMAT_PCM;
   279     format_pcm.numChannels   = this->spec.channels;
   278     format_pcm.numChannels   = this->spec.channels;
   280     format_pcm.samplesPerSec = this->spec.freq * 1000;  /* / kilo Hz to milli Hz */
   279     format_pcm.samplesPerSec = this->spec.freq * 1000;  /* / kilo Hz to milli Hz */
   281     format_pcm.bitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);
   280     format_pcm.bitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);