public class AudioConfig extends Object
Constructor and Description |
---|
AudioConfig(int frameRate,
int channels,
int deviceIdx)
This instance represents the requested audio configuration
|
Modifier and Type | Method and Description |
---|---|
int |
getBufferFrames()
Gets the size of this AudioConfig's audio buffer in frames.
|
int |
getChannels()
Get number of audio channels
|
int |
getChunkFrames()
Return the desired size of buffer used at one time.
|
int |
getDevice()
Get currently used audio device
|
int |
getFrameRate()
Gets the audio framerate of this AudioConfig.
|
static AudioConfig |
getInstance(IAudioSection audio)
Return a detached AudioConfig instance corresponding to current
parameters.
|
void |
setBufferFrames(int bufferFrames)
The actual buffer size for the open audio line may differ from the
requested buffer size, therefore
|
public AudioConfig(int frameRate, int channels, int deviceIdx)
frameRate
- The desired audio framerate.channels
- The number of audio channels to use.deviceIdx
- The sound device number.public static AudioConfig getInstance(IAudioSection audio)
audio
- audio configurationpublic final int getFrameRate()
public int getChunkFrames()
public final int getBufferFrames()
public final void setBufferFrames(int bufferFrames)
bufferFrames
- available buffer framespublic final int getChannels()
public final int getDevice()
Copyright © 2018 Ken Händel. All rights reserved.