This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2022 The Qt Company Ltd. | |
# SPDX-License-Identifier: BSD-3-Clause | |
cmake_minimum_required(VERSION 3.16) | |
project(audiorecorder LANGUAGES CXX) | |
set(CMAKE_AUTOMOC ON) | |
set(CMAKE_AUTOUIC ON) | |
if(NOT DEFINED INSTALL_EXAMPLESDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When running this with PySide 6.4.2 on Mac ARM64 chip Python 3.9, recording audio works | |
# When upgrading PySide to 6.7.0 (keeping everything else constant), recording fails | |
import sys | |
from PySide6.QtWidgets import (QApplication, QMainWindow, QPushButton) | |
from PySide6.QtMultimedia import (QMediaCaptureSession, QAudioInput, QMediaRecorder) | |
class MicTest(QMainWindow): | |
def __init__(self): | |
super().__init__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hello_world(): | |
print('hello world') |