stream is shared_ptr

This commit is contained in:
badaix 2016-11-13 15:57:49 +01:00
parent 0c5646679e
commit 3fe88b7440
10 changed files with 17 additions and 17 deletions

View file

@ -37,7 +37,7 @@
class CoreAudioPlayer : public Player
{
public:
CoreAudioPlayer(const PcmDevice& pcmDevice, Stream* stream);
CoreAudioPlayer(const PcmDevice& pcmDevice, std::shared_ptr<Stream> stream);
virtual ~CoreAudioPlayer();
void playerCallback(AudioQueueRef queue, AudioQueueBufferRef bufferRef);
@ -49,7 +49,7 @@ protected:
size_t ms_;
size_t frames_;
size_t buff_size_;
Stream* pubStream_;
std::shared_ptr<Stream> pubStream_;
};