LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2012, 03:01 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,830
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
Fake a sound card for machine without one


I have an application that needs to run on a bunch of servers. There is a problem with this application that it needs to open a sound card and output some sound. The servers have no sound cards. We have tried A USB plugin, and that mostly works, but there are often glitches. I'm looking for a better alternative. We don't need to actually hear the sound. Is there a way to have an "anechoic chamber" sound card in software? Like maybe a driver that just throws the sound away, but gives all the responses as if there were a sound card?
 
Old 04-02-2012, 07:45 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 487
Blog Entries: 2

Rep: Reputation: 153Reputation: 153
Try adding this to modprobe.conf :
Code:
alias snd-card-0 snd-dummy
And load this module:
Code:
$ sudo modprobe snd-dummy
It should work in most cases without any other configuration needed.
 
Old 04-02-2012, 07:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
Almost every motherboard still has a built in speaker even if no speaker was soldered on. Can you use it?


I suppose someone has a virtual sound card.


The virtual machines may have even borrowed someone's prior work. Might look into that.

Now that I read the above I like his way better.
 
Old 04-02-2012, 11:58 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,830
Blog Entries: 21

Original Poster
Rep: Reputation: 119Reputation: 119
The snd-dummy idea seems workable. I only need to fool the program, not listen to the sound. But all the various ops need to look right, such as setting the sample rate. It needs to be able to get the same thing back when it asks for the sample rate. If sound cards have a loopback that can be turned on, this might need to be implemented.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] moc refuses to work on machine with Intel sound card w1k0 Slackware 3 07-27-2011 04:59 PM
sound card order on lenovo x120e, HDMI vs sound card npdawson Slackware 15 05-15-2011 06:46 PM
Sound card Issues in Suse 9.3 with a ??Conexant?? Sound card in Gateway laptop hackerarchangel Linux - Hardware 3 12-30-2005 11:35 PM
Fedora Core 1 post install - sound card test freezes the machine plainmedici Fedora - Installation 0 04-19-2004 07:56 AM
Diabling onboard sound card and enabling pci slot sound card abhatia Linux - Hardware 4 01-12-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration