Kill config.h and just force-include acconf.h in non-pch builds
This commit is contained in:
parent
dcf1270fc4
commit
1d5292fdee
218 changed files with 11 additions and 508 deletions
|
@ -152,8 +152,8 @@ OBJCXXFLAGS := $(CXXFLAGS)
|
|||
####################
|
||||
# PRECOMPILED HEADER
|
||||
####################
|
||||
ifeq (yes, $(PRECOMPILED_HEADER))
|
||||
ifdef PRECOMPILED_HEADER_NAME
|
||||
ifdef PRECOMPILED_HEADER_NAME
|
||||
ifeq (yes, $(PRECOMPILED_HEADER))
|
||||
CXXFLAGS += -include $(PRECOMPILED_HEADER_NAME) $(PCHFLAGS)
|
||||
# This hack is required until we can use the 'private' keyword (gmake 3.82) to avoid all the
|
||||
# per-object CXXFLAGS being triggered by the ($OBJ) line.
|
||||
|
@ -161,6 +161,8 @@ ifeq (yes, $(PRECOMPILED_HEADER))
|
|||
$(OBJ): | $(PRECOMPILED_HEADER_NAME).gch
|
||||
$(PRECOMPILED_HEADER_NAME).gch: CXXFLAGS = $(CXXFLAGS_GNU_MAKE_SUCKS)
|
||||
$(PRECOMPILED_HEADER_NAME).gch: $(PRECOMPILED_HEADER_NAME)
|
||||
else
|
||||
CXXFLAGS += -include acconf.h
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/ass/dialogue_parser.h"
|
||||
|
||||
#include "libaegisub/spellchecker.h"
|
||||
|
|
|
@ -5,8 +5,6 @@ Project Webpage: http://cajun-jsonapi.sourceforge.net/
|
|||
Author: Terry Caton
|
||||
***********************************************/
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
#include "libaegisub/cajun/elements.h"
|
||||
|
||||
#include "libaegisub/cajun/visitor.h"
|
||||
|
@ -62,7 +60,6 @@ public:
|
|||
virtual void Accept(Visitor& visitor) = 0;
|
||||
};
|
||||
|
||||
|
||||
template <typename ElementTypeT>
|
||||
class UnknownElement::Imp_T final : public UnknownElement::Imp
|
||||
{
|
||||
|
@ -155,7 +152,6 @@ ElementTypeT& UnknownElement::CastTo()
|
|||
void UnknownElement::Accept(ConstVisitor& visitor) const { m_pImp->Accept(visitor); }
|
||||
void UnknownElement::Accept(Visitor& visitor) { m_pImp->Accept(visitor); }
|
||||
|
||||
|
||||
bool UnknownElement::operator == (const UnknownElement& element) const
|
||||
{
|
||||
return m_pImp->Compare(*element.m_pImp);
|
||||
|
|
|
@ -192,7 +192,6 @@ void Reader::Scan(Tokens& tokens, InputStream& inputStream) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void Reader::EatWhiteSpace(InputStream& inputStream) {
|
||||
while (!inputStream.EOS() && ::isspace(inputStream.Peek()))
|
||||
inputStream.Get();
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/calltip_provider.h"
|
||||
|
||||
#include "libaegisub/ass/dialogue_parser.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief A charset converter for ISO-6937-2
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "charset_6937.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include <cassert>
|
||||
#include <map>
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include <libaegisub/charset_conv.h>
|
||||
#include <iconv.h>
|
||||
|
||||
|
@ -312,7 +310,7 @@ void IconvWrapper::Convert(const char *src, size_t srcLen, std::string &dest) {
|
|||
|
||||
dest.append(buff, sizeof(buff) - dstLen);
|
||||
} while (res == iconv_failed && errno == E2BIG);
|
||||
|
||||
|
||||
if (res == iconv_failed) {
|
||||
switch (errno) {
|
||||
case EINVAL:
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/color.h"
|
||||
|
||||
#include "parser.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/dispatch.h"
|
||||
|
||||
#include "libaegisub/util.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/file_mapping.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
||||
#include "libaegisub/access.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Hotkey handler
|
||||
/// @ingroup hotkey menu event window
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/hotkey.h"
|
||||
|
||||
#include "libaegisub/cajun/writer.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Parse JSON files and return json::UnknownElement
|
||||
/// @ingroup libaegisub io
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/json.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/kana_table.h"
|
||||
|
||||
#include <boost/range/algorithm.hpp>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/karaoke_matcher.h"
|
||||
|
||||
#include "libaegisub/kana_table.h"
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
/// @ingroup libaegisub
|
||||
///
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/keyframe.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Logging
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/log.h"
|
||||
|
||||
#include "libaegisub/cajun/elements.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Most Recently Used (MRU) Lists
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/mru.h"
|
||||
|
||||
#include "libaegisub/cajun/writer.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Option interface.
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/option.h"
|
||||
|
||||
#include "libaegisub/cajun/reader.h"
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
/// @see option_visit.h
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "option_visit.h"
|
||||
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "parser.h"
|
||||
|
||||
#include "libaegisub/color.h"
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
/// @brief Platform-independent path code
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/path.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/util.h"
|
||||
#include "libaegisub/util_osx.h"
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Framerate handling of all sorts
|
||||
/// @ingroup libaegisub video_input
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/vfr.h"
|
||||
|
||||
#include "libaegisub/charset.h"
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
|
||||
#ifdef _WIN32 // Windows specific settings
|
||||
#define HAVE_PTHREAD 1
|
||||
#else
|
||||
|
||||
// Generated by configure.in
|
||||
#include "../acconf.h"
|
||||
|
||||
#endif // _WIN32
|
|
@ -1,4 +1,6 @@
|
|||
#include "config.h"
|
||||
#ifndef _WIN32
|
||||
#include "../acconf.h"
|
||||
#endif
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief OSX Utilities
|
||||
/// @ingroup libosxutil osx
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/util_osx.h"
|
||||
|
||||
#import <ApplicationServices/ApplicationServices.h>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Unix access methods.
|
||||
/// @ingroup libaegisub unix
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/access.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/access.h"
|
||||
#include "libaegisub/fs.h"
|
||||
#include "libaegisub/io.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Unix logging
|
||||
/// @ingroup libaegisub
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cstring>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Unix utility methods.
|
||||
/// @ingroup libaegisub unix
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/util.h"
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
/// @brief Windows access methods.
|
||||
/// @ingroup libaegisub windows
|
||||
|
||||
|
||||
#include <libaegisub/access.h>
|
||||
|
||||
#include <libaegisub/fs.h>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libaegisub/fs.h"
|
||||
|
||||
#include "libaegisub/access.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief Windows utility methods.
|
||||
/// @ingroup libaegisub windows
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "libaegisub/util.h"
|
||||
|
||||
#include "libaegisub/charset_conv_win.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup utility
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "aegisublocale.h"
|
||||
|
||||
#include "options.h"
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
/// @ingroup main
|
||||
///
|
||||
|
||||
|
||||
//
|
||||
// Precompiled Header Source File for MSVC
|
||||
//
|
||||
|
|
|
@ -49,8 +49,6 @@
|
|||
// Ensure we get a consistent SDK with VS2012 + Win8 SDK
|
||||
#define _USING_V110_SDK71_ 1
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "../libaegisub/lagi_pre.h"
|
||||
|
||||
// General headers
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_attachment.h"
|
||||
|
||||
#include <libaegisub/ass/uuencode.h>
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
/// @brief Class for dialogue lines in subtitles
|
||||
/// @ingroup subs_storage
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_dialogue.h"
|
||||
#include "subtitle_format.h"
|
||||
#include "utils.h"
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup subs_storage
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_entry.h"
|
||||
|
||||
std::string const& AssEntry::GroupHeader(bool ssa) const {
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup export
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_export_filter.h"
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup export
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_exporter.h"
|
||||
|
||||
#include "ass_export_filter.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_file.h"
|
||||
|
||||
#include "ass_attachment.h"
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup subs_storage
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_karaoke.h"
|
||||
|
||||
#include "ass_dialogue.h"
|
||||
|
@ -49,7 +47,6 @@ std::string AssKaraoke::Syllable::GetText(bool k_tag) const {
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
AssKaraoke::AssKaraoke(AssDialogue *line, bool auto_split, bool normalize) {
|
||||
if (line) SetLine(line, auto_split, normalize);
|
||||
}
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
/// @ingroup subs_storage
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_dialogue.h"
|
||||
|
||||
#include "utils.h"
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_parser.h"
|
||||
|
||||
#include "ass_attachment.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup subs_storage
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_style.h"
|
||||
|
||||
#include "subtitle_format.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup style_editor
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_style_storage.h"
|
||||
|
||||
#include "ass_style.h"
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup subs_storage
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_time.h"
|
||||
|
||||
#include "utils.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <wx/bmpbuttn.h>
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
///
|
||||
/// Manage colour schemes for the audio display
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "audio_colorscheme.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
||||
#include "ass_file.h"
|
||||
|
@ -150,7 +148,6 @@ void AudioController::OnAudioProviderChanged()
|
|||
OpenAudio(agi::fs::path(audio_url));
|
||||
}
|
||||
|
||||
|
||||
void AudioController::OpenAudio(agi::fs::path const& url)
|
||||
{
|
||||
if (url.empty())
|
||||
|
@ -214,7 +211,6 @@ void AudioController::CloseAudio()
|
|||
AnnounceAudioClose();
|
||||
}
|
||||
|
||||
|
||||
bool AudioController::IsAudioOpen() const
|
||||
{
|
||||
return player && provider;
|
||||
|
@ -258,7 +254,6 @@ void AudioController::PlayRange(const TimeRange &range)
|
|||
AnnouncePlaybackPosition(range.begin());
|
||||
}
|
||||
|
||||
|
||||
void AudioController::PlayPrimaryRange()
|
||||
{
|
||||
PlayRange(GetPrimaryPlaybackRange());
|
||||
|
@ -287,7 +282,6 @@ void AudioController::PlayToEnd(int start_ms)
|
|||
AnnouncePlaybackPosition(start_ms);
|
||||
}
|
||||
|
||||
|
||||
void AudioController::Stop()
|
||||
{
|
||||
if (!IsAudioOpen()) return;
|
||||
|
@ -299,13 +293,11 @@ void AudioController::Stop()
|
|||
AnnouncePlaybackStop();
|
||||
}
|
||||
|
||||
|
||||
bool AudioController::IsPlaying()
|
||||
{
|
||||
return IsAudioOpen() && playback_mode != PM_NotPlaying;
|
||||
}
|
||||
|
||||
|
||||
int AudioController::GetPlaybackPosition()
|
||||
{
|
||||
if (!IsPlaying()) return 0;
|
||||
|
@ -338,7 +330,6 @@ void AudioController::SetVolume(double volume)
|
|||
player->SetVolume(volume);
|
||||
}
|
||||
|
||||
|
||||
int64_t AudioController::SamplesFromMilliseconds(int64_t ms) const
|
||||
{
|
||||
/// @todo There might be some subtle rounding errors here.
|
||||
|
@ -352,7 +343,6 @@ int64_t AudioController::SamplesFromMilliseconds(int64_t ms) const
|
|||
return (millisamples + 999) / 1000;
|
||||
}
|
||||
|
||||
|
||||
int64_t AudioController::MillisecondsFromSamples(int64_t samples) const
|
||||
{
|
||||
/// @todo There might be some subtle rounding errors here.
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_display.h"
|
||||
|
||||
#include "ass_time.h"
|
||||
|
@ -246,7 +244,6 @@ public:
|
|||
|
||||
const int AudioDisplayScrollbar::min_width;
|
||||
|
||||
|
||||
class AudioDisplayTimeline final : public AudioDisplayInteractionObject {
|
||||
int duration; ///< Total duration in ms
|
||||
double ms_per_pixel; ///< Milliseconds per pixel
|
||||
|
@ -940,7 +937,6 @@ void AudioDisplay::SetDraggedObject(AudioDisplayInteractionObject *new_obj)
|
|||
audio_marker.reset();
|
||||
}
|
||||
|
||||
|
||||
void AudioDisplay::SetTrackCursor(int new_pos, bool show_time)
|
||||
{
|
||||
if (new_pos == track_cursor_pos) return;
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_karaoke.h"
|
||||
|
||||
#include "include/aegisub/context.h"
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_marker.h"
|
||||
|
||||
#include "include/aegisub/context.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_ALSA
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
@ -250,7 +248,7 @@ do_setup:
|
|||
{
|
||||
int64_t orig_position = position;
|
||||
int64_t orig_ps_end_position = ps.end_position;
|
||||
|
||||
|
||||
ScopedAliveFlag playing_flag(ps.playing);
|
||||
|
||||
// Sleep a bit, or until an event
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_DIRECTSOUND
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
@ -374,4 +372,3 @@ std::unique_ptr<AudioPlayer> CreateDirectSoundPlayer(AudioProvider *provider, wx
|
|||
}
|
||||
|
||||
#endif // WITH_DIRECTSOUND
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_DIRECTSOUND
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
@ -234,14 +232,12 @@ class DirectSoundPlayer2Thread {
|
|||
/// Audio frame to end playback at
|
||||
int64_t end_frame = 0;
|
||||
|
||||
|
||||
/// Desired length in milliseconds to write ahead of the playback cursor
|
||||
int wanted_latency;
|
||||
|
||||
/// Multiplier for WantedLatency to get total buffer length
|
||||
int buffer_length;
|
||||
|
||||
|
||||
/// System millisecond timestamp of last playback start, used to calculate playback position
|
||||
DWORD last_playback_restart;
|
||||
|
||||
|
@ -364,7 +360,6 @@ void DirectSoundPlayer2Thread::Run()
|
|||
|
||||
//wx Log Debug("DirectSoundPlayer2: Created buffer of %d bytes, supposed to be %d milliseconds or %d frames", bufSize, WANTED_LATENCY*BUFFER_LENGTH, bufSize/provider->GetBytesPerSample());
|
||||
|
||||
|
||||
// Now we're ready to roll!
|
||||
SetEvent(thread_running);
|
||||
bool running = true;
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_OPENAL
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_OSS
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
@ -103,7 +101,6 @@ public:
|
|||
::close(dspdev);
|
||||
}
|
||||
|
||||
|
||||
void Play(int64_t start, int64_t count);
|
||||
void Stop();
|
||||
bool IsPlaying() { return playing; }
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_PORTAUDIO
|
||||
#include "audio_player_portaudio.h"
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_output
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_LIBPULSE
|
||||
#include "include/aegisub/audio_player.h"
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_AVISYNTH
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include <libaegisub/fs.h>
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input ffms
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_FFMS2
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
/// @brief An audio provider adapter for un-threadsafe audio providers
|
||||
/// @ingroup audio_input
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include <libaegisub/util.h>
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
||||
#include "audio_controller.h"
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
/// @brief Base classes for audio renderers (spectrum, waveform, ...)
|
||||
/// @ingroup audio_ui
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_renderer.h"
|
||||
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
|
@ -61,7 +59,6 @@ size_t AudioRendererBitmapCacheBitmapFactory::GetBlockSize() const
|
|||
return sizeof(wxBitmap) + renderer->cache_bitmap_width * renderer->pixel_height * 3;
|
||||
}
|
||||
|
||||
|
||||
AudioRenderer::AudioRenderer()
|
||||
{
|
||||
for (int i = 0; i < AudioStyle_MAX; ++i)
|
||||
|
@ -84,7 +81,6 @@ void AudioRenderer::SetMillisecondsPerPixel(double new_pixel_ms)
|
|||
ResetBlockCount();
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::SetHeight(int _pixel_height)
|
||||
{
|
||||
if (pixel_height == _pixel_height) return;
|
||||
|
@ -93,7 +89,6 @@ void AudioRenderer::SetHeight(int _pixel_height)
|
|||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::SetAmplitudeScale(float _amplitude_scale)
|
||||
{
|
||||
if (amplitude_scale == _amplitude_scale) return;
|
||||
|
@ -108,7 +103,6 @@ void AudioRenderer::SetAmplitudeScale(float _amplitude_scale)
|
|||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::SetRenderer(AudioRendererBitmapProvider *_renderer)
|
||||
{
|
||||
if (renderer == _renderer) return;
|
||||
|
@ -124,7 +118,6 @@ void AudioRenderer::SetRenderer(AudioRendererBitmapProvider *_renderer)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::SetAudioProvider(AudioProvider *_provider)
|
||||
{
|
||||
if (provider == _provider) return;
|
||||
|
@ -138,7 +131,6 @@ void AudioRenderer::SetAudioProvider(AudioProvider *_provider)
|
|||
ResetBlockCount();
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::SetCacheMaxSize(size_t max_size)
|
||||
{
|
||||
// Limit the bitmap cache sizes to 16 MB hard, to avoid the risk of exhausting
|
||||
|
@ -149,7 +141,6 @@ void AudioRenderer::SetCacheMaxSize(size_t max_size)
|
|||
cache_renderer_maxsize = max_size - 4*cache_bitmap_maxsize;
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::ResetBlockCount()
|
||||
{
|
||||
if (provider)
|
||||
|
@ -161,7 +152,6 @@ void AudioRenderer::ResetBlockCount()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
const wxBitmap *AudioRenderer::GetCachedBitmap(int i, AudioRenderingStyle style)
|
||||
{
|
||||
assert(provider);
|
||||
|
@ -180,7 +170,6 @@ const wxBitmap *AudioRenderer::GetCachedBitmap(int i, AudioRenderingStyle style)
|
|||
return bmp;
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::Render(wxDC &dc, wxPoint origin, int start, int length, AudioRenderingStyle style)
|
||||
{
|
||||
assert(start >= 0);
|
||||
|
@ -225,14 +214,12 @@ void AudioRenderer::Render(wxDC &dc, wxPoint origin, int start, int length, Audi
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void AudioRenderer::Invalidate()
|
||||
{
|
||||
for (auto& bmp : bitmaps) bmp.Age(0);
|
||||
needs_age = false;
|
||||
}
|
||||
|
||||
|
||||
void AudioRendererBitmapProvider::SetProvider(AudioProvider *_provider)
|
||||
{
|
||||
if (provider == _provider) return;
|
||||
|
@ -242,7 +229,6 @@ void AudioRendererBitmapProvider::SetProvider(AudioProvider *_provider)
|
|||
OnSetProvider();
|
||||
}
|
||||
|
||||
|
||||
void AudioRendererBitmapProvider::SetMillisecondsPerPixel(double new_pixel_ms)
|
||||
{
|
||||
if (pixel_ms == new_pixel_ms) return;
|
||||
|
@ -252,7 +238,6 @@ void AudioRendererBitmapProvider::SetMillisecondsPerPixel(double new_pixel_ms)
|
|||
OnSetMillisecondsPerPixel();
|
||||
}
|
||||
|
||||
|
||||
void AudioRendererBitmapProvider::SetAmplitudeScale(float _amplitude_scale)
|
||||
{
|
||||
if (amplitude_scale == _amplitude_scale) return;
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @brief Caching frequency-power spectrum renderer for audio display
|
||||
/// @ingroup audio_ui
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_renderer_spectrum.h"
|
||||
|
||||
#include "audio_colorscheme.h"
|
||||
|
@ -83,7 +81,6 @@ struct AudioSpectrumCacheBlockFactory {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/// @brief Cache for audio spectrum frequency-power data
|
||||
class AudioSpectrumCache
|
||||
: public DataBlockCache<float, 10, AudioSpectrumCacheBlockFactory> {
|
||||
|
@ -95,7 +92,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
AudioSpectrumRenderer::AudioSpectrumRenderer(std::string const& color_scheme_name)
|
||||
{
|
||||
colors.reserve(AudioStyle_MAX);
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
///
|
||||
/// Render a waveform display of PCM audio data
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "audio_renderer_waveform.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -67,7 +65,6 @@ AudioWaveformRenderer::~AudioWaveformRenderer()
|
|||
delete[] audio_buffer;
|
||||
}
|
||||
|
||||
|
||||
void AudioWaveformRenderer::Render(wxBitmap &bmp, int start, AudioRenderingStyle style)
|
||||
{
|
||||
wxMemoryDC dc(bmp);
|
||||
|
@ -144,7 +141,6 @@ void AudioWaveformRenderer::Render(wxBitmap &bmp, int start, AudioRenderingStyle
|
|||
dc.DrawLine(0, midpoint, rect.width, midpoint);
|
||||
}
|
||||
|
||||
|
||||
void AudioWaveformRenderer::RenderBlank(wxDC &dc, const wxRect &rect, AudioRenderingStyle style)
|
||||
{
|
||||
const AudioColorScheme *pal = &colors[style];
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
/// @brief Default timing mode for dialogue subtitles
|
||||
/// @ingroup audio_ui
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ass_dialogue.h"
|
||||
#include "ass_file.h"
|
||||
#include "ass_time.h"
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
/// @ingroup audio_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <libaegisub/signal.h>
|
||||
|
||||
#include "ass_dialogue.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_base.h"
|
||||
|
||||
#include "ass_file.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
@ -234,7 +232,6 @@ namespace Automation4 {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/// Integer only edit
|
||||
class IntEdit final : public Edit {
|
||||
wxSpinCtrl *cw;
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
/// @ingroup scripting
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua_scriptreader.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "auto4_lua_utils.h"
|
||||
|
||||
#include <boost/regex/icu.hpp>
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup video_input audio_input
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_AVISYNTH
|
||||
#include "avisynth_wrap.h"
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup main_ui
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "base_grid.h"
|
||||
|
||||
#include "include/aegisub/context.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup utility
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "charset_detect.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
@ -89,4 +87,3 @@ std::string GetEncoding(agi::fs::path const& filename) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
/// @ingroup utility
|
||||
///
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "colorspace.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "colour_button.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
#include "command.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../ass_dialogue.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../auto4_base.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../ass_dialogue.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../ass_dialogue.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../help_button.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../include/aegisub/context.h"
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../audio_controller.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../ass_dialogue.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
// Aegisub Project http://www.aegisub.org/
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include "command.h"
|
||||
|
||||
#include "../ass_dialogue.h"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue