fSoundPlayer
if (!fSoundPlayer || !Bounds().InsetBySelf(2, 2).Contains(point))
if (!fSoundPlayer || !Bounds().InsetBySelf(2, 2).Contains(point))
if (fSoundPlayer && Bounds().InsetBySelf(2, 2).Contains(point)) {
if (fSoundPlayer)
fSoundPlayer->SetVolume(fVolume * RATIO);
fSoundPlayer = player;
float position = 11 + (fRight - 11) * (fSoundPlayer
? fSoundPlayer->Volume() / RATIO : 0);
if (fSoundPlayer)
BSoundPlayer *fSoundPlayer;
fSoundPlayer(NULL),
fSoundPlayer = new BSoundPlayer(&format, "Soft Synth", &PlayBuffer, NULL, this);
err = fSoundPlayer->InitCheck();
fSoundPlayer->SetHasData(true);
fSoundPlayer->Start();
if (fSoundPlayer) {
fSoundPlayer->SetHasData(false);
fSoundPlayer->Stop();
delete fSoundPlayer;
fSoundPlayer = NULL;
BSoundPlayer* fSoundPlayer;
fSoundPlayer->SetHasData(true);
fSoundPlayer->Start();
delete fSoundPlayer;
return (fSoundPlayer != NULL && fSoundPlayer->HasData());
fSoundPlayer->Stop();
fSoundPlayer->SetHasData(true);
fSoundPlayer->Start();
fSoundPlayer->Stop();
player->fSoundPlayer->SetHasData(false);
fSoundPlayer(NULL),
fSoundPlayer = new BSoundPlayer(&fPlayFormat.u.raw_audio,
fInitCheck = fSoundPlayer->InitCheck();
BSoundPlayer* fSoundPlayer;