/haiku/src/apps/mediaplayer/interface/ |
H A D | TransportControlGroup.cpp | 364 TransportControlGroup::_GainToDb(float gain) argument 366 return 20.0 * log10(gain); 477 float gain = _DbToGain(exponential); local 478 int32 pos = (int32)(floorf(gain * kVolumeFactor + 0.5)); 622 float gain = _DbToGain(db); local 623 VolumeChanged(gain);
|
H A D | TransportControlGroup.h | 95 float _GainToDb(float gain);
|
/haiku/src/servers/media/ |
H A D | MediaFilesManager.cpp | 102 status = items.AddFloat("gain", info.gain); 141 printf(" type \"%s\", item \"%s\", path \"%s\", gain %g\n", 144 info.gain); 251 *_gain = info->gain; 276 float gain) 279 TRACE("MediaFilesManager::SetAudioGainFor %s %s %g\n", type, item, gain); 283 status_t status = _SetItem(type, item, NULL, &gain); 395 const entry_ref* ref, const float* gain) 420 if (gain ! 275 SetAudioGainFor(const char* type, const char* item, float gain) argument 394 _SetItem(const char* _type, const char* _item, const entry_ref* ref, const float* gain) argument 488 float gain; local [all...] |
H A D | MediaFilesManager.h | 42 const char* item, float gain); 53 item_info() : gain(1.0f) {} 56 float gain; member in struct:MediaFilesManager::item_info 64 const float* gain = NULL);
|
/haiku/src/kits/media/ |
H A D | MediaFiles.cpp | 184 *_gain = reply.gain; 213 BMediaFiles::SetAudioGainFor(const char* type, const char* item, float gain) argument 220 request.gain = gain;
|
/haiku/headers/private/audio/ |
H A D | hmulti_audio.h | 429 float gain; 483 } gain;
|
/haiku/src/add-ons/kernel/drivers/audio/hda/ |
H A D | hda_multi_audio.cpp | 389 int32 inputIndex, bool& gain, bool& mute) 397 control.gain = 0; 413 if (gain && AMP_CAP_NUM_STEPS(capabilities) >= 1) { 414 control.mix_control.gain.granularity = AMP_CAP_STEP_SIZE(capabilities); 415 control.mix_control.gain.min_gain = (0.0 - AMP_CAP_OFFSET(capabilities)) 416 * control.mix_control.gain.granularity; 417 control.mix_control.gain.max_gain = (AMP_CAP_NUM_STEPS(capabilities) 419 * control.mix_control.gain.granularity; 434 control.mix_control.gain.granularity, 435 control.mix_control.gain 387 hda_create_channel_control(hda_multi* multi, uint32* index, int32 parent, int32 string, hda_widget& widget, bool input, uint32 capabilities, int32 inputIndex, bool& gain, bool& mute) argument 491 hda_create_control_for_complex(hda_multi* multi, uint32* index, uint32 parent, hda_widget& widget, bool& gain, bool& mute) argument 560 bool gain = true, mute = true; local 592 bool gain = true, mute = true; local 615 bool gain = true, mute = true; local [all...] |
/haiku/src/tests/kits/media/playsound/ |
H A D | playsound.cpp | 43 fprintf(stderr, " playsound [--loop] [--gain <value>] [--pan <value>] <filename>\n"); 44 fprintf(stderr, " gain value in percent, can be 0 (silence) to 100 (normal) or higher\n"); 54 int gain = 100; local 63 {"gain", required_argument, 0, 'g'}, 78 gain = atoi(optarg); 117 err = snd.SetGain(gain / 100.0); 119 fprintf(stderr, "Setting gain failed, error 0x%08lx (%s)\n", err, strerror(err));
|
/haiku/headers/private/media/ |
H A D | ServerInterface.h | 606 float gain; member in struct:server_get_item_audio_gain_reply 612 float gain; member in struct:server_set_item_audio_gain_request
|
/haiku/src/add-ons/media/media-add-ons/mixer/ |
H A D | MixerCore.h | 48 void SetOutputAttenuation(float gain);
|
H A D | AudioMixer.h | 47 float Gain_to_dB(float gain);
|
H A D | Resampler.h | 22 int32 destSampleCount, float gain); 29 int32 destSampleCount, float gain); 36 int32 destSampleCount, float gain) 39 destSampleCount, gain); 34 Resample(const void *src, int32 srcSampleOffset, int32 srcSampleCount, void *dest, int32 destSampleOffset, int32 destSampleCount, float gain) argument
|
H A D | MixerOutput.cpp | 103 // apply old gains and sources, overriding the 1.0 gain defaults for the old channels 114 // also copy the old gain cache 125 TRACE("UpdateOutputChannels: output channel %d, type %2d, gain %.3f\n", i, fOutputChannelInfo[i].channel_type, fOutputChannelInfo[i].channel_gain); 321 MixerOutput::SetOutputChannelGain(int channel, float gain) argument 323 TRACE("SetOutputChannelGain chan %d, gain %.5f\n", channel, gain); 326 fOutputChannelInfo[channel].channel_gain = gain; 343 // when adding a new source, use the current gain value from cache 358 // when removing a source, save the current gain value into the cache 375 // set gain fo [all...] |
H A D | MixerOutput.h | 19 * To allow gain change for not active sources, 39 float gain);
|
/haiku/src/add-ons/kernel/drivers/audio/ice1712/ |
H A D | multi.cpp | 578 control.gain.max_gain = 0.0; 579 control.gain.min_gain = -144.0; 580 control.gain.granularity = 1.5; 834 mmv->gain = vol[chan].volume; 836 mmv->gain, (int)chan); 870 vol[chan].volume = mmv->gain; 872 mmv->gain, (int)chan);
|
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/ |
H A D | Mixer.cpp | 245 // GG - in gain controls: 10th of granularity. Signed! 247 // BB - in gain controls: base level - correspond to 0 db. 370 Control.gain.min_gain = (Info.fMult > 0) ? min_gain : max_gain; 371 Control.gain.max_gain = (Info.fMult > 0) ? max_gain : min_gain; 372 Control.gain.granularity = Info.fMult; 374 // encode gain granularity in the MSB of the control id. 382 Control.gain.min_gain, Control.gain.max_gain, 383 Control.gain.granularity, Control.id); 655 uint8 gain local 663 uint8 gain = (RegValue >> 8) & 0x3f; local 709 float gain = (Info->values[i].gain + base) / mult; local [all...] |
/haiku/src/kits/game/ |
H A D | GameSound.cpp | 114 BGameSound::SetGain(float gain, bigtime_t duration) argument 119 attribute.value = gain;
|
H A D | GameSoundBuffer.h | 51 status_t SetGain(float gain, bigtime_t duration);
|
/haiku/src/add-ons/media/media-add-ons/radeon/ |
H A D | MSP3430.cpp | 334 void CMSP3430::SetFMPrescale(int gain, MSP3430_fm_matrix matrix, bool mute) 337 fFMPrescale = (mute ? 0x00 : Clamp(gain, 0x00, 0x7f)) << 8; 360 void CMSP3430::SetNICAMPrescale(int gain, bool mute) 363 fNICAMPrescale = (mute ? 0x00 : Clamp(0x20 + (0x5f * gain) / 12, 0x20, 0x7f)) << 8; 368 void CMSP3430::SetI2SPrescale(int gain, bool mute) 371 fI2SPrescale = (mute ? 0x00 : Clamp(0x10 + (0x7f * gain) / 18, 0x10, 0x7f) << 8; 375 void CMSP3430::SetSCARTPrescale(int gain, bool mute) 378 fSCARTPrescale = (mute ? 0x00 : Clamp(0x19 + (0x66 * gain) / 14, 0x19, 0x7f) << 8; 479 void CMSP3430::SetEqualizer(int gain[5]) 483 fEqualizer[index] = Clamp(0x00 + 8 * gain[inde [all...] |
H A D | Theater100.cpp | 1018 double ref0, setup, gain; local 1027 gain = 219.0 / (92.5 * ref0 / 40.0); 1032 gain = 219.0 / (100.0 * ref0 / 40.0); 1041 gain = 219.0 / (100.0 * ref0 / 43.0); 1046 gain = 0.0; 1055 int(64.0 * ((contrast + 100) / 100.0) * gain) << 0); 1059 int(16.0 * ((brightness - setup) + 16.0 / ((contrast + 100) * gain / 100.0))) & BRIGHTNESS); 1125 double gain, CRgain, CBgain; local 1164 gain = 1.0 + 4.9 * saturation / 100.0; 1166 gain [all...] |
/haiku/headers/os/media/ |
H A D | MediaFiles.h | 37 const char* item, float gain);
|