John Preston
1392e05ab1
Move all gsl::byte helpers to base/bytes module.
2018-06-03 23:16:34 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
e89350d4b7
Reuse resample code from FFMpegLoader for video.
...
AbstractAudioFFMpegLoader used in FFMpegLoader and ChildFFMpegLoader.
2018-01-02 20:22:13 +03:00
John Preston
95399bef2b
Improve swresample library usage.
...
It looks like different AVFrame-s can have different audio encoding
parameters, so now we setup/re-setup swr context using parameters
from current audio frame. Hopefully it will fix some audio crashes.
2018-01-02 19:18:53 +03:00
John Preston
97c15865a5
Move some code around.
...
Move logs:SignalHandlers to core/crash_reports:CrashReports.
Move all pre-launch windows to core/crash_report_window module.
Move some global code to core/launcher:Launcher.
It should replace settings / platform_specific module in some way.
2017-12-12 16:47:32 +04:00
John Preston
4ef3de5287
Always specify seek position in TimeMs.
...
This way it won't rely on the sample rate of the audio file.
Fixes #4139 .
2017-12-10 12:52:38 +04:00
John Preston
e273695cc9
Fix planar audio playback (for example .flac).
...
Also add some more crash information logging.
Fixes #4120 .
2017-12-08 12:57:43 +04:00
John Preston
a495de7cf8
Ask OpenAL to use kDefaultFrequency (48 kHz).
2017-12-02 13:27:32 +04:00
John Preston
2161858088
Fail resampling audio with inconsistent frames.
2017-12-02 12:58:52 +04:00
John Preston
13ab055fe0
Add debug information about crash in ffmpeg.
2017-11-30 15:41:15 +04:00
John Preston
2e816f2a67
Play notification sound using Media::Audio::Track.
2017-05-09 23:46:30 +03:00
John Preston
6f89d01452
Add new Media::Audio::Instance for audio tracks.
...
Move some audio-related code from Media::Player to Media::Audio.
2017-05-09 23:46:29 +03:00
John Preston
e8a3535c74
Support audio documents playback inside app.
...
Also add some more decoders in ffmpeg configuration (wav).
Also stop audio device restart on PKEY_AudioEndpoint changes.
Also deduce channel layout from channel count in ffmpeg loaders.
2017-04-30 14:34:23 +03:00
John Preston
08167a6a91
Removed #include "stdafx.h" from all files.
...
Currently the build without implicitly included precompiled header
is not supported anyway (because Qt MOC source files do not include
stdafx.h, they include plain headers).
So when we decide to support building without implicitly included
precompiled headers we'll have to fix all the headers anyway.
2017-03-04 12:27:52 +03:00
John Preston
5f5770dd46
Support special seek whence for ffmpeg.
...
AVSEEK_SIZE is passed as a whence when ffmpeg needs just data size.
2017-03-01 10:31:36 +03:00
John Preston
4964b8b488
Beta 1000002001: Recreate audio device when no output or device changes.
2017-01-25 08:45:09 +03:00
John Preston
7fb1463c43
Version 1.0 stable: bump copyright date to 2017.
2017-01-11 23:02:13 +04:00
John Preston
c09dab2b3a
MediaView save message fixed. Sticker pan size updated correctly.
2017-01-09 18:00:56 +04:00
John Preston
c1c3e4af5b
Stop reading audio input packets if AVERROR_INVALIDDATA is received.
...
There are some audio files that cause swr_convert to crash otherwise.
2016-08-14 21:57:23 +03:00
John Preston
27cf45e1a9
Moved to ffmpeg 3.1 release code.
2016-07-22 18:01:24 +03:00
John Preston
9fe714189d
updateNewMessage now can request getDifference(), if data is absent.
...
Video sync and frame duration count improved.
Seek in not 44100 and not 48000 hz audio streams fixed.
2016-07-21 20:35:55 +03:00
John Preston
cb0c99acc8
Seek done in video player in MediaView. Some memory leaks fixed.
...
Using pixmapFromImageInPlace() instead of QPixmap::fromImage().
2016-07-13 20:34:57 +03:00
John Preston
99b15719cf
Stopping video sound when closing mediaview (destroying Clip::Reader).
...
Fixed launching video with sound while song is playing.
2016-07-05 20:44:22 +03:00
John Preston
616d08255c
Moved audio to media/media_audio and divided to several modules.
...
Basic video playback with sound support in mediaview added.
2016-07-05 20:44:02 +03:00