Merged with trunk
git-svn-id: svn://localhost/ardour2/branches/midi@580 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
27e00ec4e7
commit
edc7a146f5
@ -176,10 +176,13 @@ if conf.CheckCHeader('/System/Library/Frameworks/CoreMIDI.framework/Headers/Core
|
|||||||
if conf.CheckCHeader('/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h'):
|
if conf.CheckCHeader('/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h'):
|
||||||
ardour.Append(CXXFLAGS="-DHAVE_COREAUDIO")
|
ardour.Append(CXXFLAGS="-DHAVE_COREAUDIO")
|
||||||
ardour.Append(LINKFLAGS="-framework AudioToolbox")
|
ardour.Append(LINKFLAGS="-framework AudioToolbox")
|
||||||
#
|
|
||||||
|
|
||||||
|
if env['CONFIG_ARCH'] == 'apple':
|
||||||
# this next line avoids issues with circular dependencies between libardour and libardour_cp.
|
# this next line avoids issues with circular dependencies between libardour and libardour_cp.
|
||||||
# it is based on the (entirely reasonable) assumption that a system with CoreAudio is OS X
|
# it is based on the (entirely reasonable) assumption that a system with CoreAudio is OS X
|
||||||
#
|
#
|
||||||
|
print 'APPLE CONFIG'
|
||||||
ardour.Append(LINKFLAGS='-undefined suppress -flat_namespace')
|
ardour.Append(LINKFLAGS='-undefined suppress -flat_namespace')
|
||||||
extra_sources += coreaudio_files
|
extra_sources += coreaudio_files
|
||||||
|
|
||||||
@ -189,6 +192,7 @@ ardour.Merge ([
|
|||||||
libraries['core'],
|
libraries['core'],
|
||||||
libraries['xml'],
|
libraries['xml'],
|
||||||
libraries['sndfile'],
|
libraries['sndfile'],
|
||||||
|
libraries['raptor'],
|
||||||
libraries['lrdf'],
|
libraries['lrdf'],
|
||||||
libraries['samplerate'],
|
libraries['samplerate'],
|
||||||
libraries['sigc2'],
|
libraries['sigc2'],
|
||||||
|
@ -237,10 +237,10 @@ class AudioEngine : public sigc::trackable
|
|||||||
|
|
||||||
int connect_to_jack (std::string client_name);
|
int connect_to_jack (std::string client_name);
|
||||||
|
|
||||||
static void* _meter_thread (void* arg);
|
void meter_thread ();
|
||||||
void* meter_thread ();
|
void start_metering_thread ();
|
||||||
pthread_t meter_thread_id;
|
Glib::Thread* m_meter_thread;
|
||||||
void maybe_start_metering_thread ();
|
mutable gint m_meter_exit;
|
||||||
};
|
};
|
||||||
|
|
||||||
}; /* namespace ARDOUR */
|
}; /* namespace ARDOUR */
|
||||||
|
@ -58,8 +58,8 @@ class Auditioner : public AudioTrack
|
|||||||
private:
|
private:
|
||||||
AudioRegion *the_region;
|
AudioRegion *the_region;
|
||||||
jack_nframes_t current_frame;
|
jack_nframes_t current_frame;
|
||||||
atomic_t _active;
|
mutable gint _active;
|
||||||
PBD::Lock lock;
|
Glib::Mutex lock;
|
||||||
jack_nframes_t length;
|
jack_nframes_t length;
|
||||||
|
|
||||||
void drop_ports ();
|
void drop_ports ();
|
||||||
|
@ -320,7 +320,7 @@ class DiskStream : public Stateful, public sigc::trackable
|
|||||||
uint32_t _n_channels;
|
uint32_t _n_channels;
|
||||||
id_t _id;
|
id_t _id;
|
||||||
|
|
||||||
atomic_t _record_enabled;
|
mutable gint _record_enabled;
|
||||||
AudioPlaylist* _playlist;
|
AudioPlaylist* _playlist;
|
||||||
double _visible_speed;
|
double _visible_speed;
|
||||||
double _actual_speed;
|
double _actual_speed;
|
||||||
|
@ -169,9 +169,9 @@ class Playlist : public Stateful, public StateManager {
|
|||||||
RegionList regions;
|
RegionList regions;
|
||||||
string _name;
|
string _name;
|
||||||
Session& _session;
|
Session& _session;
|
||||||
atomic_t block_notifications;
|
mutable gint block_notifications;
|
||||||
atomic_t ignore_state_changes;
|
mutable gint ignore_state_changes;
|
||||||
mutable PBD::NonBlockingLock region_lock;
|
mutable Glib::Mutex region_lock;
|
||||||
RegionList pending_removals;
|
RegionList pending_removals;
|
||||||
RegionList pending_adds;
|
RegionList pending_adds;
|
||||||
RegionList pending_bounds;
|
RegionList pending_bounds;
|
||||||
|
@ -993,12 +993,12 @@ class Session : public sigc::trackable, public Stateful
|
|||||||
typedef void (Session::*process_function_type)(jack_nframes_t);
|
typedef void (Session::*process_function_type)(jack_nframes_t);
|
||||||
|
|
||||||
AudioEngine &_engine;
|
AudioEngine &_engine;
|
||||||
atomic_t processing_prohibited;
|
mutable gint processing_prohibited;
|
||||||
process_function_type process_function;
|
process_function_type process_function;
|
||||||
process_function_type last_process_function;
|
process_function_type last_process_function;
|
||||||
jack_nframes_t _current_frame_rate;
|
jack_nframes_t _current_frame_rate;
|
||||||
int transport_sub_state;
|
int transport_sub_state;
|
||||||
atomic_t _record_status;
|
mutable gint _record_status;
|
||||||
jack_nframes_t _transport_frame;
|
jack_nframes_t _transport_frame;
|
||||||
Location* end_location;
|
Location* end_location;
|
||||||
Location* start_location;
|
Location* start_location;
|
||||||
@ -1155,14 +1155,14 @@ class Session : public sigc::trackable, public Stateful
|
|||||||
bool pending_abort;
|
bool pending_abort;
|
||||||
bool pending_auto_loop;
|
bool pending_auto_loop;
|
||||||
|
|
||||||
Sample* butler_mixdown_buffer;
|
Sample* butler_mixdown_buffer;
|
||||||
float* butler_gain_buffer;
|
float* butler_gain_buffer;
|
||||||
pthread_t butler_thread;
|
pthread_t butler_thread;
|
||||||
PBD::NonBlockingLock butler_request_lock;
|
Glib::Mutex butler_request_lock;
|
||||||
pthread_cond_t butler_paused;
|
Glib::Cond butler_paused;
|
||||||
bool butler_should_run;
|
bool butler_should_run;
|
||||||
atomic_t butler_should_do_transport_work;
|
mutable gint butler_should_do_transport_work;
|
||||||
int butler_request_pipe[2];
|
int butler_request_pipe[2];
|
||||||
|
|
||||||
struct ButlerRequest {
|
struct ButlerRequest {
|
||||||
enum Type {
|
enum Type {
|
||||||
@ -1402,12 +1402,21 @@ class Session : public sigc::trackable, public Stateful
|
|||||||
static MultiAllocSingleReleasePool pool;
|
static MultiAllocSingleReleasePool pool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
<<<<<<< .working
|
||||||
//PBD::Lock midi_lock;
|
//PBD::Lock midi_lock;
|
||||||
//pthread_t midi_thread;
|
//pthread_t midi_thread;
|
||||||
//int midi_request_pipe[2];
|
//int midi_request_pipe[2];
|
||||||
atomic_t butler_active;
|
atomic_t butler_active;
|
||||||
//RingBuffer<MIDIRequest*> midi_requests;
|
//RingBuffer<MIDIRequest*> midi_requests;
|
||||||
/*
|
/*
|
||||||
|
=======
|
||||||
|
Glib::Mutex midi_lock;
|
||||||
|
pthread_t midi_thread;
|
||||||
|
int midi_request_pipe[2];
|
||||||
|
mutable gint butler_active;
|
||||||
|
RingBuffer<MIDIRequest*> midi_requests;
|
||||||
|
|
||||||
|
>>>>>>> .merge-right.r579
|
||||||
int start_midi_thread ();
|
int start_midi_thread ();
|
||||||
void terminate_midi_thread ();
|
void terminate_midi_thread ();
|
||||||
void poke_midi_thread ();
|
void poke_midi_thread ();
|
||||||
@ -1603,10 +1612,17 @@ class Session : public sigc::trackable, public Stateful
|
|||||||
int ensure_sound_dir (string, string&);
|
int ensure_sound_dir (string, string&);
|
||||||
void refresh_disk_space ();
|
void refresh_disk_space ();
|
||||||
|
|
||||||
|
<<<<<<< .working
|
||||||
atomic_t _playback_load;
|
atomic_t _playback_load;
|
||||||
atomic_t _capture_load;
|
atomic_t _capture_load;
|
||||||
atomic_t _playback_load_min;
|
atomic_t _playback_load_min;
|
||||||
atomic_t _capture_load_min;
|
atomic_t _capture_load_min;
|
||||||
|
=======
|
||||||
|
mutable gint _playback_load;
|
||||||
|
mutable gint _capture_load;
|
||||||
|
mutable gint _playback_load_min;
|
||||||
|
mutable gint _capture_load_min;
|
||||||
|
>>>>>>> .merge-right.r579
|
||||||
|
|
||||||
/* I/O Connections */
|
/* I/O Connections */
|
||||||
|
|
||||||
|
@ -116,8 +116,8 @@ class RingBuffer
|
|||||||
protected:
|
protected:
|
||||||
T *buf;
|
T *buf;
|
||||||
size_t size;
|
size_t size;
|
||||||
atomic_t write_ptr;
|
mutable gint write_ptr;
|
||||||
atomic_t read_ptr;
|
mutable gint read_ptr;
|
||||||
size_t size_mask;
|
size_t size_mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -113,8 +113,8 @@ class RingBufferNPT
|
|||||||
protected:
|
protected:
|
||||||
T *buf;
|
T *buf;
|
||||||
size_t size;
|
size_t size;
|
||||||
atomic_t write_ptr;
|
mutable gint write_ptr;
|
||||||
atomic_t read_ptr;
|
mutable gint read_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T> size_t
|
template<class T> size_t
|
||||||
|
Loading…
Reference in New Issue
Block a user