aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/opensl.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-14 01:51:44 -0700
committerChris Robinson <[email protected]>2011-06-14 01:51:44 -0700
commitbfe09b933e7704ec888d060ea0cc6d6e41c859ca (patch)
tree1d8f671f0e98afe321a06be8a357e52fc8146b25 /Alc/opensl.c
parent823f5779e182bf81843c6ed42fa6c15d6f300b41 (diff)
Trace errors in the opensl callback
Diffstat (limited to 'Alc/opensl.c')
-rw-r--r--Alc/opensl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/opensl.c b/Alc/opensl.c
index b5fccf36..89b1d36f 100644
--- a/Alc/opensl.c
+++ b/Alc/opensl.c
@@ -169,10 +169,12 @@ static void opensl_callback(SLAndroidSimpleBufferQueueItf bq, void *context)
{
ALCdevice *Device = context;
osl_data *data = Device->ExtraData;
+ SLresult result;
aluMixData(Device, data->buffer, data->bufferSize/data->frameSize);
- (*bq)->Enqueue(bq, data->buffer, data->bufferSize);
+ result = (*bq)->Enqueue(bq, data->buffer, data->bufferSize);
+ PRINTERR(result, "bq->Enqueue");
}