scrawl
35f4d09288
swscale handled better (cmake)
12 years ago
scrawl
64210e6efa
Revert "New Game button"
...
This reverts commit c5dd0e1968
.
12 years ago
scrawl
1c73a3f2fb
Revert "remove commandline switch for new game"
...
This reverts commit 86671096ec
.
12 years ago
Chris Robinson
7b2c3e6cd3
Pass a proper PlayMode enum to playSound and playSound3D
12 years ago
Chris Robinson
3b7edae7c3
Don't hold a list of all sound sources
12 years ago
Chris Robinson
fe36cc1de7
Don't try to resume sound types that aren't paused
12 years ago
Chris Robinson
2f8daec379
Allow pausing only certain types of sounds
12 years ago
Chris Robinson
b4e36d4f31
Add a method to get the volume from the sound type
12 years ago
Chris Robinson
a5356e194e
Allow specifying a type for the playTrack method
12 years ago
Chris Robinson
72ffceb206
Add type flags to the sound play mode
12 years ago
Chris Robinson
dd3e568a00
Set the sound properties at initialization
12 years ago
Chris Robinson
20321c4552
Keep track of the actual active sounds
12 years ago
Chris Robinson
d348435a1d
Improve audio open error message
12 years ago
Chris Robinson
67485d3454
Store the AVStream in the decoder for easy referencing
12 years ago
Chris Robinson
4373218746
Fix audio stream check
12 years ago
Chris Robinson
58ab3407b7
Constify a couple fields
12 years ago
Chris Robinson
d67951a256
Merge remote-tracking branch 'scrawl/videoplayback' into videoplayback
12 years ago
Chris Robinson
9e842a0bbb
Fix for trying to play videos when not supported
12 years ago
Chris Robinson
26660110e5
Allow building the video player without ffmpeg (playVideo will always throw an exception)
12 years ago
Chris Robinson
06fd66e99d
Move some fields to the class they're used in
12 years ago
scrawl
df9121f7fc
Merge branch 'videoplayback' of https://github.com/ChrisKCat/openmw into videoplayback
12 years ago
Chris Robinson
9c805483b0
Merge remote-tracking branch 'scrawl/videoplayback' into videoplayback
12 years ago
scrawl
86671096ec
remove commandline switch for new game
12 years ago
scrawl
c5dd0e1968
New Game button
12 years ago
Chris Robinson
c92cde2be9
Properly flush packet queues when at EOF
...
Note: the previous flush method was renamed to clear. Flushing a queue allows
consumers to retrieve queued packets, but not expect any more to come in.
12 years ago
Chris Robinson
6bc526b74d
Avoid another loop for decoding audio
12 years ago
Chris Robinson
3829bbfeca
Look for all available sound input libs as needed, and warn if not found
12 years ago
Chris Robinson
8cde6db665
We no longer need SDL
12 years ago
Chris Robinson
254a623319
Remove a redundant check
12 years ago
Chris Robinson
dd20db5dc2
Remove the stream indices from the VideoState
12 years ago
Chris Robinson
3f6d36c712
Avoid double-setting the material texture
12 years ago
Chris Robinson
e9d833be03
Use the packet pts to calculate the decoder sample offset
12 years ago
Chris Robinson
0edc87825d
Move audio_clock to the decoder where it's used
12 years ago
Chris Robinson
4561c22e2b
More fixes for the audio clock
...
The audio_clock for the decoder represents the end of the current packet, so it
needs to be adjusted back to match the position that's actually going to be
read next.
12 years ago
Chris Robinson
1a771ae671
Merge the stream struct into the parent decoder
12 years ago
Chris Robinson
5fff1c4e47
Update the ffmpeg decoder to use avcodec_decode_audio4
12 years ago
Chris Robinson
5f4c33f896
Only store one packet at a time
12 years ago
Chris Robinson
9d86890d9d
Only use one stream for the ffmpeg decoder
12 years ago
scrawl
a3bd3a40ca
fix 2 unrelated leaks
12 years ago
scrawl
18623a5efe
Merge branch 'videoplayback' of https://github.com/ChrisKCat/openmw into videoplayback
12 years ago
scrawl
edf18a7d6e
change destruction order to fix crash on exit when a video is playing
12 years ago
Chris Robinson
c869444dcf
Don't leak the IO context if avformat_open_input fails
12 years ago
scrawl
63e86555b6
use sample_aspect_ratio if available
12 years ago
scrawl
5ed04ae53e
added black bars
12 years ago
Chris Robinson
e6d27cd6d0
Merge remote-tracking branch 'scrawl/videoplayback' into videoplayback
12 years ago
Chris Robinson
9b3cf5c159
Use a looping thread to trigger refreshes
12 years ago
Chris Robinson
fa1ad381da
Make sure packets are cleaned up properly
12 years ago
scrawl
7477345481
fixed video material
12 years ago
Chris Robinson
db23c8152e
Only duplicate AVPackets as needed
...
Packets that don't have a destruct method are using static memory, which will
only be valid until the next av_read_frame call. Otherwise, it's already
dynamically allocated and will remain valid.
12 years ago
Chris Robinson
6008cf0d15
Remove unneeded video_current_pts field
12 years ago