forked from withmorten/spek-alternative
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
14 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-artwork.cc | ||
* | ||
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <wx/artprov.h> | ||
#include <wx/iconbndl.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-artwork.h | ||
* | ||
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_ARTWORK_H_ | ||
#define SPEK_ARTWORK_H_ | ||
#pragma once | ||
|
||
#define ART_SPEK "art-spek" | ||
#define ART_OPEN "art-open" | ||
|
@@ -26,5 +7,3 @@ | |
#define ART_CLOSE "art-close" | ||
|
||
void spek_artwork_init(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-audio.cc | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
extern "C" { | ||
#define __STDC_CONSTANT_MACROS | ||
#define __STDC_LIMIT_MACROS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-audio.h | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_AUDIO_H_ | ||
#define SPEK_AUDIO_H_ | ||
#pragma once | ||
|
||
#include <memory> | ||
#include <ostream> | ||
|
@@ -76,5 +57,3 @@ inline bool operator!(AudioError error) { | |
inline std::ostream& operator<<(std::ostream& os, AudioError error) { | ||
return os << static_cast<int>(error); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-events.cc | ||
* | ||
* Copyright (C) 2012-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "spek-events.h" | ||
|
||
//IMPLEMENT_DYNAMIC_CLASS(SpekHaveSampleEvent, wxEvent) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-events.h | ||
* | ||
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_EVENTS_H_ | ||
#define SPEK_EVENTS_H_ | ||
#pragma once | ||
|
||
#include <wx/wx.h> | ||
|
||
|
@@ -33,7 +14,6 @@ class SpekHaveSampleEvent: public wxEvent | |
const float *get_values() const { return this->values; } | ||
|
||
wxEvent *Clone() const { return new SpekHaveSampleEvent(*this); } | ||
// DECLARE_DYNAMIC_CLASS(SpekHaveSampleEvent); | ||
|
||
private: | ||
int bands; | ||
|
@@ -49,5 +29,3 @@ DECLARE_EVENT_TYPE(SPEK_HAVE_SAMPLE, wxID_ANY) | |
#define SPEK_EVT_HAVE_SAMPLE(fn) \ | ||
DECLARE_EVENT_TABLE_ENTRY(SPEK_HAVE_SAMPLE, -1, -1, \ | ||
(wxObjectEventFunction) (SpekHaveSampleEventFunction) &fn, (wxObject *) NULL ), | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-fft.cc | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <cmath> | ||
|
||
#define __STDC_CONSTANT_MACROS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-fft.h | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_FFT_H_ | ||
#define SPEK_FFT_H_ | ||
#pragma once | ||
|
||
#include <memory> | ||
#include <vector> | ||
|
@@ -57,5 +38,3 @@ class FFTPlan | |
std::vector<float> input; | ||
std::vector<float> output; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-palette.cc | ||
* | ||
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "spek-palette.h" | ||
|
||
// Modified version of Dan Bruton's algorithm: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
/* spek-palette.h | ||
* | ||
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_PALETTE_H_ | ||
#define SPEK_PALETTE_H_ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
uint32_t spek_palette_spectrum(double level); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,3 @@ | ||
/* spek-pipeline.cc | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Conversion of decoded samples into an FFT-happy format is heavily | ||
* influenced by GstSpectrum which is part of gst-plugins-good. | ||
* The original code: | ||
* (c) 1999 Erik Walthinsen <[email protected]> | ||
* (c) 2006 Stefan Kost <[email protected]> | ||
* (c) 2007-2009 Sebastian Dröge <[email protected]> | ||
*/ | ||
|
||
#include <wx/intl.h> | ||
|
||
#include <assert.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-pipeline.h | ||
* | ||
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_PIPELINE_H_ | ||
#define SPEK_PIPELINE_H_ | ||
#pragma once | ||
|
||
#include <memory> | ||
#include <string> | ||
|
@@ -42,5 +23,3 @@ void spek_pipeline_close(struct spek_pipeline *pipeline); | |
std::string spek_pipeline_desc(const struct spek_pipeline *pipeline); | ||
double spek_pipeline_duration(const struct spek_pipeline *pipeline); | ||
int spek_pipeline_sample_rate(const struct spek_pipeline *pipeline); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
/* spek-platform.cc | ||
* | ||
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <cstring> | ||
|
||
#ifdef OS_OSX | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
/* spek-platform.h | ||
* | ||
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]> | ||
* | ||
* Spek is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Spek is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Spek. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef SPEK_PLATFORM_H_ | ||
#define SPEK_PLATFORM_H_ | ||
#pragma once | ||
|
||
#include <wx/string.h> | ||
|
||
|
@@ -33,5 +14,3 @@ bool spek_platform_can_change_language(); | |
|
||
// Fonts are smaller on OSX. | ||
double spek_platform_font_scale(); | ||
|
||
#endif |
Oops, something went wrong.