Lines Matching defs:sp
15 NAMESPACE BSoundPlayer *sp = 0;
22 sp->SetHasData(false);
47 sp = new NAMESPACE BSoundPlayer(&format, "sound player test", PlayBuffer);
50 sp->SetHasData(true);
51 sp->Start();
53 printf("volume now %.2f\n", sp->Volume());
54 printf("volumeDB now %.2f\n", sp->VolumeDB());
62 sp->GetVolumeInfo(&out_node, &out_parameter, &out_min_dB, &out_max_dB);
68 sp->SetVolume(1.0f);
83 sp->SetVolume(f);
84 printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bvolume now %.2f, should be %.2f", sp->Volume(), f);
94 sp->SetVolume(f);
95 printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bvolume now %.2f, should be %.2f", sp->Volume(), f);
107 sp->SetVolumeDB(f);
108 printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bvolume now %6.2f, should be %6.2f", sp->VolumeDB(), f);
118 sp->SetVolumeDB(f);
119 printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bvolume now %+6.2f, should be %6.2f", sp->VolumeDB(), f);
127 delete sp;