Open .opus audio files (closes #39)

This commit is contained in:
Alexander Kojevnikov 2013-02-22 21:29:39 -08:00
parent 7fba533a9f
commit 071b4f3e50
3 changed files with 13 additions and 5 deletions

15
dist/osx/README.md vendored
View File

@ -2,7 +2,7 @@
Using [MacPorts](http://www.macports.org/) install build dependencies:
port install autoconf automake clang-3.2 git-core intltool upx yasm.
port install autoconf automake gcc47 git-core intltool upx yasm.
Download and build wxWidgets 2.9+, example configure flags:
@ -17,20 +17,27 @@ Copy the wxWidgets m4 macro to the MacPorts tree:
sudo cp $HOME/usr/share/aclocal/wxwin.m4 /opt/local/share/aclocal/
Download and build libopus, example configure flags:
./configure --prefix=$HOME/usr --disable-shared
make && make install
Download and build FFmpeg, example configure flags:
./configure --prefix=$HOME/usr --enable-gpl --enable-version3 \
./configure --prefix=$HOME/usr --enable-gpl --enable-version3 \
--enable-runtime-cpudetect --enable-pthreads \
--disable-shared --disable-debug --disable-doc \
--disable-nonfree --disable-ffmpeg --disable-ffplay \
--disable-ffprobe --disable-ffserver --disable-avdevice --disable-swscale \
--disable-postproc --disable-encoders --disable-muxers \
--disable-devices --disable-filters --disable-swresample
--disable-devices --disable-filters --disable-swresample \
--enable-libopus
make && make install
Clone and build Spek, example configure flags:
PKG_CONFIG_PATH=$HOME/usr/lib/pkgconfig ./autogen.sh --with-wx-config=$HOME/usr/bin/wx-config
PKG_CONFIG_PATH=$HOME/usr/lib/pkgconfig CXX=/opt/local/bin/g++-mp-4.7
./autogen.sh --with-wx-config=$HOME/usr/bin/wx-config
Bundle Spek:

View File

@ -81,7 +81,7 @@
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio\shell" Value="open" Type="string" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio\shell\open\command" Value="&quot;[INSTALLLOCATION]spek.exe&quot; &quot;%1&quot;" Type="string" />
<!-- Associate with file extensions -->
<?foreach ext in "3gp;aac,aif;aifc;aiff;amr;awb;ape;au;dts;flac;gsm;m4a;m4p;mp3;mp4;mp+;mpc;mpp;oga;ogg;ra;ram;snd;wav;wma;wv"?>
<?foreach ext in "3gp;aac,aif;aifc;aiff;amr;awb;ape;au;dts;flac;gsm;m4a;m4p;mp3;mp4;mp+;mpc;mpp;oga;ogg;opus;ra;ram;snd;wav;wma;wv"?>
<RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities\FileAssociations" Name=".$(var.ext)" Value="Spek.Audio" Type="string" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe\SupportedTypes" Name=".$(var.ext)" Value="" Type="string" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithList\spek.exe" Value="" Type="string" />

View File

@ -212,6 +212,7 @@ static const char *audio_extensions[] = {
"mpp",
"oga",
"ogg",
"opus",
"ra",
"ram",
"snd",