gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libmedia AudioDecoder.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash/libmedia AudioDecoder.h
Date: Wed, 11 Jun 2008 18:07:52 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/06/11 18:07:52

Modified files:
        libmedia       : AudioDecoder.h 

Log message:
        update comment about how to delete data returned by decode

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libmedia/AudioDecoder.h?cvsroot=gnash&r1=1.13&r2=1.14

Patches:
Index: AudioDecoder.h
===================================================================
RCS file: /sources/gnash/gnash/libmedia/AudioDecoder.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- AudioDecoder.h      6 Jun 2008 10:19:59 -0000       1.13
+++ AudioDecoder.h      11 Jun 2008 18:07:52 -0000      1.14
@@ -83,7 +83,9 @@
        ///     Should we parse the audio? Needed for embedded MP3 sounds.
        ///
        /// @return a pointer to the decoded data, or NULL if decoding fails.
-       ///     The caller owns the decoded data.
+       ///     The caller owns the decoded data, which was allocated with new 
[].
+       ///
+       /// TODO: return a gnash::Buffer
        ///
        virtual boost::uint8_t* decode(boost::uint8_t* /*input*/, 
boost::uint32_t /*inputSize*/, boost::uint32_t& /*outputSize*/, 
boost::uint32_t& /*decodedData*/, bool /*parse*/) { return NULL; }
 
@@ -96,7 +98,9 @@
        ///     The output size of the video data, is passed by reference.
        ///
        /// @return a pointer to the decoded data, or NULL if decoding fails.
-       ///     The caller owns the decoded data.
+       ///     The caller owns the decoded data, which was allocated with new 
[].
+       ///
+       /// TODO: return a gnash::Buffer
        ///
        virtual boost::uint8_t* decode(const EncodedAudioFrame& /*input*/,
                                       boost::uint32_t& /*outputSize*/)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]