mixer.c
changeset 855 a7dee77dd60f
parent 853 6657a9ff88b5
child 926 d6c9518fb5ee
     1.1 --- a/mixer.c	Tue Jun 12 13:45:37 2018 +0300
     1.2 +++ b/mixer.c	Fri Jun 15 08:32:56 2018 +0300
     1.3 @@ -182,6 +182,14 @@
     1.4              Mix_SetError("OGG support not available");
     1.5          }
     1.6      }
     1.7 +    if (flags & MIX_INIT_OPUS) {
     1.8 +        if (load_music_type(MUS_OPUS)) {
     1.9 +            open_music_type(MUS_OPUS);
    1.10 +            result |= MIX_INIT_OPUS;
    1.11 +        } else {
    1.12 +            Mix_SetError("OPUS support not available");
    1.13 +        }
    1.14 +    }
    1.15      if (flags & MIX_INIT_MID) {
    1.16          if (load_music_type(MUS_MID)) {
    1.17              open_music_type(MUS_MID);