Mercurial > hg > svcore
comparison system/Init.cpp @ 174:f8cf055dbf34
* Restructure WavFileWriter a bit to permit writing from raw data as well as
from an existing model
author | Chris Cannam |
---|---|
date | Tue, 03 Oct 2006 10:06:37 +0000 |
parents | 4b2ea82fd0ed |
children | c7122e70f8ec |
comparison
equal
deleted
inserted
replaced
173:058a82e8bc3c | 174:f8cf055dbf34 |
---|---|
27 static int handle_x11_error(Display *dpy, XErrorEvent *err) | 27 static int handle_x11_error(Display *dpy, XErrorEvent *err) |
28 { | 28 { |
29 char errstr[256]; | 29 char errstr[256]; |
30 XGetErrorText(dpy, err->error_code, errstr, 256); | 30 XGetErrorText(dpy, err->error_code, errstr, 256); |
31 if (err->error_code != BadWindow) { | 31 if (err->error_code != BadWindow) { |
32 std::cerr << "waveform: X Error: " | 32 std::cerr << "Sonic Visualiser: X Error: " |
33 << errstr << " " << int(err->error_code) | 33 << errstr << " " << int(err->error_code) |
34 << "\nin major opcode: " | 34 << "\nin major opcode: " |
35 << int(err->request_code) << std::endl; | 35 << int(err->request_code) << std::endl; |
36 } | 36 } |
37 return 0; | 37 return 0; |