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 class
LiveActivity.AlgorithmListener
Listeners for algorithm change.private class
LiveActivity.AudioSourceListener
Listens for audio source changeprivate class
LiveActivity.BlockSizeListener
Listens for DSP block size change.
-
Field Summary
Fields Modifier and Type Field and Description private Spinner
algorithmView
private int
audioSource
private Spinner
audioSourceView
private int
blockSize
private int
dspAlgorithm
private Spinner
dspBlockSizeView
(package private) int
maxParamValue
private double
parameter1
private OnSeekBarChangeListener
parameter1Listener
Restarts DSP with new parameters.private SeekBar
parameter1View
private CheckBox
toggleDSPView
-
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 void
onBackPressed()
Stop DSP and finish the activity when "back" is pressed.void
onCreate(Bundle savedInstanceState)
Called when the activity is first created.private void
restartDSP()
Restarts DSP with new parameters.void
toggleDSP(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:
onCreate
in 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.
-
-