diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-22 14:40:13 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-22 14:40:13 +0000 |
| commit | f3bc1efc49826454a895c1c1f46fbe2cfd23f492 (patch) | |
| tree | 676d501a9e75a9420f07a13f1d7fc1c5820b432a /apps/codecs/vorbis.c | |
| parent | b5991b27cafa8cc8bd2e86e04110beec34a587e0 (diff) | |
| download | rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.zip rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.tar.gz rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.tar.bz2 rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.tar.xz | |
First commit of reworking voice to be mroe stable on swcodec
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9758 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/vorbis.c')
| -rw-r--r-- | apps/codecs/vorbis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c index a9a2745..1900364 100644 --- a/apps/codecs/vorbis.c +++ b/apps/codecs/vorbis.c @@ -129,7 +129,6 @@ enum codec_status codec_start(struct codec_api *api) rb->memset(iedata, 0, iend - iedata); #endif - rb->configure(CODEC_DSP_ENABLE, (bool *)true); rb->configure(DSP_DITHER, (bool *)false); rb->configure(DSP_SET_SAMPLE_DEPTH, (long *)24); rb->configure(DSP_SET_CLIP_MAX, (long *)((1 << 24) - 1)); @@ -194,7 +193,7 @@ next_track: } else { //rb->logf("ov_open: %d", error); error = CODEC_ERROR; - goto exit; + goto done; } if (rb->id3->offset) { @@ -224,7 +223,7 @@ next_track: if (current_section != previous_section) { if (!vorbis_set_codec_parameters(&vf)) { error = CODEC_ERROR; - goto exit; + goto done; } else { previous_section = current_section; } @@ -243,7 +242,9 @@ next_track: rb->set_elapsed(ov_time_tell(&vf)); } } + error = CODEC_OK; +done: if (rb->request_next_track()) { /* Clean things up for the next track */ vf.dataoffsets = NULL; @@ -255,7 +256,6 @@ next_track: goto next_track; } - error = CODEC_OK; exit: return error; } |