Lines Matching defs:BSoundPlayer

27 // Flags used internally in BSoundPlayer
36 static BSoundPlayer::play_id sCurrentPlayID = 1;
39 BSoundPlayer::BSoundPlayer(const char* name, BufferPlayerFunc playerFunction,
44 TRACE("BSoundPlayer::BSoundPlayer: default constructor used\n");
53 BSoundPlayer::BSoundPlayer(const media_raw_audio_format* _format,
59 TRACE("BSoundPlayer::BSoundPlayer: raw audio format constructor used\n");
68 TRACE("BSoundPlayer::BSoundPlayer: format %s\n", buf);
76 BSoundPlayer::BSoundPlayer(const media_node& toNode,
83 TRACE("BSoundPlayer::BSoundPlayer: multi audio format constructor used\n");
86 debugger("BSoundPlayer: toNode must have B_BUFFER_CONSUMER kind!\n");
92 TRACE("BSoundPlayer::BSoundPlayer: format %s\n", buf);
100 BSoundPlayer::~BSoundPlayer()
112 TRACE("BSoundPlayer::~BSoundPlayer: Couldn't get BMediaRoster\n");
125 TRACE("BSoundPlayer::~BSoundPlayer: Error disconnecting nodes: "
135 TRACE("BSoundPlayer::~BSoundPlayer: Error releasing input node: "
154 TRACE("BSoundPlayer::~BSoundPlayer: Error the producer node "
164 BSoundPlayer::InitCheck()
172 BSoundPlayer::Format() const
184 BSoundPlayer::Start()
196 TRACE("BSoundPlayer::Start: Couldn't get BMediaRoster\n");
213 TRACE("BSoundPlayer::Start: StartNode failed, %" B_PRId32, err);
228 BSoundPlayer::Stop(bool block, bool flush)
232 TRACE("BSoundPlayer::Stop: block %d, flush %d\n", (int)block, (int)flush);
242 TRACE("BSoundPlayer::Stop: Couldn't get BMediaRoster\n");
258 TRACE("BSoundPlayer::Stop: waiting for node stop failed\n"));
272 BSoundPlayer::Latency()
281 TRACE("BSoundPlayer::Latency: Couldn't get BMediaRoster\n");
288 TRACE("BSoundPlayer::Latency: GetLatencyFor failed %" B_PRId32
293 TRACE("BSoundPlayer::Latency: latency is %" B_PRId64 "\n", latency);
300 BSoundPlayer::SetHasData(bool hasData)
311 BSoundPlayer::HasData()
318 BSoundPlayer::BufferPlayerFunc
319 BSoundPlayer::BufferPlayer() const
327 BSoundPlayer::SetBufferPlayer(BufferPlayerFunc playerFunction)
336 BSoundPlayer::EventNotifierFunc
337 BSoundPlayer::EventNotifier() const
345 BSoundPlayer::SetNotifier(EventNotifierFunc eventNotifierFunction)
355 BSoundPlayer::Cookie() const
363 BSoundPlayer::SetCookie(void *cookie)
373 BSoundPlayer::SetCallbacks(BufferPlayerFunc playerFunction,
391 BSoundPlayer::CurrentTime()
401 being used by the BSoundPlayer. Will return B_ERROR if the
402 BSoundPlayer object hasn't been properly initialized.
405 BSoundPlayer::PerformanceTime()
415 BSoundPlayer::Preroll()
424 TRACE("BSoundPlayer::Preroll: Couldn't get BMediaRoster\n");
430 TRACE("BSoundPlayer::Preroll: Error while PrerollNode: %"
439 BSoundPlayer::play_id
440 BSoundPlayer::StartPlaying(BSound* sound, bigtime_t atTime)
446 BSoundPlayer::play_id
447 BSoundPlayer::StartPlaying(BSound* sound, bigtime_t atTime, float withVolume)
479 BSoundPlayer::SetSoundVolume(play_id id, float newVolume)
502 BSoundPlayer::IsPlaying(play_id id)
524 BSoundPlayer::StopPlaying(play_id id)
558 BSoundPlayer::WaitForSound(play_id id)
584 BSoundPlayer::Volume()
592 BSoundPlayer::SetVolume(float newVolume)
600 BSoundPlayer::VolumeDB(bool forcePoll)
621 BSoundPlayer::SetVolumeDB(float volumeDB)
646 BSoundPlayer::GetVolumeInfo(media_node* _node, int32* _parameterID,
666 // #pragma mark - protected BSoundPlayer
670 BSoundPlayer::SetInitError(status_t error)
677 // #pragma mark - private BSoundPlayer
681 BSoundPlayer::_SoundPlayBufferFunc(void *cookie, void *buffer, size_t size,
685 BSoundPlayer *player = (BSoundPlayer *)cookie;
716 status_t BSoundPlayer::_Reserved_SoundPlayer_0(void*, ...) { return B_ERROR; }
717 status_t BSoundPlayer::_Reserved_SoundPlayer_1(void*, ...) { return B_ERROR; }
718 status_t BSoundPlayer::_Reserved_SoundPlayer_2(void*, ...) { return B_ERROR; }
719 status_t BSoundPlayer::_Reserved_SoundPlayer_3(void*, ...) { return B_ERROR; }
720 status_t BSoundPlayer::_Reserved_SoundPlayer_4(void*, ...) { return B_ERROR; }
721 status_t BSoundPlayer::_Reserved_SoundPlayer_5(void*, ...) { return B_ERROR; }
722 status_t BSoundPlayer::_Reserved_SoundPlayer_6(void*, ...) { return B_ERROR; }
723 status_t BSoundPlayer::_Reserved_SoundPlayer_7(void*, ...) { return B_ERROR; }
727 BSoundPlayer::_Init(const media_node* node,
755 TRACE("BSoundPlayer::_Init: Couldn't get BMediaRoster\n");
768 TRACE("BSoundPlayer::_Init: Couldn't GetAudioMixer\n");
784 TRACE("BSoundPlayer::_Init: Couldn't RegisterNode: %s\n",
794 TRACE("BSoundPlayer::_Init: Couldn't GetTimeSource: %s\n",
801 TRACE("BSoundPlayer::_Init: Couldn't SetTimeSourceFor: %s\n",
811 TRACE("BSoundPlayer::_Init: Couldn't GetFreeInputsFor: %s\n",
816 TRACE("BSoundPlayer::_Init: Couldn't find a free input\n");
828 TRACE("BSoundPlayer::_Init: Couldn't GetFreeOutputsFor: %s\n",
833 TRACE("BSoundPlayer::_Init: Couldn't find a free output\n");
842 TRACE("BSoundPlayer::_Init: Couldn't SetRunModeNode: %s\n",
854 TRACE("BSoundPlayer::_Init: trying to connect with format %s\n", buf);
861 TRACE("BSoundPlayer::_Init: Couldn't Connect: %s\n",
870 TRACE("BSoundPlayer node %" B_PRId32 " has timesource %" B_PRId32 "\n",
876 BSoundPlayer::_NotifySoundDone(play_id id, bool gotToPlay)
884 BSoundPlayer::_GetVolumeSlider()
892 TRACE("BSoundPlayer::_GetVolumeSlider failed to get BMediaRoster");
897 TRACE("BSoundPlayer::_GetVolumeSlider couldn't get parameter web");
916 TRACE("BSoundPlayer::_GetVolumeSlider couldn't find volume control");
923 BSoundPlayer::Notify(sound_player_notification what, ...)
935 BSoundPlayer::PlayBuffer(void* buffer, size_t size,