pcm_utils: added pcm_convert_init()
Instead of manually calling memset(0) on the pcm_convert_state struct, client code should use a library function from pcm_utils.c. This way, we can change the semantics of the struct easily.
This commit is contained in:
@@ -90,7 +90,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param)
|
||||
ao->convBuffer = NULL;
|
||||
ao->convBufferLen = 0;
|
||||
|
||||
memset(&ao->convState, 0, sizeof(ao->convState));
|
||||
pcm_convert_init(&ao->convState);
|
||||
|
||||
if (format) {
|
||||
if (0 != parseAudioConfig(&ao->reqAudioFormat, format)) {
|
||||
|
Reference in New Issue
Block a user