Beatmup
Beatmup::Audio::Signal::Writer Class Reference

Provides writing access to the signal. More...

#include <signal.h>

Inheritance diagram for Beatmup::Audio::Signal::Writer:
Beatmup::Audio::Signal::Pointer

Public Member Functions

 Writer (Signal &signal, dtime time)
 
dtime acquireBuffer (void *&data)
 
- Public Member Functions inherited from Beatmup::Audio::Signal::Pointer
 Pointer (Signal &signal, dtime time, bool writing)
 
virtual void releaseBuffer ()
 
unsigned char getChannelCount () const
 

Detailed Description

Provides writing access to the signal.

Definition at line 62 of file signal.h.

Constructor & Destructor Documentation

◆ Writer()

Signal::Writer::Writer ( Signal signal,
dtime  time 
)

Definition at line 170 of file signal.cpp.

170 : Pointer(signal, time, true) {};
Pointer(Signal &signal, dtime time, bool writing)
Definition: signal.cpp:143
jlong jlong jint time

Member Function Documentation

◆ acquireBuffer()

dtime Signal::Writer::acquireBuffer ( void *&  data)

Definition at line 172 of file signal.cpp.

172  {
173  if (pointer.isNull()) {
174  data = nullptr;
175  return 0;
176  }
177  SignalFragment* fragment = (SignalFragment*)pointer.fragment;
178  data = fragment->getData() + pointer.offset * fragment->getBlockSize();
179  return pointer.length;
180 }
JNIEnv jobject jint jint jint jfloat fragment

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