* Simple question.
@ 2006-01-03 21:42 LWATCDR
2006-01-03 22:24 ` James Courtier-Dutton
0 siblings, 1 reply; 2+ messages in thread
From: LWATCDR @ 2006-01-03 21:42 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
I am just starting to work with Alsa I compiled a test program from one of
the tutorials and I am getting this error message.
Unknown Error 126.
Does anyone know what error 126 is?
I am using "plughw:0,0" as the device name.
and this is the segment of code that generates the error.
for (i = 0; i < 10; ++i) {
if ((err = snd_pcm_writei (playback_handle, buf, 128)) != 128) {
fprintf (stderr, "write to audio interface failed (%s)\n", snd_strerror
(err));
exit (1);
}
}
I am running Suse 9.3+kde 3.5
I hope this is the correct list to ask this.
[-- Attachment #2: Type: text/html, Size: 685 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Simple question.
2006-01-03 21:42 Simple question LWATCDR
@ 2006-01-03 22:24 ` James Courtier-Dutton
0 siblings, 0 replies; 2+ messages in thread
From: James Courtier-Dutton @ 2006-01-03 22:24 UTC (permalink / raw)
To: LWATCDR; +Cc: alsa-devel
LWATCDR wrote:
> I am just starting to work with Alsa I compiled a test program from one of
> the tutorials and I am getting this error message.
> Unknown Error 126.
> Does anyone know what error 126 is?
> I am using "plughw:0,0" as the device name.
> and this is the segment of code that generates the error.
>
> for (i = 0; i < 10; ++i) {
> if ((err = snd_pcm_writei (playback_handle, buf, 128)) != 128) {
> fprintf (stderr, "write to audio interface failed (%s)\n", snd_strerror
> (err));
> exit (1);
> }
> }
>
>
> I am running Suse 9.3+kde 3.5
>
> I hope this is the correct list to ask this.
>
If the err > 0, it tells you how many frames were written to the sound
card. As you can see here, 126 frames were written, probably due to
sound card's hardware buffer being full.
James
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-03 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-03 21:42 Simple question LWATCDR
2006-01-03 22:24 ` James Courtier-Dutton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox