Updated Android audio log messages
This commit is contained in:
@@ -320,7 +320,7 @@ static bool BuildAAudioStream(SDL_AudioDevice *device)
|
|||||||
ctx.AAudioStreamBuilder_setPerformanceMode(builder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY);
|
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.freq, SDL_AUDIO_BITSIZE(device->spec.format),
|
||||||
device->spec.channels, SDL_AUDIO_ISBIGENDIAN(device->spec.format) ? "BE" : "LE", device->sample_frames);
|
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;
|
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.freq, SDL_AUDIO_BITSIZE(device->spec.format),
|
||||||
device->spec.channels, SDL_AUDIO_ISBIGENDIAN(device->spec.format) ? "BE" : "LE", device->sample_frames, hidden->num_buffers);
|
device->spec.channels, SDL_AUDIO_ISBIGENDIAN(device->spec.format) ? "BE" : "LE", device->sample_frames, hidden->num_buffers);
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ static bool OPENSLES_CreatePCMRecorder(SDL_AudioDevice *device)
|
|||||||
// Update the fragment size as size in bytes
|
// Update the fragment size as size in bytes
|
||||||
SDL_UpdatedAudioDeviceFormat(device);
|
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.freq, SDL_AUDIO_BITSIZE(device->spec.format),
|
||||||
device->spec.channels, (device->spec.format & 0x1000) ? "BE" : "LE", device->sample_frames);
|
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
|
// Update the fragment size as size in bytes
|
||||||
SDL_UpdatedAudioDeviceFormat(device);
|
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.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);
|
device->spec.channels, (device->spec.format & 0x1000) ? "BE" : "LE", device->sample_frames);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user