mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-28 15:16:43 +00:00
Fixed clang (and hopefully gcc) compile.
This commit is contained in:
parent
d8815a1a88
commit
3a9f69e097
@ -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 */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user