Commit Graph

44 Commits

Author SHA1 Message Date
Miku AuahDark 2620225c03 Revert "Implement audio probing to reduce audio false positive."
This reverts commit 5f386cfa87 and 17800813b9.
2022-05-01 21:51:31 +08:00
Miku AuahDark 5f386cfa87 Implement audio probing to reduce audio false positive. 2022-05-01 17:01:50 +08:00
Alex Szpakowski c09fef8e79 Audio source decoding improvements.
- Streaming sources now also stream the file contents instead of loading it into memory, by default. Added a new stream type enum parameter to newSource ("file" or "memory").
- Audio file decoding now chooses the most appropriate decoder based on the file contents instead of the file extension.
- Videos now stream audio from the file instead of loading all of the video file into memory for use with audio decoding.
2022-04-21 19:57:32 -03:00
Alex Szpakowski 71a7aed441 minor cleanup of some audio decoder code. 2022-04-18 20:12:08 -03:00
Alex Szpakowski 8e7fd10b6f Update copyright year for 2022 2021-12-31 18:33:40 -04:00
Alex Szpakowski f89aabb0bb Update copyright year for 2021 2021-04-04 16:14:45 -03:00
Alex Szpakowski fc4847c69d Update copyright for the new year 2020-01-03 22:40:36 -04:00
Alex Szpakowski 38cb56f168 Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise. 2019-05-26 14:46:52 -03:00
Bart van Strien bf5e3820bd Remove unused stored extension in Decoder
As preparation for issue #1487
2019-05-04 10:44:41 +02:00
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04:00
Bart van Strien e80247c191 Happy new year! 2018-01-03 19:47:35 +01:00
Alex Szpakowski bf6983beac Rename Source/SoundData/Decoder:getChannels to getChannelCount (resolves issue #1307). Deprecate the old methods rather than completely removing them.
--HG--
branch : minor
2017-08-27 14:40:46 -03:00
Alex Szpakowski abb72cb813 Happy new year! 🥂
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski 0653ec9564 Address some compiler warnings about implicit integer conversions.
--HG--
branch : minor
2016-10-18 22:32:35 -03:00
Alex Szpakowski 46a2e7b85c Happy new year! 🎉 2016-01-01 00:05:06 -04:00
Alex Szpakowski 0558fcdbd4 Added Source:getDuration (thanks Boolsheet!)
For streaming sources, the duration may not always be sample-accurate and may return -1 if it cannot be determined at all.
2015-11-07 01:49:37 -04:00
Alex Szpakowski 4550409ffa Removed an obsolete #ifndef check. 2015-06-29 14:25:20 -03:00
Alex Szpakowski 85de3c41fb Initial iOS implementation.
--HG--
branch : minor
2015-02-20 00:21:21 -04:00
Alex Szpakowski c7b45b3505 Updated copyright for the new year 2014-12-31 19:32:43 -04:00
Alex Szpakowski d59c76a55f Reduced the number of explicit retain/release method calls on love objects. Less chance of bugs! 2014-08-07 14:53:17 -03:00
Alex Szpakowski 3120a0e650 Goodbye 2013, hello 2014! 2014-01-03 17:28:58 -04:00
Alex Szpakowski e5adc4e5fd Fixed wave sound playback by using a different wave reader library (thanks Boolsheet!)
Resolves issue #25.
2013-10-23 16:02:06 -03:00
Alex Szpakowski 66a773d2a7 Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636) 2013-08-11 04:15:42 -03:00
Bart van Strien fb8a94a4a3 Enable looping in tracker formats with looping support (issue #421) 2013-05-10 17:00:15 +02:00
Alex Szpakowski 96161c66f6 Updated copyright text for the new year 2013-02-05 05:32:49 -04:00
Bart van Strien 7793e7f02f CRLF to LF 2012-07-04 14:40:24 +02:00
rude 81c38e22d0 Applied the new style guidelines.
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bart van Strien 43c5576268 Remove warning in autotools and make LOVE_OLD_MODPLUG define that disables some new modplug settings 2012-03-22 17:21:28 +01:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
rude fe6d168bf1 Enable mStereoSeparation/mMaxMixChannels settings in Windows. 2011-04-07 18:16:44 +02:00
rude 95ba8d1e13 Disabled mStereoSeparation and mMaxMixChannels until library is updated on Windows. 2011-03-09 11:07:26 +01:00
vrld c3cfff987c More sensible volume settings for Modpluggable files. 2011-03-01 20:11:30 +01:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
Bill Meltsner 4479e8dfc4 removed user-specified sample rates for Decoders 2011-01-15 14:29:10 -06:00
Bart van Strien fe60afda0e Moved volume change in modplug decoder to after check if file has been loaded, thanks Michael R (fixes #60) 2010-09-06 07:53:30 +02:00
Bill Meltsner 9b9334a138 I'm not entirely sure why ModPlugDecoder.cpp was #including set.h, but it certainly doesn't need to be... 2010-04-01 20:13:47 -04:00
rude aa01c984b9 Updated all dates to 2010. 2010-01-31 16:54:47 +01:00
rude 5b30c7fcfe Major developments to love.audio/love.sound. Music and Sound are gone. There are only Sources now, which is much cleaner.
The audio module was not really stable in 0.6.0, it takes very little messing around to cause OpenAL to do horrible things. It should now be much more stable,
and you *should* be able to play/stop/pause/resume/rewind/loop like a madman without disasters. Seek and tell, however, are still not tested and verified for
all decoders, but that's less important. Also, all objects now have object:type() and object:typeOf(), which returns the type name of the object,
and checks whether an object is of a certain type, respectively.
2010-01-31 11:52:54 +01:00
rude ed55e0b5de Fixed master volume of modplug files when rewinding. 2009-12-21 19:45:06 +01:00
rude 0e671c34d5 Fixed volume issue with WAV, and issue with truncated OGGs. 2009-10-26 22:13:02 +01:00
rude 92c678ce02 Fixed file not closing after require(). Changed seek() to use seconds. 2009-08-24 19:57:08 +02:00
rude 9196ebd50b Looping now works for OGG and tracker files (only tested with XM). 2009-08-20 21:14:06 +02:00
rude dcb3dfd83d Initial Mercurial commit. 2009-07-26 15:46:49 +02:00