From: James Courtier-D. <Ja...@su...> - 2003-07-20 21:40:19
|
Siggi Langauf wrote: > On Sun, 20 Jul 2003, Mike Melanson wrote: > > >> I just updated xine from CVS. Why does xine now print out an >>interminable pile of these messages now? >> >>Obtained 1 stack frames. >>/usr/local/lib/libxine.so.1(xine_print_trace+0x12) [0x40105c22] >>audio_out.c: OOPS, your player reached a bad state >>audio_out.c: please send a report with the full console output to the xine >>team. >>audio_out.c:ao_loop:1067: assertion `result == 1' failed. write to sound >>card failed. Was a USB device unplugged? > > > That's James' code to detect vanished audio devices. > > I'm going to disable the message for our rc0 release. > > Cheers, > Siggi > > I wrote my code based on the api documentation. /* * write audio data to output buffer * audio driver must sync sample playback with metronom * return value: * 1 => audio samples were processed ok * 0 => audio samples were not yet processed, * call write_audio_data with the _same_ samples again */ int (*write)(ao_driver_t *, int16_t* audio_data, uint32_t num_samples); |