Giter VIP home page Giter VIP logo

Comments (5)

Jajcus avatar Jajcus commented on August 23, 2024 1

I have added a new audio driver, using GStreamer instead of Qt multimedia capabilities. This should allow using ALSA, PulseAudio and Jack properly and any other audio sink supported by GStreamer.

To use ALSA:
./sampledrawer --audio-driver=gstreamer --audio-device='alsasink'

PuleAudio:
./sampledrawer --audio-driver=gstreamer --audio-device='pulsesink'

Jack:
./sampledrawer --audio-driver=gstreamer --audio-device='jackaudiosink'

Jack without automatic port connections:
./sampledrawer --audio-driver=gstreamer --audio-device='jackaudiosink connect=0'

Add an effect ('freeverb' Reverberation/room effect in this case) before sending audio to alsa:
./sampledrawer --audio-driver=gstreamer --audio-device='freeverb ! alsasink'

For this to work GStreamer with appropriate sink and affects plugin must be installed, as well as python gobject-introspection binding and GStreamer gobject-introspection data ('python3-gi' and 'gir1.2-gstreamer-1.0' packages in Ubuntu).

from sampledrawer.

Jajcus avatar Jajcus commented on August 23, 2024

Doesn't it? I have used the basic Qt media player and decoder, assuming it should 'just work' everywhere. I have not tested it with anything else than PulseAudio, though.

How exactly does it not work for you? Any error message?
Do you have audio in other Qt5 based applications?

from sampledrawer.

Jajcus avatar Jajcus commented on August 23, 2024

I have added '--auto-device' command-line option. A quick hack, but maybe it helps.

from sampledrawer.

dromer avatar dromer commented on August 23, 2024

By default it outputs:

PulseAudioService: pa_context_connect() failed
using null output device, none available

With ./sampledrawer --audio-device default it does work with my default alsa device \o/

thnx!

Got some more feature requests, but nice project. Was looking for something like this.

from sampledrawer.

dromer avatar dromer commented on August 23, 2024

Nice, will have a try soon!

from sampledrawer.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.