problem using ESounD



can anyone help me w/ this please?

i have no clue what's causing my program not to work correctly.  esd is
set to esd_play_stream_fallback.  the execution faults at this line:

=> bytesWritten = write(esd, buffer, thisWhack);

...where buffer =
 {0 <repeats 190 times>, 8, 32, 64, 104, 164, 228, 308, 356, 396, 428,
  396, 356, 276, 164, 32, -132, -324, -524, -748, -988, -1180, -1180,
-1180,
  -1052, -844, -556, -308, -80, 120, 228, 244, 244, 212, 164, 132, 132,
164,
  180, 196, 212, 180, 96, -8, -120, -244, -372, -428, -460, -428, -396,
-308,
  -228, -164, -120, -88, -80, -96, -104, -96, -88, -64, -32, 8, 32, 40,
40}


...thisWhack = 512
...and esd = 0.

ESD seg-faults and my program receives this:
  Program received signal SIGPIPE, Broken pipe.
  0x2adfadf4 in __libc_write () from /lib/libc.so.6

any clue?

-Tim




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]