~ubuntu-branches/debian/sid/bristol/sid

« back to all changes in this revision

Viewing changes to bristol/soundManager.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-02-15 02:54:23 UTC
  • mfrom: (13.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110215025423-g8hcla5gyl08mae3
Tags: 0.60.8-2
* Upload to unstable.
* Relax JACK's build-deps to let this build in sid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
19
19
 *
20
20
 */
 
21
#include <stdlib.h>
21
22
#include "bristol.h"
22
23
 
23
24
extern audioMain audiomain;
27
28
dropBristolOp(int op, bristolOP *palette[])
28
29
{
29
30
        bristolSound *newsound;
 
31
        int i = 5;
30
32
 
31
33
        if (palette == NULL)
32
34
                midithreadexit();
33
35
 
 
36
        if (palette[op] == NULL)
 
37
        {
 
38
                printf("Null palette entry %i\n", op);
 
39
 
 
40
                while (palette[op] == NULL) {
 
41
                        sleep(1);
 
42
 
 
43
                        if (--i == 0)
 
44
                        {
 
45
                                printf("Null pallet entry: unrecovered\n");
 
46
                                exit(0);
 
47
                        }
 
48
                }
 
49
 
 
50
                if (palette[0] == NULL)
 
51
                        printf("Null zero palette entry\n");
 
52
                else
 
53
                        printf("%s\n", palette[0]->specs->opname);
 
54
 
 
55
                i = 5;
 
56
 
 
57
                while (palette[0] == NULL) {
 
58
                        sleep(1);
 
59
 
 
60
                        if (--i == 0)
 
61
                        {
 
62
                                printf("Null zero pallet entry: unrecovered\n");
 
63
                                exit(0);
 
64
                        }
 
65
                }
 
66
 
 
67
                printf("recovered\n");
 
68
        }
 
69
 
 
70
        i = 5;
 
71
 
 
72
        if (palette[op]->specs == NULL)
 
73
        {
 
74
                printf("Null palette specification\n");
 
75
 
 
76
                while (palette[op]->specs == NULL) {
 
77
                        sleep(1);
 
78
 
 
79
                        if (--i == 0)
 
80
                        {
 
81
                                printf("Null zero pallet entry: unrecovered\n");
 
82
                                exit(0);
 
83
                        }
 
84
                }
 
85
 
 
86
                printf("Null palette specification, recovered\n");
 
87
        }
 
88
 
34
89
        /*
35
90
         * Allocate the sound structure.
36
91
         */