Resources for “Introduction to Sound Programming with ALSA”
ALSA Project: www.alsa-project.org
Alternate Sound APIs:
aRts and CSL: www.arts-project.org
JACK: jackit.sourceforge.net
OpenAL: www.openal.org/home
SDL: www.libsdl.org
Sound and MIDI Software for Linux: linux-sound.org
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- RSS Feeds
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Designing Electronics with Linux
- A Topic for Discussion - Open Source Feature-Richness?
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Validate an E-Mail Address with PHP, the Right Way
- What's the tweeting protocol?
- Kernel Problem
3 hours 3 min ago - BASH script to log IPs on public web server
7 hours 30 min ago - DynDNS
11 hours 6 min ago - Reply to comment | Linux Journal
11 hours 38 min ago - All the articles you talked
14 hours 2 min ago - All the articles you talked
14 hours 5 min ago - All the articles you talked
14 hours 6 min ago - myip
18 hours 31 min ago - Keeping track of IP address
20 hours 22 min ago - Roll your own dynamic dns
1 day 1 hour ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




Comments
do u know how to solve this e
do u know how to solve this error i got the same error
plz tell me how to link the programme with alsa library
hardik
simple capture program doesn't record nothing...
I typed the simple playing program and I made some tests, it works almost with no problems.
However, this is not the case for the simple capture program. It is typed like the article says, I compiled and no errors, but the file where the result is redirected has in appearence not information. I played the content of this file with the simple playing. I have tried with different inputs, the CD and the MIC on the KMix interface without many success. The same happens with the 6735l4.c file, there is any idea???
The version of the ALSA API is 1.0.8rc2.
thanx,
--marco.
Am I missing something?
I expected to find the listings from the article, transcribed for compillation by the lazy. But no?
problems compiling listing 1
I get this when I try to run listing 1. I am using alsa version 1.0.6
Do I need to link something?
> /tmp/ccY117TW.o(.text+0x47): In function `main':
> : undefined reference to `snd_pcm_stream_name'
> /tmp/ccY117TW.o(.text+0x84): In function `main':
> : undefined reference to `snd_pcm_access_name'
> /tmp/ccY117TW.o(.text+0xc1): In function `main':
> : undefined reference to `snd_pcm_format_name'
> /tmp/ccY117TW.o(.text+0xd0): In function `main':
> : undefined reference to `snd_pcm_format_description'
> /tmp/ccY117TW.o(.text+0xdd): In function `main':
> : undefined reference to `snd_pcm_format_name'
> /tmp/ccY117TW.o(.text+0x11e): In function `main':
> : undefined reference to `snd_pcm_subformat_description'
> /tmp/ccY117TW.o(.text+0x12b): In function `main':
> : undefined reference to `snd_pcm_subformat_name'
> /tmp/ccY117TW.o(.text+0x16c): In function `main':
Re: problems compiling listing 1
use -lasound
Re: Resources for Introduction to Sound Programming with ALSA
I am using ALSA version 1.6a and seem to be having problems with listing2,3 and 4. I keep getting the error "unable to set hw parameters: Invalid argument -22" I added the -22 by printing the rc value. The error is caused by the snd_pcm_hw_params( handle, params) call to write the parameters to the driver. I looked at the ALSA documentation and can't seem to find a breakdown of the params struct. It would help if I knew what parameter are bad.
Re: Resources for Introduction to Sound Programming with ALSA
the variable dir needs to be initialized to 0. This will make at least listing 2 work. I suspect that it will make listings 3 and 4 work as well.
d!
Re: Resources for Introduction to Sound Programming with ALSA
I have a similar problem, with listing four only. It seems that may Soundblaster live does not accept a sampling rate of 44100. However, a smpling rate of 88200 is accepted. (I have not got any sound yet, but that may be due to other things.)
Re: Resources for Introduction to Sound Programming with ALSA
I'm struggling with the same problem.
Help!
Philip