MPEG/MP3 and url
John M McIntosh
johnmci at smalltalkconsulting.com
Sun Oct 22 02:49:52 UTC 2000
> > Steams????
>> An exercise for reader?
>> One could explore writting to a file, and have the player read the
>> file? I'm not sure if this allowed? Otherwise some C magic would be
>> needed to fake file I/O from the stream.
>There are lot's of stuff here I don't understand enough of to get me going...
>What is the primitive looking for in the file ? Can't one just write
>just that info out to a file and when the prim ok's it give it the
>I'll have to look deeper to understand this :-)
Ok all the file IO I think is located in mpeg3io.c see
mpeg3io_read_data for the fread. Basically you do fseeks and freads
to get data based on the MPEG model and how you are uncoding the
data. This would be replaced by an interface to a positional stream.
Of course the trick here is how would you do that?
Thoughts on this are welcome.
(Hint I picked this code because the source has some sort of
design/coherence to it) Some other MPEG code is really UGLY...
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7 E94A EE69 2D21 46FC 3BE6
More information about the Squeak-dev