LiveActivity
JavaScript is disabled on your browser.
br.usp.ime.dspbenchmarking.activities
Class LiveActivity
- java.lang.Object
-
- Activity
-
- br.usp.ime.dspbenchmarking.activities.DspActivity
-
- br.usp.ime.dspbenchmarking.activities.LiveActivity
-
public class LiveActivity extends DspActivity
The live activity allows for use of the DSP facilities during a live performance. In fact, it can be seen more as an "examples" screen with the implemented algorithms and possibility of switching between distinct block sizes, audio inputs and algorithms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description private classLiveActivity.AlgorithmListenerListeners for algorithm change.private classLiveActivity.AudioSourceListenerListens for audio source changeprivate classLiveActivity.BlockSizeListenerListens for DSP block size change.
-
Field Summary
Fields Modifier and Type Field and Description private SpinneralgorithmViewprivate intaudioSourceprivate SpinneraudioSourceViewprivate intblockSizeprivate intdspAlgorithmprivate SpinnerdspBlockSizeView(package private) intmaxParamValueprivate doubleparameter1private OnSeekBarChangeListenerparameter1ListenerRestarts DSP with new parameters.private SeekBarparameter1Viewprivate CheckBoxtoggleDSPView-
Fields inherited from class br.usp.ime.dspbenchmarking.activities.DspActivity
callbackPeriodView, cpuUsageBar, dspCallbackTimeView, dspCyclesView, dspCycleTimeBar, dspPeriodView, dt, elapsedTimeView, mHandler, readCyclesView, sampleReadTimeView, sampleWriteTimeView, swt, totalTime, totalTimeView
-
-
Constructor Summary
Constructors Constructor and Description LiveActivity()
-
Method Summary
Methods Modifier and Type Method and Description voidonBackPressed()Stop DSP and finish the activity when "back" is pressed.voidonCreate(Bundle savedInstanceState)Called when the activity is first created.private voidrestartDSP()Restarts DSP with new parameters.voidtoggleDSP(View v)Turn processing on and off, according to button in 'res/layout/main.xml' interface.
-
-
-
Field Detail
-
blockSize
private int blockSize
-
dspAlgorithm
private int dspAlgorithm
-
maxParamValue
int maxParamValue
-
parameter1
private double parameter1
-
audioSource
private int audioSource
-
toggleDSPView
private CheckBox toggleDSPView
-
dspBlockSizeView
private Spinner dspBlockSizeView
-
audioSourceView
private Spinner audioSourceView
-
algorithmView
private Spinner algorithmView
-
parameter1View
private SeekBar parameter1View
-
parameter1Listener
private OnSeekBarChangeListener parameter1Listener
Restarts DSP with new parameters.
-
-
Method Detail
-
onCreate
public void onCreate(Bundle savedInstanceState)
Called when the activity is first created. Setup the screen with options for modifying the DSP parameters (block size, algorithm, audio input, etc).- Overrides:
onCreatein classDspActivity
-
onBackPressed
public void onBackPressed()
Stop DSP and finish the activity when "back" is pressed.
-
toggleDSP
public void toggleDSP(View v)
Turn processing on and off, according to button in 'res/layout/main.xml' interface.- Parameters:
v-
-
restartDSP
private void restartDSP()
Restarts DSP with new parameters.
-
-