Skip to content

Commit

Permalink
SkMedia: Create WVlcAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
3unjee committed Feb 11, 2025
1 parent 8b52266 commit 08f5ee6
Show file tree
Hide file tree
Showing 15 changed files with 1,104 additions and 348 deletions.
5 changes: 5 additions & 0 deletions dist/changes/3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
- WControllerApplication: Update the extractMessage function.


## SkMedia

- Create WVlcAudio.


# Authors
---

Expand Down
1 change: 1 addition & 0 deletions include/SkMedia/WVlcAudio
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../src/SkMedia/src/vlc/WVlcAudio.h"
1 change: 1 addition & 0 deletions include/SkMedia/WVlcAudio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../src/SkMedia/src/vlc/WVlcAudio.h"
1 change: 1 addition & 0 deletions include/SkMedia/private/WVlcAudio_p
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../../src/SkMedia/src/vlc/WVlcAudio_p.h"
1 change: 1 addition & 0 deletions include/SkMedia/private/WVlcAudio_p.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../../src/SkMedia/src/vlc/WVlcAudio_p.h"
8 changes: 8 additions & 0 deletions src/SkMedia/src/controllers/WControllerMedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#ifndef SK_NO_PLAYER
#include <WVlcEngine>
#include <WVlcPlayer>
#include <WVlcAudio>
#endif

W_INIT_CONTROLLER(WControllerMedia)
Expand Down Expand Up @@ -2882,6 +2883,13 @@ WControllerMedia::WControllerMedia() : WController(new WControllerMediaPrivate(t
return new WVlcPlayer(d->engine, d->thread);
}

/* Q_INVOKABLE */ WVlcAudio * WControllerMedia::createVlcAudio() const
{
Q_D(const WControllerMedia);

return new WVlcAudio(d->engine, d->thread);
}

#endif

//-------------------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/SkMedia/src/controllers/WControllerMedia.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class WYamlNode;
#ifndef SK_NO_PLAYER
class WVlcEngine;
class WVlcPlayer;
class WVlcAudio;
#endif

#ifdef QT_6
Expand Down Expand Up @@ -288,6 +289,7 @@ class SK_MEDIA_EXPORT WControllerMedia : public WController
public: // Interface
#ifndef SK_NO_PLAYER
Q_INVOKABLE WVlcPlayer * createVlcPlayer() const;
Q_INVOKABLE WVlcAudio * createVlcAudio () const;
#endif

Q_INVOKABLE
Expand Down
Loading

0 comments on commit 08f5ee6

Please sign in to comment.