~ubuntu-branches/debian/sid/mpc123/sid

« back to all changes in this revision

Viewing changes to ao.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniele Sempione
  • Date: 2008-03-21 23:45:34 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080321234534-1l5v91nii5oy0i32
Tags: 0.2.4-1
* New upstream release (Closes: #459317)
  + bug fixes
  + added i18n support (it)
* Bump Standards-Version to 3.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  mpc123 - Musepack Console audio player
3
 
 *  Copyright (C) 2005, 2006 Fernando Vezzosi <fvezzosi at masobit.net>
 
3
 *  Copyright (C) 2005-2008 Fernando Vezzosi <fv at linuxvar.it>
4
4
 *
5
5
 *  This program is free software; you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
67
67
 
68
68
  *d=malloc(sizeof(mpc123_ao_data));
69
69
  mpc123_ao_data * data=(mpc123_ao_data *) *d;
 
70
 
 
71
  data->output_buffer=NULL;
 
72
  data->output_buffer_size=0U;
70
73
  
71
74
  ao_initialize();
72
75
 
145
148
  }
146
149
  
147
150
  if( !data->ao_dev ){
148
 
    dief("Could not open audio output: [%d] %s\n", errno, strerror(errno));
 
151
    dief(_("Could not open audio output: [%d] %s\n"), errno, strerror(errno));
149
152
  }
150
153
 
151
154
  if(opt_head)
189
192
  }
190
193
 
191
194
  if(!output){
192
 
    dief("Out of memory (needed 0x%08x bytes)\n", bytes);
 
195
    dief(_("Out of memory (needed 0x%08x bytes)\n"), bytes);
193
196
  }
194
197
 
195
198
  /* code stolen from xmms-musepack */