~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to audio/sdlaudio.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#ifndef _WIN32
30
30
#ifdef __sun__
31
31
#define _POSIX_PTHREAD_SEMANTICS 1
 
32
#elif defined(__OpenBSD__) || defined(__FreeBSD__)
 
33
#include <pthread.h>
32
34
#endif
33
35
#include <signal.h>
34
36
#endif
49
51
    1024
50
52
};
51
53
 
52
 
struct SDLAudioState {
 
54
static struct SDLAudioState {
53
55
    int exit;
54
56
    SDL_mutex *mutex;
55
57
    SDL_sem *sem;
255
257
        decr = to_mix;
256
258
        while (to_mix) {
257
259
            int chunk = audio_MIN (to_mix, hw->samples - hw->rpos);
258
 
            st_sample_t *src = hw->mix_buf + hw->rpos;
 
260
            struct st_sample *src = hw->mix_buf + hw->rpos;
259
261
 
260
262
            /* dolog ("in callback to_mix %d, chunk %d\n", to_mix, chunk); */
261
263
            hw->clip (buf, src, chunk);
321
323
    sdl_close (&glob_sdl);
322
324
}
323
325
 
324
 
static int sdl_init_out (HWVoiceOut *hw, audsettings_t *as)
 
326
static int sdl_init_out (HWVoiceOut *hw, struct audsettings *as)
325
327
{
326
328
    SDLVoiceOut *sdl = (SDLVoiceOut *) hw;
327
329
    SDLAudioState *s = &glob_sdl;
330
332
    int endianess;
331
333
    int err;
332
334
    audfmt_e effective_fmt;
333
 
    audsettings_t obt_as;
 
335
    struct audsettings obt_as;
334
336
 
335
337
    shift <<= as->nchannels == 2;
336
338