org.tritonus.lowlevel.alsa
Class AlsaPcmHWParams

java.lang.Object
  extended byorg.tritonus.lowlevel.alsa.AlsaPcmHWParams

public class AlsaPcmHWParams
extends Object

TODO:


Constructor Summary
AlsaPcmHWParams()
           
 
Method Summary
 void finalize()
           
 void free()
           
 int getAccess()
           
 int getBufferSize()
          Gets approximate buffer size.
 int getBufferSizeMax()
          Gets approximate maximum buffer size.
 int getBufferSizeMin()
          Gets approximate minimum buffer size.
 int getBufferTime(int[] anValues)
          Gets approximate buffer time.
 int getBufferTimeMax(int[] anValues)
          Gets approximate maximum buffer time.
 int getBufferTimeMin(int[] anValues)
          Gets approximate minimum buffer time.
 int getChannels()
           
 int getChannelsMax()
           
 int getChannelsMin()
           
 int getFifoSize()
           
 int getFormat()
           
 void getFormatMask(AlsaPcmHWParamsFormatMask mask)
           
 int getPeriods(int[] anValues)
          Gets approximate periods.
 int getPeriodSize(int[] anValues)
          Gets approximate period size.
 int getPeriodSizeMax(int[] anValues)
          Gets approximate maximum period size.
 int getPeriodSizeMin(int[] anValues)
          Gets approximate minimum period size.
 int getPeriodsMax(int[] anValues)
          Gets approximate maximum periods.
 int getPeriodsMin(int[] anValues)
          Gets approximate minimum periods.
 int getPeriodTime(int[] anValues)
          Gets approximate period time.
 int getPeriodTimeMax(int[] anValues)
          Gets approximate maximum period time.
 int getPeriodTimeMin(int[] anValues)
          Gets approximate minimum period time.
 double getRate()
           
 int getRate(int[] anValues)
          Gets approximate rate.
 int getRate(long[] alValues)
          Calls snd_pcm_hw_params_get_rate_numden().
 int getRateMax(int[] anValues)
          Gets approximate maximum rate.
 int getRateMin(int[] anValues)
          Gets approximate minimum rate.
 int getSBits()
           
 int getSubformat()
           
 int getTickTime(int[] anValues)
          Gets approximate tick time.
 int getTickTimeMax(int[] anValues)
          Gets approximate maximum tick time.
 int getTickTimeMin(int[] anValues)
          Gets approximate minimum tick time.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlsaPcmHWParams

public AlsaPcmHWParams()
Method Detail

finalize

public void finalize()
Overrides:
finalize in class Object

free

public void free()

getRate

public int getRate(long[] alValues)
Calls snd_pcm_hw_params_get_rate_numden(). alValues[0]: numerator alValues[1]: denominator


getRate

public double getRate()

getSBits

public int getSBits()

getFifoSize

public int getFifoSize()

getAccess

public int getAccess()

getFormat

public int getFormat()

getFormatMask

public void getFormatMask(AlsaPcmHWParamsFormatMask mask)

getSubformat

public int getSubformat()

getChannels

public int getChannels()

getChannelsMin

public int getChannelsMin()

getChannelsMax

public int getChannelsMax()

getRate

public int getRate(int[] anValues)
Gets approximate rate. Calls snd_pcm_hw_params_get_rate(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getRateMin

public int getRateMin(int[] anValues)
Gets approximate minimum rate. Calls snd_pcm_hw_params_get_rate_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getRateMax

public int getRateMax(int[] anValues)
Gets approximate maximum rate. Calls snd_pcm_hw_params_get_rate_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodTime

public int getPeriodTime(int[] anValues)
Gets approximate period time. Calls snd_pcm_hw_params_get_period_time(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodTimeMin

public int getPeriodTimeMin(int[] anValues)
Gets approximate minimum period time. Calls snd_pcm_hw_params_get_period_time_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodTimeMax

public int getPeriodTimeMax(int[] anValues)
Gets approximate maximum period time. Calls snd_pcm_hw_params_get_period_time_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodSize

public int getPeriodSize(int[] anValues)
Gets approximate period size. Calls snd_pcm_hw_params_get_period_size(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodSizeMin

public int getPeriodSizeMin(int[] anValues)
Gets approximate minimum period size. Calls snd_pcm_hw_params_get_period_size_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodSizeMax

public int getPeriodSizeMax(int[] anValues)
Gets approximate maximum period size. Calls snd_pcm_hw_params_get_period_size_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriods

public int getPeriods(int[] anValues)
Gets approximate periods. Calls snd_pcm_hw_params_get_periods(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodsMin

public int getPeriodsMin(int[] anValues)
Gets approximate minimum periods. Calls snd_pcm_hw_params_get_periods_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getPeriodsMax

public int getPeriodsMax(int[] anValues)
Gets approximate maximum periods. Calls snd_pcm_hw_params_get_periods_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getBufferTime

public int getBufferTime(int[] anValues)
Gets approximate buffer time. Calls snd_pcm_hw_params_get_buffer_time(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getBufferTimeMin

public int getBufferTimeMin(int[] anValues)
Gets approximate minimum buffer time. Calls snd_pcm_hw_params_get_buffer_time_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getBufferTimeMax

public int getBufferTimeMax(int[] anValues)
Gets approximate maximum buffer time. Calls snd_pcm_hw_params_get_buffer_time_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getBufferSize

public int getBufferSize()
Gets approximate buffer size. Calls snd_pcm_hw_params_get_buffer_size().


getBufferSizeMin

public int getBufferSizeMin()
Gets approximate minimum buffer size. Calls snd_pcm_hw_params_get_buffer_size_min().


getBufferSizeMax

public int getBufferSizeMax()
Gets approximate maximum buffer size. Calls snd_pcm_hw_params_get_buffer_size_max().


getTickTime

public int getTickTime(int[] anValues)
Gets approximate tick time. Calls snd_pcm_hw_params_get_tick_time(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getTickTimeMin

public int getTickTimeMin(int[] anValues)
Gets approximate minimum tick time. Calls snd_pcm_hw_params_get_tick_time_min(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.


getTickTimeMax

public int getTickTimeMax(int[] anValues)
Gets approximate maximum tick time. Calls snd_pcm_hw_params_get_tick_time_max(). anValues[0]: -1, 0 or +1, depending on the direction the exact rate differs from the returned value.