Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. audio
    Log in to post

    • SOLVED QMediaplayer randomly plays part of the audio in a loop
      General and Desktop • qmediaplayer audio loop glitch • • Andrey Vasilyev  

      3
      0
      Votes
      3
      Posts
      45
      Views

      The problem was in the Windows firewall. I still don't understand why this was affecting the sound, but disabling the firewall did the trick.
    • SOLVED How to reference bundled files on ios?
      Mobile and Embedded • qml ios mobile audio bundle • • Hitokage  

      10
      0
      Votes
      10
      Posts
      205
      Views

      @SGaist Hey so the reference problem is solved. Seems like the file can be opened, the player works but there is no sound :-/. I'll probably open another thread for this issue. Thanks for the help again! EDIT: Or maybe it's working :D. On other devices I got a report that the sound is OK. Will investigate that further!
    • SOLVED How to use QML Playlist Type save function to save playlist.
      QML and Qt Quick • qml audio mediaplayer playlist • • iamRahul  

      2
      0
      Votes
      2
      Posts
      32
      Views

      @iamRahul I figured it out. We need to specify full location path till the file, and specify file type in format. Then it worked for me. if(audioPlaylist.save("file:///C:/MyMusicPlayer/Playlists/global_playlist.m3u","m3u")) { console.log("Playlist Saved") } Adding the filename global_playlist.m3u and format m3u made it working for me.
    • UNSOLVED Gapless audio playback
      General and Desktop • audio playback • • 3beezer  

      12
      0
      Votes
      12
      Posts
      161
      Views

      The Linux backend uses GStreamer. You can take a look at the code and maybe modify it for your purpose.
    • UNSOLVED QMediaPlayer MetaData Unavailable?
      General and Desktop • qmediaplayer audio • • wumpus7  

      7
      0
      Votes
      7
      Posts
      437
      Views

      It seems remarkable to me that the QMediaPlayer can know whether I'm playing back audio with 1, 2, or more channels, but I cannot get that information from it, but I guess that's just the way it is? It seems like some people can get this to work, and others can't, so I wonder if this is another issue of platform differences? (For reference, this is playback either via a wired connection to an MFi device, or directly on an iPad/iPhone, so iOS under the hood.) Anyway, I've given up on displaying mono/stereo channel information in our implementation. (The player will fail to play back audio with three or more channels, so I can at least flag that. It'd be nice to label, but it's not required.) I'll report a bug if I get the time at some point.
    • UNSOLVED Sample sizes in Qt audio example
      General and Desktop • audio audio device audio waveform audio recording audio record • • Rasva  

      5
      0
      Votes
      5
      Posts
      183
      Views

      Thank you for your help, I've probably identified the problem - one of the input parameters was a char (8 bit). I've tried to fix it using the following code to reformat it so that it can be used properly for 16 bit but I keep getting the same problem /* Function with char as one of the parameters - qint64 XYSeriesIODevice::writeData(const char *data, qint64 maxSize) - same as in the Qt audio example**/ int bitsPerSample = 16; int bytesPerSample = (bitsPerSample / BITS_IN_BYTE); int signalLength = (strlen(data) ) / numChannels / bytesPerSample; short* signal = (short*)malloc(sizeof(short) * signalLength); for(int i = 0; i < signalLength; i++){ int index = i * numChannels * bytesPerSample; memcpy(&signal[i], &data[index], sizeof(short)); } Any suggestions?
    • UNSOLVED how to pass a model to playlist qml type?
      General and Desktop • qml multimedia audio item delegate audio qml • • newbiSoso  

      1
      0
      Votes
      1
      Posts
      107
      Views

      No one has replied

    • UNSOLVED QAudioDecoder returns not valid QAudioFormat on Xubuntu 18.04
      General and Desktop • gstreamer audio qaudiodecoder xubuntu • • AlxxlA  

      1
      0
      Votes
      1
      Posts
      147
      Views

      No one has replied

    • UNSOLVED Synchronize an QOpengl line with audio file
      General and Desktop • audio multimedia qopengl • • HW-Developer  

      16
      0
      Votes
      16
      Posts
      543
      Views

      hi well you can hook up the AUDIO positionchanged signal to your own method (slot) using connect. http://doc.qt.io//qt-5/signalsandslots.html so it will directly call your method when it changes.
    • UNSOLVED Play an audio file in milliseconds
      General and Desktop • opengl qtmultimedia multimedia audio sfml • • HW-Developer  

      4
      0
      Votes
      4
      Posts
      446
      Views

      https://drive.google.com/file/d/1SHw3k6gY9pz8cL7skhDUPUf2NrwF4xeE/view
    • UNSOLVED CameraRecorder without audio
      QML and Qt Quick • camera gstreamer audio camerabin recording • • YenZi  

      8
      0
      Votes
      8
      Posts
      1379
      Views

      @Cleiton-Bueno thanks for your suggestion. I have disabled audio in my kernel completely now. Now I get the message CameraBin warning: "Could not open audio device for recording." which shows, that I really removed audio support. Unfortunately, this still doesn't solve my basic issue, which is a extremely sluggish video output when the videoRecorder property is enabled in the Camera. That means, the audio encoding was not causing this problem at all. Thx, Jens
    • UNSOLVED How to playback raw audio data files?
      General and Desktop • qtmultimedia audio • • scottnat  

      2
      0
      Votes
      2
      Posts
      1012
      Views

      Hi and welcome to devnet, You should check what your device support, QAudioDeviceInfo gives you all the various channel counts, sample sizes etc. that are supported by the device you want to use.
    • UNSOLVED Audio Streaming not working in android
      QML and Qt Quick • qml audio multimedia audio qml audioplayer • • Qjay  

      7
      0
      Votes
      7
      Posts
      2524
      Views

      The please first update to 5.9.1
    • SOLVED Qt5.6 Playing .wav file
      Mobile and Embedded • qt5 audio • • Yair BA  

      3
      0
      Votes
      3
      Posts
      1169
      Views

      I re-built the file system image, this time with Buildroot-2017.02 and Qt version 5.6.2. I ran, on the target board, the audiooutput example that Qt provides and got a lots of pulseaudio warnings. Remembering the above QT_DEBUG_PLUGINS hint, I took a look inside the /usr/lib/qt/plugins/audio directory on the target board and found two plugins: libqtmedia_pulse.so and libqtaudio_alsa.so . Removing the libqtmedia_pulse.so plugin solved the race condition with libqtaudio_alsa.so and solved the problem. In addition, make sure that alsa-lib builds before qt5multimedia (commit 8d7dd837e5e from mainline Buildroot: "qt5multimedia: conditionally add alsa-lib to dependencies").
    • UNSOLVED Audio Input buffer - Trying to access Audio Input on a sample by sample basis
      General and Desktop • audio buffer qaudioinput • • SamSpreadborough  

      2
      0
      Votes
      2
      Posts
      760
      Views

      Hi and welcome to devnet, QAudioInput returns a pointer to a QIODevice that will provide the audio data. Connect the readyRead signal from that QIODevice object to a slot of your class, there you can read the audio data received and make what you want with it. Hope it helps
    • UNSOLVED Smart way to connect QML GUI objects to C++ audio processing chain?
      QML and Qt Quick • qml c++ quick audio audio qml • • Yosemite  

      1
      0
      Votes
      1
      Posts
      567
      Views

      No one has replied

    • UNSOLVED Questions about Bluetooth services
      Mobile and Embedded • audio socket qbluetooth a2dp uuid • • Mark81  

      1
      0
      Votes
      1
      Posts
      482
      Views

      No one has replied

    • UNSOLVED QMediaPlayer eats the initial part of audio files
      Mobile and Embedded • qmediaplayer audio qmultimedia delay buffer • • Mark81  

      2
      0
      Votes
      2
      Posts
      870
      Views

      Hi, Usually, to play sound effect, the QSoundEffect class is used. Wouldn't that fill your need ?
    • UNSOLVED Assertion 's' failed at pulse/stream.c while stopping and starting QAudioInput and QAudioOutput in quick succession?
      General and Desktop • qtmultimedia c++ qt audio pulseaudio • • faisal.tum  

      5
      0
      Votes
      5
      Posts
      2095
      Views

      Hi, You should take a look at the bug report system to see if it something known.
    • SOLVED Extract sound with QMultimedia
      General and Desktop • video audio qmultimedia • • sabativi  

      10
      0
      Votes
      10
      Posts
      2899
      Views

      Hi, Then that's something you should ask to the QtAV authors. It's not an official Qt module.
    • UNSOLVED Record from audio output
      General and Desktop • audio output record loopback • • HAWK0044  

      2
      0
      Votes
      2
      Posts
      835
      Views

      Hi, Might be a bit of short answer but… AFAIK, no you can't.
    • UNSOLVED Open Source Intern Programmer Needed
      Jobs • audio opensource dsp • • ad5xj  

      2
      0
      Votes
      2
      Posts
      1033
      Views

      Is it a paid or free program.
    • UNSOLVED Audio widget to record and save
      Tools • audio audio record audio file save recorder widget • • Priyank_  

      2
      0
      Votes
      2
      Posts
      730
      Views

      Hi, Take a look the QAudioInput example.
    • UNSOLVED How to record from audio mixer "what-you-hear" in Windows.
      General and Desktop • windows audio audio device audio mixing • • delamor  

      6
      1
      Votes
      6
      Posts
      1603
      Views

      Then you either have to play your video through QtMultimedia and use a QAudioProbe or you'll have to do it with some additional hardware.
    • UNSOLVED How to use Qt to parse .mid audio file?
      General and Desktop • audio midi • • Accelerated  

      4
      0
      Votes
      4
      Posts
      928
      Views

      You're welcome ! Since you have what you need now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
    • UNSOLVED Chasing the wave[form]
      General and Desktop • audio • • A Former User  

      3
      0
      Votes
      3
      Posts
      729
      Views

      @SGaist Good point about the drawing – that hadn't occurred to me.
    • UNSOLVED Is Qt capable of small-buffer low-latency audio applications (e.g. soft synth)?
      General and Desktop • qtmultimedia audio • • paulmasri  

      15
      0
      Votes
      15
      Posts
      6390
      Views

      @VaL-Doroshchuk Hi! "big buffer" is quite relative and that "big" depends on needs. In my case I'm using audio data to pitch recognition and depending on pitch range to recognize, I'm using 512, 1024 or 2048 samples buffer, so it is apparently 11, 23 and 45ms (more less). Those power-of-two buffer sizes are required by FFT routines. But my app is flexible enough, and when underlaying OS is not capable to keep that buffer size it will portion any audio data size as needed for pitch detection algorithm. (on Android Qt Audio is used and with low level device a delay between data ready call could sometimes be about 100ms) However smaller buffer gives faster app response (displaying pitch in score). And no any glitches was notices even if buffer is set to 64 frames (2ms) And if we take simpler example, which could be passing input mike data to an output device - more quicker we send incoming data to the out - less delay will be in speakers - it means less buffer - faster response.
    • UNSOLVED Does iOS support QAudioOutput?
      Mobile and Embedded • ios audio qaudiooutput • • paulmasri  

      1
      0
      Votes
      1
      Posts
      431
      Views

      No one has replied

    • UNSOLVED QML Audio is not able to access mp3 file in qrc (windows)
      General and Desktop • qml windows audio qrc • • Albus  

      16
      0
      Votes
      16
      Posts
      3987
      Views

      Then it probably is using the audio plugin which I'm not sure at all is supporting qrc
    • UNSOLVED QAudioProbe not working with QMediaPlayer
      General and Desktop • audio media player • • cweeks  

      7
      0
      Votes
      7
      Posts
      2335
      Views

      I see... Had to rebuild the app with 5.5 where WMF backend was present. And the link doesn't seem to provide any rationale for this very odd decision. Of course, I don't care what backed is used, but I do like classes like QAudioProbe actually working.
    • QMediaPlayer : how to play only part of an (audio) source ?
      General and Desktop • qmediaplayer audio sequence timestamp play part • • mlecoq  

      1
      0
      Votes
      1
      Posts
      568
      Views

      No one has replied

    • Problem with QAudioRecorder
      General and Desktop • audio qt 5.2.1 • • helenebro  

      6
      0
      Votes
      6
      Posts
      1987
      Views

      Then you should check the bug report system
    • Surround Sound with QAudioOutput?
      General and Desktop • audio • • cristian64  

      1
      0
      Votes
      1
      Posts
      660
      Views

      No one has replied

    • Audio Engine Example
      General and Desktop • windows audio mac os examples audio engine • • maksutov  

      6
      0
      Votes
      6
      Posts
      1539
      Views

      No problem :) Since you have it working now, please update the thread title prepending [solved] so other forum users may know that a solution has been found :) Also, when encountering answer(s) that helped you, please consider up-voting them so that other users may find them more easily. Happy coding !
    • [solved] Deploy app with QtMultimedia on Windows
      Installation and Deployment • windows video multimedia audio deploy • • helenebro  

      7
      0
      Votes
      7
      Posts
      3452
      Views

      Good ! Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
    • Unable to hear any sound on phonon
      Mobile and Embedded • audio qt4.8.5 mp3 am335x phonon audioplayer • • vk41286  

      1
      0
      Votes
      1
      Posts
      533
      Views

      No one has replied

    • Problems with "spectrum" example
      General and Desktop • audio examples 5.4 • • batguano  

      3
      0
      Votes
      3
      Posts
      862
      Views

      @SGaist Thanks! I didn't see any bug reports that looked relevant. I'll file one.
    • MediaPlayer Buffered vs Loaded
      QML and Qt Quick • audio mediaplayer • • renatobibiano  

      2
      0
      Votes
      2
      Posts
      889
      Views

      One last thing, apparently this error only occur in IOS devices
    • How to use low pass filter?
      General and Desktop • python audio right left chan low pass filter nsound • • carmhack  

      3
      0
      Votes
      3
      Posts
      2469
      Views

      Nsound is also a C++ library and can be used in C++ applications, see http://sourceforge.net/p/nsound/code/HEAD/tree/tags/nsound-0.9.3/src/Nsound/. :) Nick