~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/sounddrv/soundsun.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
 
156
156
static int sun_write(SWORD *pbuf, size_t nr)
157
157
{
158
 
    int                 total, i, now;
 
158
    unsigned int total, i, now;
159
159
    if (sun_8bit)
160
160
    {
161
161
        /* XXX: ugly to change contents of the buffer */
183
183
 
184
184
static int sun_bufferspace(void)
185
185
{
186
 
    int st, size;
 
186
    int st;
 
187
#if defined(__NetBSD__)
 
188
    int size;
 
189
#endif
187
190
    struct audio_info   info;
188
191
    /* ioctl(fd, AUDIO_GET_STATUS, &info) yields number of played samples
189
192
       in info.play.samples. */