Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Playbackrate for QMediaplayer or Audio Qml type is not working as excepted.
Forum Updated to NodeBB v4.3 + New Features

Playbackrate for QMediaplayer or Audio Qml type is not working as excepted.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 142 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Balakumaran
    wrote on last edited by Balakumaran
    #1

    Hi,
    I am using Qt 5.15.2 and ubuntu 20.04, I am trying to play audio file(.wav) using both QMediaplayer and Audio QML Type. It is working with default(1.0) playbackrate. but when initialising Audio Qml type playbackrate 2.0, it is not playing audio on very first time, but working on second time onward, Same issue is happening when i trying to change audio source file.

    I am also trying to play audio using QMediaPlayer with playbackRate 2.0, It is not playing audio, and status is always returning as buffered(6). And it is working with default playbackRate 1.0.

        Audio{
            id: audioQml
    
            source: audioSourceFile
            onError: {
                console.log(errorString)
            }
        }
    
        Button{
            width: 100
            text: "play"
    
            anchors{
                left: comboBoxId.left
                top: gridlayout.bottom
                topMargin: 20
            }
    
            onClicked: {
                audioQml.play()
            }
        }
    
         Button{
                width: 100
                text: "2x Speed"
    
                onClicked: {
                    audioQml.playbackRate = 2.0
                }
            }
    

    Note: Same application is working with Qt 5.14.0.

    Thanks you guys, please let me know if anybody have suggestions.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved