Searched refs:gain (Results 1 - 25 of 46) sorted by path

12

/haiku/headers/os/media/
H A DMediaFiles.h37 const char* item, float gain);
/haiku/headers/private/audio/
H A Dhmulti_audio.h429 float gain;
483 } gain;
/haiku/headers/private/media/
H A DServerInterface.h606 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/kernel/drivers/audio/ac97/sis7018/
H A DMixer.cpp245 // 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/add-ons/kernel/drivers/audio/hda/
H A Dhda_multi_audio.cpp389 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/add-ons/kernel/drivers/audio/ice1712/
H A Dmulti.cpp578 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/media/media-add-ons/mixer/
H A DAudioMixer.h47 float Gain_to_dB(float gain);
H A DMixerCore.h48 void SetOutputAttenuation(float gain);
H A DMixerOutput.cpp103 // 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 DMixerOutput.h19 * To allow gain change for not active sources,
39 float gain);
H A DResampler.h22 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
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DMSP3430.cpp334 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 DTheater100.cpp1018 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/src/apps/mediaplayer/interface/
H A DTransportControlGroup.cpp364 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 DTransportControlGroup.h95 float _GainToDb(float gain);
/haiku/src/kits/game/
H A DGameSound.cpp114 BGameSound::SetGain(float gain, bigtime_t duration) argument
119 attribute.value = gain;
H A DGameSoundBuffer.h51 status_t SetGain(float gain, bigtime_t duration);
/haiku/src/kits/media/
H A DMediaFiles.cpp184 *_gain = reply.gain;
213 BMediaFiles::SetAudioGainFor(const char* type, const char* item, float gain) argument
220 request.gain = gain;
/haiku/src/servers/media/
H A DMediaFilesManager.cpp102 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 DMediaFilesManager.h42 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/tests/kits/media/playsound/
H A Dplaysound.cpp43 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/os/drivers/usb/
H A DUSB_video.h531 gain: 1,
568 gain: 1,
/haiku/headers/os/game/
H A DGameSound.h31 status_t SetGain(float gain, bigtime_t duration = 0);
/haiku/src/add-ons/kernel/drivers/audio/ac97/auich/
H A Dmulti.c57 float gain; local
65 gain = ((value & mask) >> 8) * info->granularity;
67 values[0] = info->max_gain - gain;
69 values[0] = gain - info->min_gain;
72 gain = (value & mask) * info->granularity;
74 values[1] = info->max_gain - gain;
76 values[1] = gain - info->min_gain;
79 gain = (value & mask) * info->granularity;
81 values[0] = info->max_gain - gain;
83 values[0] = gain
116 float gain; local
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/auvia/
H A Dmulti.c52 float gain; local
60 gain = ((value & mask) >> 8) * info->granularity;
62 values[0] = info->max_gain - gain;
64 values[0] = gain - info->min_gain;
67 gain = (value & mask) * info->granularity;
69 values[1] = info->max_gain - gain;
71 values[1] = gain - info->min_gain;
74 gain = (value & mask) * info->granularity;
76 values[0] = info->max_gain - gain;
78 values[0] = gain
110 float gain; local
[all...]

Completed in 181 milliseconds

12