mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 07:35:12 -04:00
Code maintenance for Qt 5:
- LinksCloud - VOIP - FeedReader git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c8b8daf110
commit
41ba665813
13 changed files with 48 additions and 10 deletions
|
@ -8,8 +8,13 @@ AudioDeviceHelper::AudioDeviceHelper()
|
|||
QAudioInput* AudioDeviceHelper::getDefaultInputDevice()
|
||||
{
|
||||
QAudioFormat fmt;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)
|
||||
fmt.setSampleRate(16000);
|
||||
fmt.setChannelCount(1);
|
||||
#else
|
||||
fmt.setFrequency(16000);
|
||||
fmt.setChannels(1);
|
||||
#endif
|
||||
fmt.setSampleSize(16);
|
||||
fmt.setSampleType(QAudioFormat::SignedInt);
|
||||
fmt.setByteOrder(QAudioFormat::LittleEndian);
|
||||
|
@ -45,8 +50,13 @@ QAudioInput* AudioDeviceHelper::getPreferedInputDevice() {
|
|||
|
||||
QAudioOutput* AudioDeviceHelper::getDefaultOutputDevice() {
|
||||
QAudioFormat fmt;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)
|
||||
fmt.setSampleRate(16000);
|
||||
fmt.setChannelCount(1);
|
||||
#else
|
||||
fmt.setFrequency(16000);
|
||||
fmt.setChannels(1);
|
||||
#endif
|
||||
fmt.setSampleSize(16);
|
||||
fmt.setSampleType(QAudioFormat::SignedInt);
|
||||
fmt.setByteOrder(QAudioFormat::LittleEndian);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue