Skip to content

Commit

Permalink
Dont assert on WMA buffer and FAUDIO_FORMAT_EXTENSIBLE type
Browse files Browse the repository at this point in the history
Monkey island 2.
  • Loading branch information
alesliehughes authored and flibitijibibo committed Nov 1, 2021
1 parent 825fe6b commit b591694
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,9 @@ uint32_t FAudioSourceVoice_SubmitSourceBuffer(

FAudio_assert(voice->type == FAUDIO_VOICE_SOURCE);
#ifdef HAVE_WMADEC
FAudio_assert( (voice->src.wmadec != NULL && (pBufferWMA != NULL || voice->src.format->wFormatTag == FAUDIO_FORMAT_XMAUDIO2)) ||
FAudio_assert( (voice->src.wmadec != NULL && (pBufferWMA != NULL ||
(voice->src.format->wFormatTag == FAUDIO_FORMAT_XMAUDIO2 ||
voice->src.format->wFormatTag == FAUDIO_FORMAT_EXTENSIBLE)) ||
(voice->src.wmadec == NULL && (pBufferWMA == NULL && voice->src.format->wFormatTag != FAUDIO_FORMAT_XMAUDIO2)) );
#endif /* HAVE_WMADEC */

Expand Down

0 comments on commit b591694

Please sign in to comment.