All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: LWATCDR <lwatcdr@gmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Simple question.
Date: Tue, 03 Jan 2006 22:24:12 +0000	[thread overview]
Message-ID: <43BAF98C.6030408@superbug.co.uk> (raw)
In-Reply-To: <8c38cea40601031342s7b3158e2k99de34c50c4fb6ff@mail.gmail.com>

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

  reply	other threads:[~2006-01-03 22:24 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03 21:42 Simple question LWATCDR
2006-01-03 22:24 ` James Courtier-Dutton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-16  2:27 Simple Question Jeff
2007-05-22 12:35 simple question Filka Michal
     [not found] ` <da3a2a260705221120x3216601doee80f297904493a0@mail.gmail.com>
2007-05-23  5:33   ` Filka Michal
2006-04-14 19:27 Nebojsa Trpkovic
2006-04-15 18:33 ` Jacob Shin
2006-02-19  0:12 Niv
2006-02-19  0:44 ` Greg KH
2006-02-19  2:19 ` Mark Rosenstand
2006-02-19  2:26 ` Niv
2005-05-19  6:23 Ivan Georgiev
2005-05-19  6:23 ` Mark Studebaker
2005-05-19  6:23 ` Simple Question Jean Delvare
2005-05-19  6:23 ` Craig H. Block
2005-04-27 10:35 simple question Askar
2005-04-27 10:50 ` Mohamed Eldesoky
2005-04-27 10:58   ` Askar
2005-04-27 11:04     ` Cedric Blancher
2005-04-27 11:07       ` Cedric Blancher
2005-04-27 14:21 ` Jason Opperisano
2004-05-05 15:27 Simple question Oriol Magrané
2004-05-05 16:19 ` Aleksandar Milivojevic
2004-05-05 16:25 ` Antony Stone
2004-05-05 17:43 ` Martijn Lievaart
2004-05-06 21:45   ` Antony Stone
2003-07-31 17:53 simple question Zyman, Andy
2003-07-31 19:14 ` David Hinds
2003-07-31 20:41 ` Zyman, Andy
2003-07-31 20:59 ` David Hinds
2003-07-31 21:26 ` Joshua Schmidlkofer
2003-02-12 18:32 Simple question j.logsdon
2003-02-12 18:53 ` Jesse Pollard
2003-02-12 21:40   ` j.logsdon
2003-02-12 23:28     ` Russell Coker
2003-02-12 20:45 ` Russell Coker
2003-02-12 21:47 ` Howard Holm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43BAF98C.6030408@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=lwatcdr@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.