#include <JackPort.h>
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) |
Definition at line 52 of file JackPort.h.
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] |
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 }