From 4b6640e6e7f77aabe6d6b678f214dfdc02536f42 Mon Sep 17 00:00:00 2001 From: user597 Date: Thu, 8 Jan 2015 09:18:46 +0100 Subject: [PATCH 1/9] adding flv to audio_extensions --- src/spek-window.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spek-window.cc b/src/spek-window.cc index 404d483..524ed7c 100644 --- a/src/spek-window.cc +++ b/src/spek-window.cc @@ -196,6 +196,7 @@ static const char *audio_extensions[] = { "au", "dts", "flac", + "flv", "gsm", "m4a", "m4p", From 74800f14b30ee13c5bc08d98e814ebc9c95141f3 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Mon, 25 May 2015 19:51:52 -0700 Subject: [PATCH 2/9] i18n: Update French translation Signed-off-by: Alexander Kojevnikov --- LICENCE.md | 1 + po/fr.po | 43 ++++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/LICENCE.md b/LICENCE.md index 4566b90..35d2935 100644 --- a/LICENCE.md +++ b/LICENCE.md @@ -37,6 +37,7 @@ Translators: * Tero Talvio * Tiago Rinaldi * Toms Zvīnis +* Vincent A * Wasilis Mandratzis * Wouter Bolsterlee * Many more (let me know if you translated Spek and want your full name diff --git a/po/fr.po b/po/fr.po index 8ee1e9d..5a362d6 100644 --- a/po/fr.po +++ b/po/fr.po @@ -4,16 +4,17 @@ # # Translators: # Alexander Kojevnikov , 2011-2012 -# flz , 2011 +# flz , 2011 # FoeNyx , 2011 # PegHorse , 2012 +# Vincent A , 2015 msgid "" msgstr "" "Project-Id-Version: Spek\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-11 10:26-0700\n" -"PO-Revision-Date: 2013-11-20 10:50+0000\n" -"Last-Translator: Alexander Kojevnikov \n" +"POT-Creation-Date: 2014-03-29 13:05-0700\n" +"PO-Revision-Date: 2015-03-25 22:57+0000\n" +"Last-Translator: Vincent A \n" "Language-Team: French (http://www.transifex.com/projects/p/spek/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -145,72 +146,72 @@ msgstr "-00 dB" msgid "Spek - Acoustic Spectrum Analyser" msgstr "Spek - Analyseur de Spectre Acoustique" -#: ../src/spek-window.cc:95 +#: ../src/spek-window.cc:91 msgid "&File" msgstr "&Fichier" -#: ../src/spek-window.cc:101 +#: ../src/spek-window.cc:97 msgid "&Edit" msgstr "É&dition" -#: ../src/spek-window.cc:105 ../src/spek-window.cc:110 +#: ../src/spek-window.cc:101 ../src/spek-window.cc:106 msgid "&Help" msgstr "Aid&e" -#: ../src/spek-window.cc:133 +#: ../src/spek-window.cc:128 msgid "Help" msgstr "Aide" -#: ../src/spek-window.cc:147 +#: ../src/spek-window.cc:141 msgid "A new version of Spek is available, click to download." msgstr "Une nouvelle version de Spek est disponible, cliquez pour la télécharger." #. TRANSLATORS: window title, %s is replaced with the file name -#: ../src/spek-window.cc:185 +#: ../src/spek-window.cc:179 #, c-format msgid "Spek - %s" msgstr "Spek - %s" -#: ../src/spek-window.cc:232 +#: ../src/spek-window.cc:226 msgid "All files" msgstr "Tous les fichiers" -#: ../src/spek-window.cc:234 +#: ../src/spek-window.cc:228 msgid "Audio files" msgstr "Fichiers audio" -#: ../src/spek-window.cc:248 +#: ../src/spek-window.cc:242 msgid "Open File" msgstr "Ouvrir un fichier" -#: ../src/spek-window.cc:270 +#: ../src/spek-window.cc:264 msgid "PNG images" msgstr "Images PNG" -#: ../src/spek-window.cc:276 +#: ../src/spek-window.cc:270 msgid "Save Spectrogram" msgstr "Sauvegarder le spectrogramme" #. Suggested name is .png -#: ../src/spek-window.cc:284 +#: ../src/spek-window.cc:278 msgid "Untitled" msgstr "Sans titre" #. TRANSLATORS: Add your name here -#: ../src/spek-window.cc:331 +#: ../src/spek-window.cc:325 msgid "translator-credits" msgstr "Florent Thoumie\nAlexander Kojevnikov" -#: ../src/spek-window.cc:337 +#: ../src/spek-window.cc:331 msgid "Copyright (c) 2010-2013 Alexander Kojevnikov and contributors" -msgstr "Copyright (c) 2010-2013 Alexander Kojevnikov et contributeurs." +msgstr "Copyright (c) 2010-2015 Alexander Kojevnikov et contributeurs." -#: ../src/spek-window.cc:340 +#: ../src/spek-window.cc:334 msgid "Spek Website" msgstr "Site web de Spek" #. TRANSLATORS: the %s is the package version. -#: ../src/spek.cc:96 +#: ../src/spek.cc:94 #, c-format msgid "Spek version %s" msgstr "Spek version %s" From 0e78642990355eb3e8b5c63f63671fa1e8af2ef0 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Mon, 25 May 2015 20:32:21 -0700 Subject: [PATCH 3/9] Fix a warning --- src/spek-fft.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spek-fft.h b/src/spek-fft.h index c3ef247..52b7fdf 100644 --- a/src/spek-fft.h +++ b/src/spek-fft.h @@ -35,7 +35,7 @@ class FFTPlan { public: FFTPlan(int nbits) : - nbits(nbits), input_size(1 << nbits), output_size((1 << (nbits - 1)) + 1), + input_size(1 << nbits), output_size((1 << (nbits - 1)) + 1), input(input_size), output(output_size) {} virtual ~FFTPlan() {} @@ -52,7 +52,6 @@ protected: float *get_input() { return this->input.data(); } private: - int nbits; int input_size; int output_size; std::vector input; From 696e28b4680f895faa240aece0817fcbe8438a88 Mon Sep 17 00:00:00 2001 From: Andreas Cadhalpun Date: Sat, 9 Jan 2016 17:25:06 -0800 Subject: [PATCH 4/9] Replace deprecated FFmpeg API --- src/spek-audio.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spek-audio.cc b/src/spek-audio.cc index 7b5d2ba..2f6218a 100644 --- a/src/spek-audio.cc +++ b/src/spek-audio.cc @@ -213,7 +213,7 @@ AudioFileImpl::AudioFileImpl( this->packet.data = nullptr; this->packet.size = 0; this->offset = 0; - this->frame = avcodec_alloc_frame(); + this->frame = av_frame_alloc(); this->buffer_len = 0; this->buffer = nullptr; this->frames_per_interval = 0; @@ -227,7 +227,7 @@ AudioFileImpl::~AudioFileImpl() av_freep(&this->buffer); } if (this->frame) { - avcodec_free_frame(&this->frame); + av_frame_free(&this->frame); } if (this->packet.data) { this->packet.data -= this->offset; @@ -264,7 +264,7 @@ int AudioFileImpl::read() for (;;) { while (this->packet.size > 0) { - avcodec_get_frame_defaults(this->frame); + av_frame_unref(this->frame); auto codec_context = this->format_context->streams[this->audio_stream]->codec; int got_frame = 0; int len = avcodec_decode_audio4(codec_context, this->frame, &got_frame, &this->packet); From 0d60a2d7cb519e810a82bbf71c0b62f9282d707a Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Sat, 9 Jan 2016 17:32:37 -0800 Subject: [PATCH 5/9] Bump required lavc version --- configure.ac | 2 +- src/spek-audio.cc | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index cfb839a..d2e8b41 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AM_COND_IF([USE_VALGRIND], [use_valgrind=yes], [use_valgrind=no]) AC_CHECK_LIB(m, log10) PKG_CHECK_MODULES(AVFORMAT, [libavformat >= 53.17]) -PKG_CHECK_MODULES(AVCODEC, [libavcodec >= 53.25]) +PKG_CHECK_MODULES(AVCODEC, [libavcodec >= 55.46]) PKG_CHECK_MODULES(AVUTIL, [libavutil >= 51.17]) AM_OPTIONS_WXCONFIG diff --git a/src/spek-audio.cc b/src/spek-audio.cc index 2f6218a..b7633bc 100644 --- a/src/spek-audio.cc +++ b/src/spek-audio.cc @@ -26,17 +26,6 @@ extern "C" { #include "spek-audio.h" -// TODO: Remove these macros after Debian switches to libav 9. -#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 28, 0) -#define avcodec_free_frame av_freep -#endif -#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 25, 0) -#define AV_CODEC_ID_AAC CODEC_ID_AAC -#define AV_CODEC_ID_MUSEPACK8 CODEC_ID_MUSEPACK8 -#define AV_CODEC_ID_WMAV1 CODEC_ID_WMAV1 -#define AV_CODEC_ID_WMAV2 CODEC_ID_WMAV2 -#endif - class AudioFileImpl : public AudioFile { public: From fdd10bebd9c1dc841b9cd70ff5329e39986b7295 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Sat, 9 Jan 2016 17:35:00 -0800 Subject: [PATCH 6/9] Update authors --- LICENCE.md | 1 + src/spek-window.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/LICENCE.md b/LICENCE.md index 35d2935..b398344 100644 --- a/LICENCE.md +++ b/LICENCE.md @@ -11,6 +11,7 @@ Maintainer: Contributors: +* Andreas Cadhalpun * Colin Watson * Daniel Hams * Fabian Deutsch diff --git a/src/spek-window.cc b/src/spek-window.cc index 524ed7c..66c0032 100644 --- a/src/spek-window.cc +++ b/src/spek-window.cc @@ -314,6 +314,7 @@ void SpekWindow::on_about(wxCommandEvent&) { wxAboutDialogInfo info; info.AddDeveloper("Alexander Kojevnikov"); + info.AddDeveloper("Andreas Cadhalpun"); info.AddDeveloper("Colin Watson"); info.AddDeveloper("Daniel Hams"); info.AddDeveloper("Fabian Deutsch"); From f34188dd9d5d4e307d344e89608cad0c4421edd0 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Sun, 10 Jan 2016 18:59:30 -0800 Subject: [PATCH 7/9] debian: Update to 0.8.2-4 --- dist/debian/changelog | 6 +++++ dist/debian/control | 2 +- dist/debian/patches/ffmpeg_2.9.patch | 34 ++++++++++++++++++++++++++++ dist/debian/patches/series | 1 + 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100755 dist/debian/patches/ffmpeg_2.9.patch diff --git a/dist/debian/changelog b/dist/debian/changelog index 83ef991..b32c39c 100644 --- a/dist/debian/changelog +++ b/dist/debian/changelog @@ -1,3 +1,9 @@ +spek (0.8.2-4) unstable; urgency=low + + * Fix build with FFmpeg 2.9 (Closes: #803861) + + -- Alexander Kojevnikov Sun, 10 Jan 2016 17:52:24 -0800 + spek (0.8.2-3.2) unstable; urgency=medium * Build using the default GCC. Closes: #751331. diff --git a/dist/debian/control b/dist/debian/control index 97d51c0..411c526 100644 --- a/dist/debian/control +++ b/dist/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9), libavutil-dev (>= 6:0.8), libwxgtk3.0-dev, wx-common -Standards-Version: 3.9.5 +Standards-Version: 3.9.6 Homepage: http://spek.cc/ Vcs-Git: git://github.com/alexkay/spek.git Vcs-Browser: https://github.com/alexkay/spek diff --git a/dist/debian/patches/ffmpeg_2.9.patch b/dist/debian/patches/ffmpeg_2.9.patch new file mode 100755 index 0000000..e5c493a --- /dev/null +++ b/dist/debian/patches/ffmpeg_2.9.patch @@ -0,0 +1,34 @@ +Description: Replace deprecated FFmpeg API +Author: Andreas Cadhalpun +Last-Update: <2015-11-02> + +--- spek-0.8.2.orig/src/spek-audio.cc ++++ spek-0.8.2/src/spek-audio.cc +@@ -199,7 +199,7 @@ AudioFileImpl::AudioFileImpl( + this->packet.data = nullptr; + this->packet.size = 0; + this->offset = 0; +- this->frame = avcodec_alloc_frame(); ++ this->frame = av_frame_alloc(); + this->buffer_size = 0; + this->buffer = nullptr; + this->frames_per_interval = 0; +@@ -215,7 +215,7 @@ AudioFileImpl::~AudioFileImpl() + if (this->frame) { + // TODO: Remove this check after Debian switches to libav 9. + #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0) +- avcodec_free_frame(&this->frame); ++ av_frame_free(&this->frame); + #else + av_freep(&this->frame); + #endif +@@ -255,7 +255,7 @@ int AudioFileImpl::read() + + for (;;) { + while (this->packet.size > 0) { +- avcodec_get_frame_defaults(this->frame); ++ av_frame_unref(this->frame); + auto codec_context = this->format_context->streams[this->audio_stream]->codec; + int got_frame = 0; + int len = avcodec_decode_audio4(codec_context, this->frame, &got_frame, &this->packet); + diff --git a/dist/debian/patches/series b/dist/debian/patches/series index 8215fd9..a1e29d9 100644 --- a/dist/debian/patches/series +++ b/dist/debian/patches/series @@ -1,2 +1,3 @@ fix-compilation-with-libav-8.patch +ffmpeg_2.9.patch From 8c1eb667759e0cdfdc55f3fe57d91b301f8dd394 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Mon, 18 Jan 2016 22:19:37 -0800 Subject: [PATCH 8/9] Move downloads from googlecode to github --- README.md | 8 ++++---- web/index.html | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d6d2579..9d92168 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,13 @@ Bugfixes: Spek 0.8.2 tarball: - * + * Windows and Mac OS X binaries: - * - * - * + * + * + * Unix packages: diff --git a/web/index.html b/web/index.html index f3420a3..1a4d1a9 100644 --- a/web/index.html +++ b/web/index.html @@ -89,9 +89,9 @@ Unix - spek-0.8.2.tar.xz (168 KiB) + spek-0.8.2.tar.xz (168 KiB)
- instructions + instructions
manual @@ -103,11 +103,11 @@ Windows - spek-0.8.2.msi (8.47 MiB) + spek-0.8.2.msi (8.47 MiB)
- spek-0.8.2.zip (8.35 MiB) + spek-0.8.2.zip (8.35 MiB)
- instructions + instructions @@ -117,9 +117,9 @@ Mac OS X - spek-0.8.3.dmg (6.03 MiB) + spek-0.8.3.dmg (6.03 MiB)
- instructions + instructions From 28c9ac4ea8ad2ca5f3f10d485ed481da0bfd9e40 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Brown" Date: Wed, 2 Mar 2016 21:17:49 -0500 Subject: [PATCH 9/9] Various small fixes: Correct build documentation, update broken links, and use HTTPS where possible. --- INSTALL.md | 12 ++++++------ README.md | 2 +- dist/osx/README.md | 2 +- dist/win/README.md | 2 +- web/index.html | 12 ++++++------ 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 206d778..b442869 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -20,12 +20,12 @@ Spek requires OS X 10.5+ and an Intel-based Mac. ### Binary packages - * Arch: [spek](http://aur.archlinux.org/packages.php?ID=38001) and - [spek-git](http://aur.archlinux.org/packages.php?ID=37252) - * Debian: [spek](http://packages.debian.org/search?keywords=spek) + * Arch: [spek](https://aur.archlinux.org/packages/spek/) and + [spek-git](https://aur.archlinux.org/packages/spek-git/) + * Debian: [spek](https://packages.debian.org/search?keywords=spek) * Fedora: [RPMFusion package](https://bugzilla.rpmfusion.org/show_bug.cgi?id=1718) - * FreeBSD: [audio/spek](http://www.freshports.org/audio/spek/) - * Gentoo: [media-sound/spek](http://packages.gentoo.org/package/media-sound/spek) + * FreeBSD: [audio/spek](https://www.freshports.org/audio/spek/) + * Gentoo: [media-sound/spek](https://packages.gentoo.org/packages/media-sound/spek) * Ubuntu: [spek](http://packages.ubuntu.com/search?keywords=spek) ### Building from the tarball @@ -54,5 +54,5 @@ Or install it with: git clone git://github.com/alexkay/spek.git cd spek - /autogen.sh + ./autogen.sh make diff --git a/README.md b/README.md index 9d92168..63ec0d2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Find out more about Spek on its website: Spek 0.8.2 is part of beta 0.x releases, leading up to a stable 1.0 release (hopefully) later this year. The roadmap is available on -[GitHub](https://github.com/alexkay/spek/issues/milestones). +[GitHub](https://github.com/alexkay/spek/milestones). New features since 0.7: diff --git a/dist/osx/README.md b/dist/osx/README.md index df6eb0b..b019c0a 100644 --- a/dist/osx/README.md +++ b/dist/osx/README.md @@ -1,6 +1,6 @@ # Building the OS X bundle -Using [MacPorts](http://www.macports.org/) install build dependencies: +Using [MacPorts](https://www.macports.org/) install build dependencies: port install autoconf automake gcc48 git-core intltool upx yasm diff --git a/dist/win/README.md b/dist/win/README.md index c13d782..716b2d7 100644 --- a/dist/win/README.md +++ b/dist/win/README.md @@ -17,5 +17,5 @@ Build Spek, adjusting `bundle.sh` variables as necessary: ./dist/win/bundle.sh For the second step, you will need a Windows box with -[WiX](http://wix.sourceforge.net/) installed. Copy over the entire `dist/win` +[WiX](http://wixtoolset.org/) installed. Copy over the entire `dist/win` directory and run `bundle.bat`. diff --git a/web/index.html b/web/index.html index 1a4d1a9..957dced 100644 --- a/web/index.html +++ b/web/index.html @@ -1,6 +1,6 @@ - + Spek – Free Acoustic Spectrum Analyzer / Spectrogram Viewer @@ -32,12 +32,12 @@

Spek – Acoustic Spectrum AnalyserSpek logo

-

Spek (IPA: /spɛk/, ‘bacon’ in Dutch) helps to analyse your audio files by showing their spectrogram. Spek is free software available for Unix, Windows and Mac OS X.

+

Spek (IPA: /spɛk/, ‘bacon’ in Dutch) helps to analyse your audio files by showing their spectrogram. Spek is free software available for Unix, Windows and Mac OS X.