Ticket #4061: mc-master-add-support-for-opus-audio.patch

File mc-master-add-support-for-opus-audio.patch, 2.6 KB (added by Polleke, 9 months ago)

Ad support for opus audio

  • misc/ext.d/sound.sh

    diff -uNr mc/misc/ext.d/sound.sh mc-fork/misc/ext.d/sound.sh
    old new  
    1919    ogg) 
    2020        ogginfo "${MC_EXT_FILENAME}" 
    2121        ;; 
     22    opus) 
     23        opusinfo "${MC_EXT_FILENAME}" 
     24        ;; 
    2225    wma) 
    2326        mplayer -quiet -slave -frames 0 -vo null -ao null -identify "${MC_EXT_FILENAME}" 2>/dev/null | \ 
    2427            tail +13 || file "${MC_EXT_FILENAME}" 
     
    6164            ogg123 "${MC_EXT_FILENAME}" 
    6265        fi 
    6366        ;; 
     67    opus) 
     68        if [ -n "$DISPLAY" ]; then 
     69            (xmms "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) 
     70        else 
     71            play "${MC_EXT_FILENAME}" 
     72        fi 
     73        ;; 
    6474    midi) 
    6575        timidity "${MC_EXT_FILENAME}" 
    6676        ;; 
  • misc/filehighlight.ini

    diff -uNr mc/misc/filehighlight.ini mc-fork/misc/filehighlight.ini
    old new  
    3737    extensions=ada;asm;awk;bash;c;caml;cc;cgi;cpp;cxx;diff;erl;go;h;hh;hi;hpp;hs;inc;jasm;jav;java;js;m4;mak;mjs;ml;mli;mll;mlp;mly;pas;patch;php;phps;pl;pm;prg;py;rb;s;sas;sh;sl;st;tcl;tk;xq 
    3838 
    3939[media] 
    40     extensions=3gp;aac;ac3;ape;asf;avi;dts;flac;flv;it;m3u;m4a;m4v;med;mid;midi;mkv;mod;mol;mov;mp2;mp3;mp4;mpeg;mpg;mpl;ogg;ogv;s3m;ts;umx;vob;wav;webm;wma;wmv;xm 
     40    extensions=3gp;aac;ac3;ape;asf;avi;dts;flac;flv;it;m3u;m4a;m4v;med;mid;midi;mkv;mod;mol;mov;mp2;mp3;mp4;mpeg;mpg;mpl;ogg;ogv;opus;s3m;ts;umx;vob;wav;webm;wma;wmv;xm 
    4141 
    4242[graph] 
    4343    extensions=ai;bmp;cdr;eps;gif;ico;jpeg;jpg;omf;pcx;pic;png;rle;svg;tif;tiff;webp;wmf;xbm;xcf;xpm 
  • misc/mc.ext.in

    diff -uNr mc/misc/mc.ext.in mc-fork/misc/mc.ext.in
    old new  
    497497        Open=@EXTHELPERSDIR@/sound.sh open ogg 
    498498        View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg 
    499499 
     500shell/i/.opus 
     501        Open=@EXTHELPERSDIR@/sound.sh open opus 
     502        View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus 
     503 
    500504regex/i/\.(spx|flac)$ 
    501505        Open=@EXTHELPERSDIR@/sound.sh open common 
    502506 
  • misc/syntax/sh.syntax

    diff -uNr mc/misc/syntax/sh.syntax mc-fork/misc/syntax/sh.syntax
    old new  
    567567    keyword whole ogginfo cyan 
    568568    keyword whole open cyan 
    569569    keyword whole openvt cyan 
     570    keyword whole opusdec cyan 
     571    keyword whole opusenc cyan 
     572    keyword whole opusinfo cyan 
    570573    keyword whole pager cyan 
    571574    keyword whole pam_getenv cyan 
    572575    keyword whole paperconf cyan