Skip to content

Instantly share code, notes, and snippets.

View vinniefalco's full-sized avatar
🏠
Working from home

Vinnie Falco vinniefalco

🏠
Working from home
View GitHub Profile
git clone --mirror git://github.com/vinniefalco/DSPFilters.git DSPOrig
rm -rf DSPFilters DSP1
git clone --no-hardlinks DSPOrig DSP1
cd DSP1
git filter-branch --prune-empty --index-filter 'git rm -rfq --cached --ignore-unmatch shared/DSPFIltersDemo/BUilds/MacOSInstaller/InstallerTemplate.sparseimage' HEAD
git gc --aggressive
cd ..
@vinniefalco
vinniefalco / gist:2469123
Created April 23, 2012 06:26
Explanation of juce::MidiOutput methods
void MidiOutput::sendBlockOfMessages (const MidiBuffer& buffer,
const double millisecondCounterToStartAt,
double samplesPerSecondForBuffer)
{
// You've got to call startBackgroundThread() for this to actually work..
jassert (isThreadRunning());
// this needs to be a value in the future - RTFM for this method!
jassert (millisecondCounterToStartAt > 0);
@vinniefalco
vinniefalco / gist:2483665
Created April 24, 2012 20:58
Explanation of juce::MidiOutput methods
// 发送消息块。1参:MIDI缓冲(引用型对象)。2参:开始时间(毫秒)。3参:每秒的采样数
// 本函数用于将MIDI缓冲数据发送至MIDI设备,从而发出声音。是MidiOutput类的核心函数,也是实现播放MIDI文件的功能性函数
void MidiOutput::sendBlockOfMessages (const MidiBuffer& buffer,
const double millisecondCounterToStartAt,
double samplesPerSecondForBuffer)
{
// 执行此函数之前,必须启动后台线程。如果尚未启动,则首先执行startBackgroundThread()函数,而后再调用本函数. 此处使用了一个断言。如果尚未启动后台线程,则调试时程序代码将停留在此处。
// The thread must be started before calling this function.
jassert (isThreadRunning());
@vinniefalco
vinniefalco / LevelDB Unity Source
Created June 27, 2013 22:19
This is a single .cpp file which can be added to your project to bring in LevelDB. It's easier than having to add all the individual sources to your Makefile or CMake or whatever. It also compiles much faster since its just one translation unit instead of many.
// Set the appropriate LevelDB platform macro based on our platform.
//
#if BEAST_WIN32
#define LEVELDB_PLATFORM_WINDOWS
#else
#define LEVELDB_PLATFORM_POSIX
#if BEAST_MAC || BEAST_IOS
#define OS_MACOSX
//------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <[email protected]>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
This file has been truncated, but you can view the full file.
relative_include
this_file include/boost/aligned_storage.hpp
path_found "boost/config.hpp"
this_file_rel aligned_storage.hpp
path_found_rel config.hpp
rel_path "config.hpp"
orig_line #include "boost/config.hpp"
new_line #include "config.hpp"
relative_include
namespace detail {
template <class...>
struct void_type
{
using type = void;
};
template <class... T>
using void_t = typename void_type<T...>::type;
Performing configuration checks
- 32-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
Building the Boost C++ Libraries.
D:\src\rippled\src\ripple\app\ledger\impl\InboundLedgers.cpp(274): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerConsensusImp.cpp(1165): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerConsensusImp.cpp(1854): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerConsensusImp.cpp(1885): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerConsensusImp.cpp(1934): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerMaster.cpp(635): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerMaster.cpp(988): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerMaster.cpp(1110): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerMaster.cpp(1478): catch (...)
D:\src\rippled\src\ripple\app\ledger\impl\LedgerMaster.cpp(1711): catch (...)
Vinnies-MacBook-Pro:bin vinnie$ b2 -j4
warning: No toolsets are configured.
warning: Configuring default toolset "darwin".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
error: no Jamfile in current directory found, and no target references specified.
Vinnies-MacBook-Pro:bin vinnie$ cd ..