Mercurial > hg > xmms-sid
comparison src/xs_sidplay2.cc @ 232:e613873c3379
Thread locking now final. All parts, including GTK GUI, should be(?)
properly locked and no race conditions should be present.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Dec 2004 13:13:05 +0000 |
parents | 608f31f6c095 |
children | 583f5651abff |
comparison
equal
deleted
inserted
replaced
231:9d7274a11fb1 | 232:e613873c3379 |
---|---|
194 | 194 |
195 | 195 |
196 guint xs_sidplay2_fillbuffer(t_xs_status *myStatus, gchar *audioBuffer, guint audioBufSize) | 196 guint xs_sidplay2_fillbuffer(t_xs_status *myStatus, gchar *audioBuffer, guint audioBufSize) |
197 { | 197 { |
198 t_xs_sidplay2 *myEngine = (t_xs_sidplay2 *) myStatus->sidEngine; | 198 t_xs_sidplay2 *myEngine = (t_xs_sidplay2 *) myStatus->sidEngine; |
199 | |
200 if (!myEngine) return 0; | |
199 | 201 |
200 return myEngine->currEng->play(audioBuffer, audioBufSize); | 202 return myEngine->currEng->play(audioBuffer, audioBufSize); |
201 } | 203 } |
202 | 204 |
203 | 205 |