Johannes Schickel
a5adbb851a
Fix use of getRate in VorbisInputStream's constructor. (Thanks to cyx for spotting this)
...
svn-id: r47144
2010-01-07 23:50:18 +00:00
Johannes Schickel
aa2f55ddc6
Remove the deprecated FLAC, Vorbis and MP3 factories.
...
svn-id: r47134
2010-01-07 17:14:44 +00:00
Johannes Schickel
ca5e137945
Create a wrapper makeLoopingAudioStream to reduce code duplcation.
...
svn-id: r47128
2010-01-07 16:18:03 +00:00
Max Horn
423094cd5f
Fix warning
...
svn-id: r47119
2010-01-07 15:11:46 +00:00
Johannes Schickel
b80779824f
- Strip custom looping code out of FLAC, Vorbis and MP3 streams
...
- Adapt the legacy make*Stream factories to use the new AudioStream subclasses
- Change return value of make*Stream back to AudioStream *
svn-id: r47111
2010-01-07 14:22:24 +00:00
Johannes Schickel
8c79b6f6ee
Adapt FLAC and Vorbis to use calculateSampleOffset in their seek implementation.
...
svn-id: r47085
2010-01-06 16:11:21 +00:00
Johannes Schickel
81a94a0644
- Put the new factories for MP3, Vorbis and FLAC in place.
...
- Marked the loop factories with loop related parameters as deprecated.
svn-id: r47061
2010-01-05 23:59:28 +00:00
Johannes Schickel
920dac2f9d
Remove unsafe getTotalPlayTime from AudioStream.
...
svn-id: r47037
2010-01-05 20:14:28 +00:00
Johannes Schickel
e9a94ecb9b
Add a "getLength" function to SeekableAudioStream.
...
svn-id: r47036
2010-01-05 20:13:31 +00:00
Johannes Schickel
f5c3bd887e
- Add a new SeekableAudioStream interface. Soon to be used to replace audio stream specific looping code by generic code in Mixer...
...
- Adapted some existing AudioStreams to implement that interface (not tested!)
svn-id: r47013
2010-01-05 02:27:24 +00:00
Johannes Schickel
137744c40c
This time properly fix getTotalPlayTime for looped FLAC, MP3 and VORBIS audio streams.
...
svn-id: r46863
2010-01-01 22:57:08 +00:00
Johannes Schickel
6109275750
Properly reset _numPlayedLoops in setNumLoops in all AudioStream implementations implementing setNumLoops.
...
svn-id: r46861
2010-01-01 22:55:38 +00:00
Johannes Schickel
bba2c8ce95
Fix getTotalPlayTime for MP3, FLAC, Vorbis and LinearMemoryStream after the latest loop related changes.
...
svn-id: r46838
2010-01-01 16:57:23 +00:00
Eugene Sandulenko
622dd0d16d
Implemented setNumLoops() for common audio streams.
...
Implemented getNumPlayedLoops() for common audio streams.
Requested by m_kriewitz.
svn-id: r46836
2010-01-01 16:28:22 +00:00
Andre Heider
29bb8a59ee
If an error occured on constructing a VorbisInputStream, return 0 from makeVorbisStream, just like makeFlacStream does.
...
svn-id: r44556
2009-10-03 19:27:10 +00:00
Andre Heider
3045ecce2f
Removed an assert() in favour of error checking.
...
svn-id: r44278
2009-09-23 21:14:37 +00:00
Max Horn
a6b57dc3a9
- Added GCC_PRINTF attribute to several funcs where it makes sense
...
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings
svn-id: r42009
2009-07-01 20:51:04 +00:00
Max Horn
341bc64aaf
do not include common/debug.h from common/util.h
...
svn-id: r36143
2009-01-30 05:25:17 +00:00
Nicola Mettifogo
12106a1599
Removed useless dependencies from common/file.h in common code. When complete removal was not possibile, dependency has been pushed to the cpp files from the headers.
...
svn-id: r34343
2008-09-05 11:41:39 +00:00
Johannes Schickel
ff573ec1e2
Instead of simply returning 0 for "infinite" looping in FLAC and OGG/Vorbis streams in getTotalPlayTime return kUnknownPlayTime.
...
svn-id: r32265
2008-05-24 23:58:22 +00:00
Johannes Schickel
cff8ccccc9
Take numLoops in account for getTotalPlayTime in FLAC and OGG/Vorbis streams.
...
svn-id: r32264
2008-05-24 23:49:15 +00:00
Johannes Schickel
aba5082d19
Implementation of AudioStream::getTotalPlayTime for FLAC and OGG/Vorbis streams.
...
svn-id: r32263
2008-05-24 23:39:13 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
11b2806741
Removed the old (obsolete) audiostream factories for MP3/Vorbis/FLAC data which took a File pointer and a size (these were only implemented as brain-dead wrapper around the newer factory methods anyway)
...
svn-id: r28110
2007-07-15 18:29:05 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
2aeb84f12a
Got rid of the last traces of DigitalTrackInfo
...
svn-id: r26477
2007-04-14 18:51:38 +00:00
Max Horn
65b30d84a8
Added numLoops parameter to DigitalTrackInfo::play
...
svn-id: r25836
2007-02-24 23:19:53 +00:00
Max Horn
52eebf9192
added yet another #pragma mark to the vorbis code (just for the sake of *my* text editor -- yeah, I'm selfish :-)
...
svn-id: r25795
2007-02-22 18:38:05 +00:00
Max Horn
4dae49e75a
cleanup
...
svn-id: r25794
2007-02-22 18:35:57 +00:00
Max Horn
82ae8daccf
Reduce chance for overflows in VorbisTrackInfo::play
...
svn-id: r25793
2007-02-22 18:33:01 +00:00
Max Horn
8ce7566c8d
Updated FLAC code to match the changes made to the MP3 & Vorbis decoders (e.g. use a SeekableReadStream for input, allow specifying parts of a stream via time-valued parameters, etc.) -- note: looping is not yet implemented, even though it is already present in the API
...
svn-id: r25792
2007-02-22 18:21:01 +00:00
Max Horn
f16ab37698
Added looping support and an enhanced factory function to the Vorbis code
...
svn-id: r25789
2007-02-22 14:30:12 +00:00
Max Horn
2c1445056d
Rewrote Ogg Vorbis code to be more flexible when it comes to seeking; also now playback from arbitrary SeekableReadStream data sources is possible
...
svn-id: r25784
2007-02-22 10:51:47 +00:00
Max Horn
cb40356a7b
Revamed the Ogg Vorbis & FLAC DigitalTrackInfo subclasses to work similar to the MP3 one (i.e. only open the data file when about to play)
...
svn-id: r25757
2007-02-20 23:40:46 +00:00
Max Horn
0b2602e424
So far we only accepted track1.* as name for audio tracks -- now we also accept track01.* (we still only document the former naming scheme, intentionally)
...
svn-id: r25728
2007-02-19 18:17:38 +00:00
Max Horn
ccfb74431b
cleanup
...
svn-id: r22244
2006-04-30 13:40:35 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00
Won Star
e1bbc61bb5
GP32 uses custom version of libtremor, so update header path.
...
svn-id: r21665
2006-04-07 10:44:20 +00:00
Max Horn
406703148f
Change CVS keywords to SVN keywords
...
svn-id: r20515
2006-02-11 10:05:31 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Lars Persson
6ed67205ec
1. New build structure for Symbian builds to allow easier build and project updates
...
2. Updated framework files for new structure
3. Uncommented Debug statements in vorbis.cpp (Should probably be removed alltogether.
4. Incorporated Sevs code formatting changes in the new Symbian source structure.
5. Removed/Changed EScummVM to ScummVM instead, hopefully most cases covered.
6. Beginning vibration support to be used for Scumm shake effects (Work ongoing by SumthinWicked)
7. Replaced the ScummVM icon for the FavIcon and upscaled the icon to 32x32. I think it looks ok, comments are welcome.
8. Built for S60V1 and UIQ2 targets from the cvs
9. Updated Readme with new build instructions.
Any comments are welcome. Hopefully the other builds are not affected by this and all Sevs code updates are also incorporated.
svn-id: r19739
2005-12-03 21:29:13 +00:00
Lars Persson
47ad571e0c
Updated to follow ScummVM coding standards i.e spaces, indents & "studpid" things fixed.
...
svn-id: r19728
2005-12-02 18:36:21 +00:00
Lars Persson
a6b7333b33
Working Vorbis support for Symbian OS
...
svn-id: r19725
2005-12-01 19:14:38 +00:00
Joost Peters
f94b11ec55
the PSP port of libtremor was updated, so this define is no longer needed
...
svn-id: r19488
2005-11-06 13:49:52 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Joost Peters
42d01d468d
libtremor is installed to a different location when using the port from pspdev svn
...
svn-id: r18838
2005-09-17 10:28:50 +00:00
Jonathan Gray
603a5e4d6f
Don't explicity check for tremor and vorbis everywhere and
...
require both USE_TREMOR and USE_VORBIS to be defined when
using tremor.
svn-id: r18642
2005-08-10 12:42:56 +00:00
Jonathan Gray
3c1b5648ae
Rest of the changes required for tremor to actually work.
...
Based on patches against 0.7.1 by Jolan Luff.
svn-id: r18641
2005-08-10 06:16:26 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Jonathan Gray
2e273bad42
Enhanced tremor support from Jolan Luff.
...
The configure script now works as follows for detection:
Tremor only: use tremor
Vorbis only: use vorbis
Both: use vorbis
This behaviour can be changed with newly added configure script options.
svn-id: r18478
2005-06-30 09:14:36 +00:00