Commit Graph
258 Commits
Author SHA1 Message Date
Axel Dörfler 09d31e11ec Now sets the mediaHeader->start_time in Decode() (hopefully correct).
Also fixed a crashing bug if the decoder was not setup with data from
the MusePackReader.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 01:06:43 +00:00
shatty e2b605b45c ogg/vorbis update to MetaData. ogg update to do codec identification for vorbis, and to meta-data all header packets for each stream
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 00:29:53 +00:00
Axel Dörfler 9aa7863ddb Added some missing pieces to get the engine to work with our codec API.
It's even working a bit (you hear something that's at least similar to
what you should hear :).
Since the underlying engine doesn't differentiate between container and
contents, this looks like a hack, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:38:44 +00:00
Axel Dörfler af18100b2f Fixed class inheritance so that the decoder will be found as well.
RegisterPlugin() didn't return B_OK.
Removed unused headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:13:31 +00:00
Axel Dörfler e74116611d The MPC_decoder class now contains a pointer to the StreamInfo set by
SetStreamInfo() (because MusePackDecoder can use this data).
Removed some other unused lines.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:10:29 +00:00
beveloper ac4bd49716 added missing newlines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 21:33:31 +00:00
shatty 21290602d8 better Seek failure handling, use MetaData to pass information to decoder, do not use infoBuffer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:13:29 +00:00
shatty e065a2e0e7 divide GetNextChunk and non-const media_format behavior into new member function InitializeInput
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:11:44 +00:00
Axel Dörfler 3b3284c27f Implemented some basic functionality (namely Sniff() and GetStreamInfo()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:43:54 +00:00
Axel Dörfler 9216785b33 Missed some changes; compiled well as long as nobody tried to use it :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:42:22 +00:00
Axel Dörfler 1cf1e4e9d2 Added MusePack media file add-on to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:21:55 +00:00
Axel Dörfler 434ee6c260 Added clean and empty decoder/reader add-on code :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:17:30 +00:00
Axel Dörfler ed8ce55582 Add the license information for the MPC package.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:11:16 +00:00
Axel Dörfler 8267ce8bbc Added the MusePack (MPC) engine to our repository - it's the one use in the
WinAMP plugin and is licensed under the LGPL. I've already ported it to BeOS,
so it does compile without warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:04:27 +00:00
beveloper 54348708ae suggest buffer size of 50 ms
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 18:05:23 +00:00
shatty 632673435d bye bye xvid_decoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-05 02:41:11 +00:00
shatty fe738f96ca fix error in trace string
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:38:37 +00:00
shatty bbeea88122 bail if error on seek
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:38:00 +00:00
beveloper 1e078f747a bugfix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 02:09:31 +00:00
beveloper b0763800c1 removed a little debug output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 00:44:45 +00:00
shatty f339b6e0b5 clean vorbis seek requires discarding pending samples from the dsp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 12:19:37 +00:00
shatty 7bbf8af761 clean ogg seeking. goes to next ogg page start.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 11:48:38 +00:00
shatty 07e5dd5b93 ogg_sync_reset is better than ogg_sync_clear
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 07:21:33 +00:00
shatty e6fb4d8f4d yay for fake seeking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 06:44:25 +00:00
shatty c68b568d9b capture BPositionIO if available. use it to compute a duration estimate. [estimate only for right now]
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 04:34:26 +00:00
shatty 8f54fc7b8a remove unused fields
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 04:33:43 +00:00
shatty b52b0133da handle B_LAST_BUFFER_ERROR from GetNextChunk. properly return a non-full buffer if we got anything decoded. if the buffer has no data, set framecount to zero, and return B_LAST_BUFFER_ERROR.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 01:34:42 +00:00
shatty a6eabaff96 remove tight loop in GetPage, and return B_LAST_BUFFER_ERROR properly from GetNextChunk instead
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 01:15:58 +00:00
shatty 819b668c92 optimizations
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 00:04:54 +00:00
shatty efbf8d83ed sounds good :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 23:43:18 +00:00
shatty a2b3fc7c80 new Decode implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 23:00:38 +00:00
beveloper 272d533500 starting avi reader...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 14:52:59 +00:00
beveloper bb1d6ef247 raw decoder supports many samples types now, and support for them
has been added to the file readers, you can now play 24 bit integer
or 64 bit floating point files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 14:51:14 +00:00
beveloper cf706dc774 fixed lockup with 8 channel (or more) soundfiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 14:45:57 +00:00
shatty 7abc3cd77b missing Jamfile
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 20:06:32 +00:00
shatty 6a6671853d crashing nicely
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 20:06:11 +00:00
shatty b6a3f35ba0 trust ogg decoder more, fewer debugger calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 18:44:06 +00:00
shatty 77ae533d3c allocate ogg_stream_states dynamically, hold pointers to them in the map, check sync return result during GetPage, add myriad of vorbisDecoder debug calls, introduce temporary variables to ease debugging
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 17:39:43 +00:00
shatty fac65e8045 vorbis decoder take 1
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 14:07:53 +00:00
shatty fa5c397539 initial packets are header packets that contain codec identication information. ogg can contain other types such as text. capture initial packets. remove unused #define
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 11:41:59 +00:00
shatty dd47be5008 add extra TRACE, use explicit debugger calls, fix short_page bug, fix deallocation bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 10:34:16 +00:00
shatty 439271f084 getnextchunk
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 08:15:36 +00:00
shatty 8267371e90 compilable, missing seek, getnextchunk
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-26 04:42:41 +00:00
shatty aff76afa86 remove mp3 cruft
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-25 10:54:48 +00:00
shatty 103bafad5e identify ogg
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-25 10:54:15 +00:00
beveloper 56fc4e779e removed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 23:26:12 +00:00
beveloper b2e54a92e3 adding a reader for the AIFF and AIFF-C formats
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 23:23:40 +00:00
beveloper 91e76129e7 bugfix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 23:20:41 +00:00
beveloper b1a94814dd fixed a couple of issues with id3attr
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 00:56:35 +00:00
beveloper 0b3cd7531c bad hack to fix sync after seek
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 00:26:45 +00:00