Exemplo n.º 1
0
static void
vox_write (struct sound_device *sd, const char *buffer, int nbytes)
{
  int nwritten = emacs_write (sd->fd, buffer, nbytes);
  if (nwritten < 0)
    sound_perror ("Error writing to sound device");
}
Exemplo n.º 2
0
static void
vox_write (struct sound_device *sd, const char *buffer, EMACS_INT nbytes)
{
  if (emacs_write (sd->fd, buffer, nbytes) != nbytes)
    sound_perror ("Error writing to sound device");
}