~ubuntu-branches/ubuntu/saucy/alogg/saucy

« back to all changes in this revision

Viewing changes to alogg_thread.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc 'HE' Brockschmidt
  • Date: 2008-03-08 23:46:43 UTC
  • mfrom: (2.1.5 hardy)
  • Revision ID: james.westby@ubuntu.com-20080308234643-ul9c71trvpkduuvl
Tags: 1.3.7-1.1
* Non-maintainer upload.
* Fix bashism. (Closes: #465003)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "aloggurl.h"
42
42
#endif
43
43
#include "aloggpth.h"
 
44
#include "aloggint.h"
44
45
 
45
46
#define BLOCK_SIZE 40960
46
47
 
87
88
    exit(1);
88
89
  }
89
90
 
 
91
#if ALLEGRO_IS_VERSION_OR_NEWER(4,1,0)
 
92
  if (allegro_init()) {
 
93
    fprintf(stderr,"Failed to install Allegro: %s\n",allegro_error);
 
94
    exit(1);
 
95
  }
 
96
#else
90
97
  allegro_init();
 
98
#endif
91
99
  set_display_switch_mode(SWITCH_BACKAMNESIA);
92
100
  alogg_init();
93
101
 
94
102
  install_timer();
95
 
  set_volume_per_voice(0);
96
103
  if (install_sound(DIGI_AUTODETECT,MIDI_NONE,NULL)<0) {
97
 
    fprintf(stderr,"Failed to install sound\n");
 
104
    fprintf(stderr,"Failed to install sound: %s\n",allegro_error);
98
105
    alogg_exit();
99
106
    exit(1);
100
107
  }