Skip to contentSkip to conversation

ALSA Programming Examples

DISCUSSION Philipp Vollmer 3 participants 5 messages Jun 6, 2002 – Oct 25, 2002

lore
Share & tools
lore
#0 lore raw

Hello to all ALSA Devolpers,

I am actually starting to program with the ALSA library. My Problem:

When I try to compile the examples of the HOWTO exactly discriped in the README of this directory.
So I get a message as if there was a mistake in the code. There isn't I think. I searched for the source and I found the "open" ( for the sound device ) codeline where constants seemed to me inexistant.

Where is the problem?
Is there a mistake in the example or in the HOWTO.

With best regards

Philipp Vollmer

PS: post to [email protected]

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#2 lore raw
In reply to Paul Davis

Hello dear Mr Davis,

My library version is 0.5.10b and the driver version is 0.5.12a.

The author of the HOWTO is Matthias Nagorni.

Best regards

Philipp Vollmer

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#1 lore raw
In reply to Philipp Vollmer
Quoted 3 lines

Hello to all ALSA Devolpers,

I am actually starting to program with the ALSA library.

Please tell us which version of ALSA you are using.

I also suggest you use Matthias Nagorni's examples that are linked to from the website. My own are there also but they have not been completed and are incorrect right now.

--p

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#3 lore raw
In reply to Philipp Vollmer
Quoted 1 line

My library version is 0.5.10b and the driver version is 0.5.12a.

0.5 is no longer really supported. You should be using 0.9.X. The web
site says on the front page:

*** N.B. The 0.5.x series is considered deprecated and is no longer
supported by ALSA developers ***

Quoted 1 line

The author of the HOWTO is Matthias Nagorni.

AFAIK, his HOWTO is for 0.9 ...

--p

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#4 lore raw

Resetting audio device with ALSA

In reply to Philipp Vollmer

Hello, I'm having trouble with resetting an ALSA audio device (an RME 9652 Hammerfall card) when the audio input buffer overflows. I'm using the following code:

	rc = snd_pcm_drain(pcmIn);
	rc = snd_pcm_prepare(pcmIn);
	rc = snd_pcm_start(pcmIn);

where pcmIn is a snd_pcm_t* variable that's been initialized by snd_pcm_open. I don't usually any problems reading from the device using the same variable, and the return code from the above calls is always zero, but it appears that once my audio input buffer overflows, I can never get going again--it just keeps overflowing (snd_pcm_readn returns -EPIPE). Any ideas what I'm doing wrong?

Jon Webb
pingAUDIO

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en