Support and General Use > Audio Playback, Database and Playlists

Large oggs with chained streams

<< < (3/3)

pabouk:

--- Quote ---26 Nov 20:56   Tomasz Malesinski
apps/codecs/Tremor/SOURCES 1.3
apps/codecs/Tremor/oggmalloc.c 1.1
apps/codecs/Tremor/os_types.h 1.5
apps/codecs/Tremor/sharedbook.c 1.7
apps/codecs/vorbis.c 1.27
FS#6357, patch 3: implemented simple temporary malloc for the Vorbis decoder.
--- End quote ---
Is this malloc implementation sufficient to enable playback of ogg files with chained streams? Could not the initial implementation circumvent Lear's last point by treating the multiple streams as a single track?

Some internet radios use ogg with chained streams to be able to change the song title during playback. Unfortunately such captured broadcasts cannot be played in Rockbox.

Lear:

--- Quote from: pabouk on November 27, 2006, 04:43:45 AM ---Is this malloc implementation sufficient to enable playback of ogg files with chained streams? Could not the initial implementation circumvent Lear's last point by treating the multiple streams as a single track?

--- End quote ---

No, that malloc is for temporary things within Tremor, typically where a function allocates some memory, do a bit of processing and then free the memory again. One of the problems here is that Tremor will allocate memory for parsing/buffering the file ("Ogg buffers") as well as various stream data ("Vorbis buffers"). When changing streams, all Vorbis buffers need to be freed, but the Ogg buffers should be kept.

Navigation

[0] Message Index

[*] Previous page

Go to full version