Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audiocvt.c @ 2879:3ff86c46d324
Use SDL_zerop instead of SDL_memset.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 19 Dec 2008 06:43:41 +0000 |
parents | 10c319ce07fb |
children | 3c2f56e433a8 |
comparison
equal
deleted
inserted
replaced
2878:10c319ce07fb | 2879:3ff86c46d324 |
---|---|
1834 printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n", | 1834 printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n", |
1835 src_fmt, dst_fmt, src_channels, dst_channels, src_rate, dst_rate); | 1835 src_fmt, dst_fmt, src_channels, dst_channels, src_rate, dst_rate); |
1836 #endif | 1836 #endif |
1837 | 1837 |
1838 /* Start off with no conversion necessary */ | 1838 /* Start off with no conversion necessary */ |
1839 SDL_memset(cvt, '\0', sizeof (SDL_AudioCVT)); | 1839 SDL_zerop(cvt); |
1840 cvt->src_format = src_fmt; | 1840 cvt->src_format = src_fmt; |
1841 cvt->dst_format = dst_fmt; | 1841 cvt->dst_format = dst_fmt; |
1842 cvt->needed = 0; | 1842 cvt->needed = 0; |
1843 cvt->filter_index = 0; | 1843 cvt->filter_index = 0; |
1844 cvt->filters[0] = NULL; | 1844 cvt->filters[0] = NULL; |