Skip to content

Commit daa649c

Browse files
committed
update readme and changelog
1 parent c804be3 commit daa649c

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,14 @@ void video() {
8484
#include <eclipse.ffmpeg-api/include/audio_mixer.hpp>
8585

8686
void audioFile() {
87-
ffmpeg::AudioMixer mixer;
88-
mixer.mixVideoAudio("video.mp4", "audio.mp3", "output_mp3.mp4");
89-
mixer.mixVideoAudio("video.mp4", "audio.wav", "output_wav.mp4");
87+
ffmpeg::AudioMixer::mixVideoAudio("video.mp4", "audio.mp3", "output_mp3.mp4");
88+
ffmpeg::AudioMixer::mixVideoAudio("video.mp4", "audio.wav", "output_wav.mp4");
9089
}
9190

9291
void audioRaw() {
93-
ffmpeg::AudioMixer mixer;
94-
9592
//insert your raw data here
9693
std::vector<float> raw;
97-
mixer.mixVideoRaw("video.mp4", raw, "output_raw.mp4");
94+
ffmpeg::AudioMixer::mixVideoRaw("video.mp4", raw, "output_raw.mp4");
9895
}
9996
```
10097

@@ -107,17 +104,14 @@ void audioRaw() {
107104
#include <events.hpp>
108105

109106
void audioFile() {
110-
ffmpeg::events::AudioMixer mixer;
111-
mixer.mixVideoAudio("video.mp4", "audio.mp3", "output_mp3.mp4");
112-
mixer.mixVideoAudio("video.mp4", "audio.wav", "output_wav.mp4");
107+
ffmpeg::events::AudioMixer::mixVideoAudio("video.mp4", "audio.mp3", "output_mp3.mp4");
108+
ffmpeg::events::AudioMixer::mixVideoAudio("video.mp4", "audio.wav", "output_wav.mp4");
113109
}
114110

115111
void audioRaw() {
116-
ffmpeg::events::AudioMixer mixer;
117-
118112
//insert your raw data here
119113
std::vector<float> raw;
120-
mixer.mixVideoRaw("video.mp4", raw, "output_raw.mp4");
114+
ffmpeg::events::AudioMixer::mixVideoRaw("video.mp4", raw, "output_raw.mp4");
121115
}
122116
```
123117

changelog.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
- Fix codec fetching
1313

1414
# 1.0.4
15-
1615
- Mac release
16+
17+
# 1.1.2
18+
- Fixed memory leak
19+
20+
# 1.1.3
21+
- Events API

0 commit comments

Comments
 (0)