BSoundPlayer
class BSoundPlayer;
virtual status_t BindTo(BSoundPlayer* player,
virtual status_t UnbindFrom(BSoundPlayer* player);
class BSoundPlayer {
BSoundPlayer(const char* name = NULL,
BSoundPlayer(
BSoundPlayer(
virtual ~BSoundPlayer();
BSoundPlayer::sound_player_notification code, ...)
if ((code == BSoundPlayer::B_STOPPED) || (code == BSoundPlayer::B_SOUND_DONE)) {
fPlayer = new BSoundPlayer(fAudioMixerNode, &fPlayFormat.u.raw_audio,
static void NotifyPlayFile(void * cookie, BSoundPlayer::sound_player_notification code, ...);
BSoundPlayer * fPlayer;
VolumeSlider::SetSoundPlayer(BSoundPlayer *player)
void SetSoundPlayer(BSoundPlayer *player);
BSoundPlayer *fSoundPlayer;
BSoundPlayer* player = 0;
player = new BSoundPlayer(&playFormat.u.raw_audio, "playfile", play_buffer);
BSound::BindTo(BSoundPlayer* player, const media_raw_audio_format& format)
BSound::UnbindFrom(BSoundPlayer* player)
SoundPlayNode::SoundPlayNode(const char* name, BSoundPlayer* player)
BSoundPlayer* fPlayer;
BSoundPlayer* player);
BSoundPlayer::~BSoundPlayer()
BSoundPlayer::InitCheck()
BSoundPlayer::Format() const
BSoundPlayer::Start()
BSoundPlayer::Stop(bool block, bool flush)
BSoundPlayer::Latency()
BSoundPlayer::SetHasData(bool hasData)
BSoundPlayer::HasData()
BSoundPlayer::BufferPlayerFunc
BSoundPlayer::BufferPlayer() const
BSoundPlayer::SetBufferPlayer(BufferPlayerFunc playerFunction)
BSoundPlayer::EventNotifierFunc
BSoundPlayer::EventNotifier() const
BSoundPlayer::SetNotifier(EventNotifierFunc eventNotifierFunction)
BSoundPlayer::Cookie() const
static BSoundPlayer::play_id sCurrentPlayID = 1;
BSoundPlayer::SetCookie(void *cookie)
BSoundPlayer::SetCallbacks(BufferPlayerFunc playerFunction,
BSoundPlayer::BSoundPlayer(const char* name, BufferPlayerFunc playerFunction,
BSoundPlayer::CurrentTime()
BSoundPlayer::PerformanceTime()
BSoundPlayer::Preroll()
BSoundPlayer::play_id
BSoundPlayer::StartPlaying(BSound* sound, bigtime_t atTime)
BSoundPlayer::play_id
BSoundPlayer::StartPlaying(BSound* sound, bigtime_t atTime, float withVolume)
BSoundPlayer::SetSoundVolume(play_id id, float newVolume)
BSoundPlayer::IsPlaying(play_id id)
BSoundPlayer::StopPlaying(play_id id)
BSoundPlayer::BSoundPlayer(const media_raw_audio_format* _format,
BSoundPlayer::WaitForSound(play_id id)
BSoundPlayer::Volume()
BSoundPlayer::SetVolume(float newVolume)
BSoundPlayer::VolumeDB(bool forcePoll)
BSoundPlayer::SetVolumeDB(float volumeDB)
BSoundPlayer::GetVolumeInfo(media_node* _node, int32* _parameterID,
BSoundPlayer::SetInitError(status_t error)
BSoundPlayer::_SoundPlayBufferFunc(void *cookie, void *buffer, size_t size,
BSoundPlayer *player = (BSoundPlayer *)cookie;
status_t BSoundPlayer::_Reserved_SoundPlayer_0(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_1(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_2(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_3(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_4(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_5(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_6(void*, ...) { return B_ERROR; }
status_t BSoundPlayer::_Reserved_SoundPlayer_7(void*, ...) { return B_ERROR; }
BSoundPlayer::_Init(const media_node* node,
BSoundPlayer::BSoundPlayer(const media_node& toNode,
BSoundPlayer::_NotifySoundDone(play_id id, bool gotToPlay)
BSoundPlayer::_GetVolumeSlider()
BSoundPlayer::Notify(sound_player_notification what, ...)
BSoundPlayer::PlayBuffer(void* buffer, size_t size,
fSoundPlayer = new BSoundPlayer(&format, "Soft Synth", &PlayBuffer, NULL, this);
BSoundPlayer* fSoundPlayer;
fSoundPlayer = new BSoundPlayer(&fPlayFormat.u.raw_audio,
BSoundPlayer* fSoundPlayer;
CPPUNIT_ASSERT_EQUAL(808, sizeof(BSoundPlayer));
BSoundPlayer player(audioOutputFormat, "wave_player", Mp3Decoding,
sp = new BSoundPlayer(&playFormat.u.raw_audio, "playfile", play_buffer);
BSoundPlayer* sp = 0;
sp = new BSoundPlayer(&format, "playwav", play_buffer);
BSoundPlayer *sp = 0;
NAMESPACE BSoundPlayer *sp = 0;
sp = new NAMESPACE BSoundPlayer(&format, "sound player test", PlayBuffer);
BSoundPlayer player("wave_player", BufferProc, NULL, &cookie);
NAMESPACE BSoundPlayer *sp = 0;
sp = new NAMESPACE BSoundPlayer(&format, "sound player test", PlayBuffer);