mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Fix OpenSLES Audio_FastPlay, as it doesn't adjust samplerate anymore
This commit is contained in:
parent
2799f72dff
commit
931f21da31
@ -695,9 +695,7 @@ cc_result Audio_Poll(struct AudioContext* ctx, int* inUse) {
|
||||
}
|
||||
|
||||
cc_bool Audio_FastPlay(struct AudioContext* ctx, struct AudioData* data) {
|
||||
int channels = data->channels;
|
||||
int sampleRate = Audio_AdjustSampleRate(data);
|
||||
return !ctx->channels || (ctx->channels == channels && ctx->sampleRate == sampleRate);
|
||||
return !ctx->channels || (ctx->channels == data->channels && ctx->sampleRate == data->sampleRate);
|
||||
}
|
||||
|
||||
cc_result Audio_PlayData(struct AudioContext* ctx, struct AudioData* data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user