QNAudioFormat
Index
Core Methods
        
Core Methods
QNAudioFormat
- QNAudioFormat()
 - 
    
无参构造方法
Returns QNAudioFormat 
QNAudioFormat
- QNAudioFormat(int channels, int sampleRate, int bitsPerSample)
 - 
    
构造方法
用于指定外部导入的音频数据格式
Parameters- 
        channels: int
音频声道数,单声道(1)或者双声道(2)
 - 
        sampleRate: int
音频采样率,如 16000、44100 等
 - 
        bitsPerSample: int
音频位宽,通常为 16
 
Returns QNAudioFormat - 
        
 
getBitsPerSample
- int getBitsPerSample()
 - 
    
获取音频位宽
Returns int 
setBitsPerSample
- void setBitsPerSample(int bitsPerSample)
 - 
    
设置音频位宽
Parameters- 
        bitsPerSample: int
音频位宽,通常为 16
 
 - 
        
 
getSampleRate
- int getSampleRate()
 - 
    
获取音频采样率
Returns int 
setSampleRate
- void setSampleRate(int sampleRate)
 - 
    
设置音频采样率
Parameters- 
        sampleRate: int
音频采样率,如 16000、44100 等
 
 - 
        
 
getChannels
- int getChannels()
 - 
    
获取音频声道数
Returns int 
setChannels
- void setChannels(int channels)
 - 
    
设置音频声道数
Parameters- 
        channels: int
音频声道数,单声道(1)或者双声道(2)
 
 - 
        
 
    文档反馈
    (如有产品使用问题,请 提交工单)