Package soundPlayback
Class PlaybackParameters
java.lang.Object
soundPlayback.PlaybackParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class PlaybackParameters
extends Object
implements Cloneable, Serializable, ManagedParameters
Parameters controlling sound playback
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
channels to play backint
source or raw audio data.boolean
int
number of sound card line - only used when playing back wav files, etc.int
Device type only used with file playback, since for all real time plyback, playback must be through the device aquiring dataint
static final long
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
double
double
The log2 of the playback speed.Get a set of data that describes all of the parameters in a classfloat
Get the actual playback rate in samples per second.double
Get the playback speed (how many times real time)int
boolean
isSideBarShow
(int sideBarType) void
setHpFilter
(double hpFilter) void
setLogPlaybackSpeed
(double logSpeed) Set the log2 of the playback speed (how many times real time).void
setPlaybackRate
(float playbackRate) void
setPlaybackSpeed
(double playbackSpeed) Set the playback speed (how many time real time)void
setSidebarShow
(int sidebarShow)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
SIDEBAR_SHOW_GAIN
public static final int SIDEBAR_SHOW_GAIN- See Also:
-
SIDEBAR_SHOW_SPEED
public static final int SIDEBAR_SHOW_SPEED- See Also:
-
SIDEBAR_SHOW_ENVMIX
public static final int SIDEBAR_SHOW_ENVMIX- See Also:
-
SIDEBAR_SHOW_FILTER
public static final int SIDEBAR_SHOW_FILTER- See Also:
-
SIDEBAR_DEFAULT
public static final int SIDEBAR_DEFAULT- See Also:
-
dataSource
public int dataSourcesource or raw audio data. -
channelBitmap
public int channelBitmapchannels to play back -
deviceNumber
public int deviceNumbernumber of sound card line - only used when playing back wav files, etc. Otherwise, sound playback will be through the device that is acquiring data. -
deviceType
public int deviceTypeDevice type only used with file playback, since for all real time plyback, playback must be through the device aquiring data -
defaultSampleRate
public boolean defaultSampleRate -
playbackGain
public int playbackGain
-
-
Constructor Details
-
PlaybackParameters
public PlaybackParameters()
-
-
Method Details
-
clone
-
getLogPlaybackSpeed
public double getLogPlaybackSpeed()The log2 of the playback speed. Speed being how much the original data are sped up by.- Returns:
- log2 of playback speed.
-
setLogPlaybackSpeed
public void setLogPlaybackSpeed(double logSpeed) Set the log2 of the playback speed (how many times real time).- Parameters:
logSpeed
-
-
setPlaybackSpeed
public void setPlaybackSpeed(double playbackSpeed) Set the playback speed (how many time real time)- Parameters:
playbackSpeed
-
-
getPlaybackSpeed
public double getPlaybackSpeed()Get the playback speed (how many times real time)- Returns:
- playback speed
-
getPlaybackRate
public float getPlaybackRate()Get the actual playback rate in samples per second.- Returns:
- actual playback rate.
-
setPlaybackRate
public void setPlaybackRate(float playbackRate) -
getHpFilter
public double getHpFilter()- Returns:
- the hpFilter
-
setHpFilter
public void setHpFilter(double hpFilter) - Parameters:
hpFilter
- the hpFilter to set
-
getSidebarShow
public int getSidebarShow()- Returns:
- the sidebarShow
-
setSidebarShow
public void setSidebarShow(int sidebarShow) - Parameters:
sidebarShow
- the sidebarShow to set
-
isSideBarShow
public boolean isSideBarShow(int sideBarType) -
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-