/haiku/src/add-ons/media/media-add-ons/mixer/ |
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 | MixerInput.h | 41 void SetInputChannelGain(int channel, float gain); 58 float gain); 85 float gain; member in struct:MixerInput::input_chan_info 128 float* gain) 166 *gain = fMixerChannelInfo[mixerChannel].destination_gain; 126 GetMixerChannelInfo(int mixerChannel, int64 framepos, bigtime_t time, const float** buffer, uint32* sampleOffset, int* type, float* gain) argument
|
H A D | Interpolate.cpp | 31 float gain = _gain * gnum / gden; local 36 float tmp = ((*(const inType*)src) - inMiddle) * gain + outMiddle; 56 float tmp = (gain * (oldSample + (SRC - oldSample) * current - inMiddle)
|
H A D | Resampler.cpp | 31 float gain = _gain * gnum / gden; local 36 float tmp = ((*(const inType*)src) - inMiddle) * gain + outMiddle; 54 float tmp = ((*(const inType*)src) - inMiddle) * gain + outMiddle;
|
H A D | MixerInput.cpp | 76 fInputChannelInfo[i].gain = 1.0; 269 fInputChannelInfo[i].gain); 278 fInputChannelInfo[i].gain); 304 out_frames, fInputChannelInfo[i].gain); 428 MixerInput::SetInputChannelGain(int channel, float gain) argument 432 if (gain < 0.0f) 433 gain = 0.0f; 435 fInputChannelInfo[channel].gain = gain; 444 return fInputChannelInfo[channel].gain; 626 SetMixerChannelGain(int mixer_channel, float gain) argument [all...] |
H A D | MixerCore.cpp | 60 float gain; member in struct:chan_info 142 MixerCore::SetOutputAttenuation(float gain) argument 145 fOutputGain = gain; 607 float gain; local 609 fEventTime, &base, &sampleOffset, &type, &gain)) { 617 info->gain = gain; 625 float gain; local 627 &gain); 636 newInfo->gain 660 float gain = info->gain; local [all...] |
H A D | MixerOutput.h | 19 * To allow gain change for not active sources, 39 float gain);
|
/haiku/src/bin/ |
H A D | setvolume.cpp | 65 BContinuousParameter *gain = NULL; local 70 // assume the mute preceeding master gain control 75 gain = dynamic_cast<BContinuousParameter *>(parameter); 80 if (gain == NULL) { 81 fprintf(stderr, "%s: could not found master gain!\n", sProgramName); 106 gain->GetValue(&volume, &size, &when); 113 if (muted == 0 || volume <= gain->MinValue()) 119 if (volume <= gain->MinValue()) 142 if (volume > gain->MaxValue()) 143 volume = gain [all...] |
/haiku/src/servers/media/ |
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);
|
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...] |
/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/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/add-ons/kernel/drivers/audio/ac97/auich/ |
H A D | multi.c | 57 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 D | multi.c | 52 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...] |
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/ |
H A D | geode_multi.cpp | 191 float gain; local 199 gain = ((value & mask) >> 8) * info->granularity; 201 values[0] = info->max_gain - gain; 203 values[0] = gain - info->min_gain; 206 gain = (value & mask) * info->granularity; 208 values[1] = info->max_gain - gain; 210 values[1] = gain - info->min_gain; 213 gain = (value & mask) * info->granularity; 215 values[0] = info->max_gain - gain; 217 values[0] = gain 249 float gain; local [all...] |
/haiku/src/add-ons/kernel/drivers/audio/ac97/es1370/ |
H A D | multi.c | 35 float gain; 43 gain = ((value & mask) >> 8) * info->granularity; 45 values[0] = info->max_gain - gain; 47 values[0] = gain - info->min_gain; 50 gain = (value & mask) * info->granularity; 52 values[1] = info->max_gain - gain; 54 values[1] = gain - info->min_gain; 57 gain = (value & mask) * info->granularity; 59 values[0] = info->max_gain - gain; 61 values[0] = gain [all...] |
/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/add-ons/kernel/drivers/audio/emuxki/ |
H A D | multi.c | 53 float gain; local 61 gain = ((value & mask) >> 8) * info->granularity; 63 values[0] = info->max_gain - gain; 65 values[0] = gain - info->min_gain; 68 gain = (value & mask) * info->granularity; 70 values[1] = info->max_gain - gain; 72 values[1] = gain - info->min_gain; 75 gain = (value & mask) * info->granularity; 77 values[0] = info->max_gain - gain; 79 values[0] = gain 111 float gain; local [all...] |
/haiku/headers/os/media/ |
H A D | MediaFiles.h | 37 const char* item, float gain);
|
/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/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...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/ |
H A D | r88e_chan.c | 147 r88e_set_gain(struct rtwn_softc *sc, uint8_t gain) argument 151 R92C_OFDM0_AGCCORE1_GAIN_M, gain);
|
/haiku/src/kits/game/ |
H A D | GameSoundBuffer.h | 51 status_t SetGain(float gain, bigtime_t duration);
|
H A D | GameSoundBuffer.cpp | 135 GameSoundBuffer::SetGain(float gain, bigtime_t duration) argument 137 if (gain < 0.0 || gain > 1.0) 144 fGainRamp = InitRamp(&fGain, gain, fFormat.frame_rate, duration); 146 fGain = gain; 309 // FIXME also, we don't handle the gain here. 320 // adjust the gain if needed
|
/haiku/src/add-ons/kernel/drivers/audio/usb/ |
H A D | AudioControlInterface.cpp | 1247 { USB_AUDIO_GET_MIN, 0, Control.gain.min_gain }, 1248 { USB_AUDIO_GET_MAX, 0, Control.gain.max_gain }, 1249 { USB_AUDIO_GET_RES, 0, Control.gain.granularity } 1252 Control.gain.min_gain = 0.; 1253 Control.gain.max_gain = 100.; 1254 Control.gain.granularity = 1.; 1278 Control.name, current, Control.gain.min_gain, Control.gain.max_gain, 1279 Control.gain.granularity); 1946 Info->values[i].gain [all...] |