Mercurial > hg > dmlib
comparison minijss/jssplr.c @ 1167:848a88ce7a57
Use dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 07:37:35 +0200 |
parents | aa3738b121d1 |
children | 6aa0897265e8 |
comparison
equal
deleted
inserted
replaced
1166:f29fa5b6b748 | 1167:848a88ce7a57 |
---|---|
265 #ifdef JSS_SUP_THREADS | 265 #ifdef JSS_SUP_THREADS |
266 dmDestroyMutex(mp->mutex); | 266 dmDestroyMutex(mp->mutex); |
267 #endif | 267 #endif |
268 | 268 |
269 // Clear structure | 269 // Clear structure |
270 memset(mp, 0, sizeof(JSSPlayer)); | 270 dmMemset(mp, 0, sizeof(JSSPlayer)); |
271 dmFree(mp); | 271 dmFree(mp); |
272 | 272 |
273 return DMERR_OK; | 273 return DMERR_OK; |
274 } | 274 } |
275 | 275 |
285 | 285 |
286 /* Clear module player structure | 286 /* Clear module player structure |
287 */ | 287 */ |
288 void jmpClearChannel(JSSPlayerChannel *chn) | 288 void jmpClearChannel(JSSPlayerChannel *chn) |
289 { | 289 { |
290 memset(chn, 0, sizeof(JSSPlayerChannel)); | 290 dmMemset(chn, 0, sizeof(JSSPlayerChannel)); |
291 | 291 |
292 chn->note = jsetNotSet; | 292 chn->note = jsetNotSet; |
293 chn->ninstrument = jsetNotSet; | 293 chn->ninstrument = jsetNotSet; |
294 chn->nextInstrument = jsetNotSet; | 294 chn->nextInstrument = jsetNotSet; |
295 chn->panning = mpPanCenter; | 295 chn->panning = mpPanCenter; |