Browse Source

Updated Android audio log messages

Sam Lantinga 11 months ago
parent
commit
e2c9a0a427
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/audio/aaudio/SDL_aaudio.c
  2. 2 2
      src/audio/openslES/SDL_openslES.c

+ 2 - 2
src/audio/aaudio/SDL_aaudio.c

@@ -320,7 +320,7 @@ static bool BuildAAudioStream(SDL_AudioDevice *device)
         ctx.AAudioStreamBuilder_setPerformanceMode(builder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY);
     }
 
-    LOGI("AAudio Try to open %u hz %u bit chan %u %s samples %u",
+    LOGI("AAudio Try to open %u hz %u bit %u channels %s samples %u",
          device->spec.freq, SDL_AUDIO_BITSIZE(device->spec.format),
          device->spec.channels, SDL_AUDIO_ISBIGENDIAN(device->spec.format) ? "BE" : "LE", device->sample_frames);
 
@@ -370,7 +370,7 @@ static bool BuildAAudioStream(SDL_AudioDevice *device)
         return false;
     }
 
-    LOGI("AAudio Actually opened %u hz %u bit chan %u %s samples %u, buffers %d",
+    LOGI("AAudio Actually opened %u hz %u bit %u channels %s samples %u, buffers %d",
          device->spec.freq, SDL_AUDIO_BITSIZE(device->spec.format),
          device->spec.channels, SDL_AUDIO_ISBIGENDIAN(device->spec.format) ? "BE" : "LE", device->sample_frames, hidden->num_buffers);
 

+ 2 - 2
src/audio/openslES/SDL_openslES.c

@@ -273,7 +273,7 @@ static bool OPENSLES_CreatePCMRecorder(SDL_AudioDevice *device)
     // Update the fragment size as size in bytes
     SDL_UpdatedAudioDeviceFormat(device);
 
-    LOGI("Try to open %u hz %u bit chan %u %s samples %u",
+    LOGI("Try to open %u hz %u bit %u channels %s samples %u",
          device->spec.freq, SDL_AUDIO_BITSIZE(device->spec.format),
          device->spec.channels, (device->spec.format & 0x1000) ? "BE" : "LE", device->sample_frames);
 
@@ -453,7 +453,7 @@ static bool OPENSLES_CreatePCMPlayer(SDL_AudioDevice *device)
     // Update the fragment size as size in bytes
     SDL_UpdatedAudioDeviceFormat(device);
 
-    LOGI("Try to open %u hz %s %u bit chan %u %s samples %u",
+    LOGI("Try to open %u hz %s %u bit %u channels %s samples %u",
          device->spec.freq, SDL_AUDIO_ISFLOAT(device->spec.format) ? "float" : "pcm", SDL_AUDIO_BITSIZE(device->spec.format),
          device->spec.channels, (device->spec.format & 0x1000) ? "BE" : "LE", device->sample_frames);