11.1.1 配置对象 Configuration Objects

Configuration objects returned by newconfig() have the following methods:

配置对象由 newconfig() 传回, 它有以下方对:

getqueuesize( )
Return the queue size. 传回队列的大小。

setqueuesize( size)
Set the queue size. 设定队列大小。

getwidth( )
Get the sample width. 获得取样本的宽度。

setwidth( width)
Set the sample width. 设定取样的宽度。

getchannels( )
Get the channel count. 取得频道的数目。

setchannels( nchannels)
Set the channel count. 设定频道数目。

getsampfmt( )
Get the sample format. 取得样本的格式。

setsampfmt( sampfmt)
Set the sample format. 设定样本的格式。

getfloatmax( )
Get the maximum value for floating sample formats. 取得浮点样本格式的最大值。

setfloatmax( floatmax)
Set the maximum value for floating sample formats. 设定浮点样本格式的最大值。