Skip to contentSkip to conversation

Simple question.

DISCUSSION LWATCDR 2 participants 2 messages Jan 3, 2006

lore
Share & tools
lore

LWATCDR

author
#0 lore raw

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.

#1 lore raw
Quoted 16 lines · LWATCDR

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);
    }
}
Quoted 4 lines

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