1// qaudio.sip generated by MetaSIP 2// 3// This file is part of the QtMultimedia Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23namespace QAudio 24{ 25%TypeHeaderCode 26#include <qaudio.h> 27%End 28 29 enum Error 30 { 31 NoError, 32 OpenError, 33 IOError, 34 UnderrunError, 35 FatalError, 36 }; 37 38 enum State 39 { 40 ActiveState, 41 SuspendedState, 42 StoppedState, 43 IdleState, 44%If (Qt_5_10_0 -) 45 InterruptedState, 46%End 47 }; 48 49 enum Mode 50 { 51 AudioInput, 52 AudioOutput, 53 }; 54 55%If (Qt_5_6_0 -) 56 57 enum Role 58 { 59 UnknownRole, 60 MusicRole, 61 VideoRole, 62 VoiceCommunicationRole, 63 AlarmRole, 64 NotificationRole, 65 RingtoneRole, 66 AccessibilityRole, 67 SonificationRole, 68 GameRole, 69%If (Qt_5_11_0 -) 70 CustomRole, 71%End 72 }; 73 74%End 75%If (Qt_5_8_0 -) 76 77 enum VolumeScale 78 { 79 LinearVolumeScale, 80 CubicVolumeScale, 81 LogarithmicVolumeScale, 82 DecibelVolumeScale, 83 }; 84 85%End 86%If (Qt_5_8_0 -) 87 qreal convertVolume(qreal volume, QAudio::VolumeScale from, QAudio::VolumeScale to); 88%End 89}; 90