JackAudioPort Class Reference

#include <JackPort.h>

Inheritance diagram for JackAudioPort:

Inheritance graph
Collaboration diagram for JackAudioPort:

Collaboration graph

List of all members.

Public Member Functions

 JackAudioPort (const string &name, bool writer)
virtual ~JackAudioPort ()

Protected Member Functions

void GetFrame (SoundFrame &frame, jack_nframes_t nframes)
void PutFrame (const SoundFrame &frame)

Detailed Description

Definition at line 52 of file JackPort.h.

Constructor & Destructor Documentation

JackAudioPort::JackAudioPort ( const string &  name,
bool  writer 
) [inline]

Definition at line 55 of file JackPort.h.

00055                                                        : 
00056                 JackPort(name, writer, JACK_DEFAULT_AUDIO_TYPE) 
00057                 {}

virtual JackAudioPort::~JackAudioPort (  )  [inline, virtual]

Definition at line 59 of file JackPort.h.

00059 {}

Member Function Documentation

void JackAudioPort::GetFrame ( SoundFrame frame,
jack_nframes_t  nframes 
) [protected]

Definition at line 122 of file JackPort.cpp.

References JackPort::GetPort(), and SoundFrame::Set().

Referenced by JackInput::Process().

00123 {
00124     frame.Set((jack_default_audio_sample_t*)jack_port_get_buffer(GetPort(), nframes), nframes);
00125 }

void JackAudioPort::PutFrame ( const SoundFrame frame  )  [protected]

Definition at line 127 of file JackPort.cpp.

References JackPort::GetPort(), SoundFrame::GetSamples(), and SoundFrame::SampleCount().

Referenced by JackOutput::Process().

00128 {
00129     void* out = jack_port_get_buffer(GetPort(), frame.SampleCount());
00130     memcpy(out, frame.GetSamples(), sizeof(jack_default_audio_sample_t) * frame.SampleCount());
00131 }

The documentation for this class was generated from the following files:

Get JackFX at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated for JackFX by  doxygen