LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2010, 02:21 PM   #1
hciotastihissois
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
How can I obtain the audio stream that I hear in speaker system or in earphones?


Let assume that we have the following situation: we have a sound in the speaker systems or in earphones, maybe we play an audio CD, some mp3's or maybe a movie, etc.
All I know is that the sound goes through sound card to speaker system or in earphones, no matter the source.

How can I obtain the audio stream that I hear in speaker system or in earphones?

I would like to write an application that record and analyze the audio stream that I hear in my speaker system or in earphones.
My OS is Ubuntu 10.04.

If you have a recommendation like "try to use ALSA", please provide more details like "in alsa-utils you have a class Class_Name, with the following function Funcation1, etc. Try to use the Function5 as in the following example".
Any help is appreciated.

Last edited by hciotastihissois; 09-26-2010 at 11:23 PM.
 
Old 09-26-2010, 03:11 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Why not just get the source code of an application that does that (audacity come to mind) and see how they do it?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound from Speaker Does not get cut off when earphones are plugged in awmian Linux - Laptop and Netbook 1 09-04-2008 08:47 AM
Sound output both from speaker and earphones... umehrotra Linux - Laptop and Netbook 2 10-12-2007 10:40 AM
Help: Sound on earphones but NO on Laptop Speaker Tje Slackware 8 05-07-2007 08:51 AM
No audio from earphones wrangler Debian 1 11-16-2005 07:47 AM
can only hear sound from the right speaker Goatdemon Linux - General 23 11-12-2002 08:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration