Mercurial > hg > dmlib
comparison minijss/jssplr.c @ 2414:69a5af2eb1ea
Remove useless dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 23:27:01 +0200 |
parents | 3b71aa1ef915 |
children | 9807ae37ad69 |
comparison
equal
deleted
inserted
replaced
2413:902cc22018a1 | 2414:69a5af2eb1ea |
---|---|
266 #ifdef JSS_SUP_THREADS | 266 #ifdef JSS_SUP_THREADS |
267 dmDestroyMutex(mp->mutex); | 267 dmDestroyMutex(mp->mutex); |
268 #endif | 268 #endif |
269 | 269 |
270 // Clear structure | 270 // Clear structure |
271 dmMemset(mp, 0, sizeof(JSSPlayer)); | 271 memset(mp, 0, sizeof(JSSPlayer)); |
272 dmFree(mp); | 272 dmFree(mp); |
273 | 273 |
274 return DMERR_OK; | 274 return DMERR_OK; |
275 } | 275 } |
276 | 276 |
286 | 286 |
287 /* Clear module player structure | 287 /* Clear module player structure |
288 */ | 288 */ |
289 void jmpClearChannel(JSSPlayerChannel *chn) | 289 void jmpClearChannel(JSSPlayerChannel *chn) |
290 { | 290 { |
291 dmMemset(chn, 0, sizeof(JSSPlayerChannel)); | 291 memset(chn, 0, sizeof(JSSPlayerChannel)); |
292 | 292 |
293 chn->note = jsetNotSet; | 293 chn->note = jsetNotSet; |
294 chn->ninstrument = jsetNotSet; | 294 chn->ninstrument = jsetNotSet; |
295 chn->nextInstrument = jsetNotSet; | 295 chn->nextInstrument = jsetNotSet; |
296 chn->panning = mpPanCenter; | 296 chn->panning = mpPanCenter; |