Fixed clang (and hopefully gcc) compile.

This commit is contained in:
Casey Langen 2017-02-05 22:34:11 -08:00
parent d8815a1a88
commit 3a9f69e097
2 changed files with 14 additions and 5 deletions

View File

@ -101,7 +101,7 @@ namespace musik { namespace core { namespace audio {
virtual musik::core::sdk::IRetainedTrack* GetPlayingTrack();
virtual void CopyFrom(musik::core::sdk::ITrackList* source);
virtual void Play(musik::core::sdk::ITrackList* source, size_t index);
virtual musik::core::sdk::ITrackListEditor* PlaybackService::EditPlaylist();
virtual musik::core::sdk::ITrackListEditor* EditPlaylist();
/* app-specific implementation. similar to some SDK methods, but use
concrete data types with known optimizations */

View File

@ -44,23 +44,32 @@
#include <list>
namespace musik { namespace core {
/* <ugh> */
class TrackList_ITrackList : public musik::core::sdk::ITrackList {
public: virtual void Release() { /* not used by the SDK */ }
};
class TrackList_ITrackListEditor : public musik::core::sdk::ITrackListEditor {
public: virtual void Release() { /* not used by the SDK */ }
};
/* </ugh> */
class TrackList :
public musik::core::sdk::ITrackList,
public musik::core::sdk::ITrackListEditor
public TrackList_ITrackList,
public TrackList_ITrackListEditor
{
public:
TrackList(ILibraryPtr library);
virtual ~TrackList();
/* ITrackList */
virtual void ITrackList::Release() { /* not used by the SDK. */ }
virtual size_t Count();
virtual musik::core::sdk::IRetainedTrack* GetRetainedTrack(size_t index);
virtual unsigned long long GetId(size_t index);
virtual int IndexOf(unsigned long long id);
/* ITrackListEditor */
virtual void ITrackListEditor::Release() { /* not used by the SDK. */ }
virtual void Add(const unsigned long long id);
virtual bool Insert(unsigned long long id, size_t index);
virtual bool Swap(size_t index1, size_t index2);