comparison decoders/voc.c @ 449:daeb71a3f1ed

Extremely minor cleanup.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 13 Sep 2003 20:27:33 +0000
parents c42ac9ee2ce4
children cd46c97e58bc
comparison
equal deleted inserted replaced
448:139cb6ef0491 449:daeb71a3f1ed
452 return(0); 452 return(0);
453 453
454 v = (vs_t *) malloc(sizeof (vs_t)); 454 v = (vs_t *) malloc(sizeof (vs_t));
455 BAIL_IF_MACRO(v == NULL, ERR_OUT_OF_MEMORY, 0); 455 BAIL_IF_MACRO(v == NULL, ERR_OUT_OF_MEMORY, 0);
456 memset(v, '\0', sizeof (vs_t)); 456 memset(v, '\0', sizeof (vs_t));
457 internal->decoder_private = v;
458 457
459 v->start_pos = SDL_RWtell(internal->rw); 458 v->start_pos = SDL_RWtell(internal->rw);
460 v->rate = -1; 459 v->rate = -1;
461 if (!voc_get_block(sample)) 460 if (!voc_get_block(sample))
462 { 461 {
472 471
473 SNDDBG(("VOC: Accepting data stream.\n")); 472 SNDDBG(("VOC: Accepting data stream.\n"));
474 sample->actual.format = (v->size == ST_SIZE_WORD) ? AUDIO_S16LSB:AUDIO_U8; 473 sample->actual.format = (v->size == ST_SIZE_WORD) ? AUDIO_S16LSB:AUDIO_U8;
475 sample->actual.channels = v->channels; 474 sample->actual.channels = v->channels;
476 sample->flags = SOUND_SAMPLEFLAG_CANSEEK; 475 sample->flags = SOUND_SAMPLEFLAG_CANSEEK;
476 internal->decoder_private = v;
477 return(1); 477 return(1);
478 } /* VOC_open */ 478 } /* VOC_open */
479 479
480 480
481 static void VOC_close(Sound_Sample *sample) 481 static void VOC_close(Sound_Sample *sample)