Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-30-2024, 08:19 PM
|
#1
|
Senior Member
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,918
Rep: 
|
what does Firefox use for audio output/playing
suppose you connect to an internet radio station or view a video (with audio) from a wed site like YouTube with a web browser like Firefox. you do this through a firewall that restricts inbound connects in most cases (it might have logic to let you do insecure file transfers with FTP).
there are multiple ways for a process to output audio to the local speakers or audio system. what does Firefox do? which of many APIs does it use?
i am wanting to capture the audio Firefox, or any client program, is trying to play to me. normally Firefox is work fine for me. i want to set up (implement) a way to send that audio to another computer that has a special audio system attached.
|
|
|
03-30-2024, 08:47 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,986
|
It would appear to be something called Audio Worklets.
|
|
1 members found this post helpful.
|
03-31-2024, 02:43 AM
|
#3
|
Senior Member
Registered: Jul 2020
Posts: 1,597
|
|
|
1 members found this post helpful.
|
03-31-2024, 10:42 PM
|
#4
|
Senior Member
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,918
Original Poster
Rep: 
|
Quote:
Originally Posted by lvm_
|
these documents are describing how to capture audio from a hardware device, presumably input audio like a microphone i want to capture the audio a process is trying to play (to speaker or to ear buds depending on the setup). my thinking is to emulate some audio playback hardware or emulate the API that some library creates for programs to their output thing with (maybe via a client library ... that i would be inclined to emulate).
emulating speaker hardware is likely very difficult for a non-root user. emulating a library API is likely much easier, although not trivial.
|
|
|
04-01-2024, 12:54 AM
|
#5
|
Senior Member
Registered: Jul 2020
Posts: 1,597
|
Quote:
Originally Posted by Skaperen
these documents are describing how to capture audio from a hardware device
|
Ah... If you tried, like, reading them, or at least scrolling to the end glancing at headings... Spoiler: it's in examples.
|
|
|
04-02-2024, 03:10 PM
|
#6
|
Senior Member
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,918
Original Poster
Rep: 
|
Quote:
Originally Posted by lvm_
Ah... If you tried, like, reading them, or at least scrolling to the end glancing at headings... Spoiler: it's in examples.
|
which would you recommend using? it looks like there will be a lot of work getting things working (needed modules are missing and packages either won't install or can't be found) so i want to focus until i get something to work. it would be nice to have some examples that can work with what a distro like Ubuntu has in it so nothing new needs to be installed. that or maybe a "winsound" emulator for Linux.
|
|
|
All times are GMT -5. The time now is 12:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|