/haiku-fatelf/src/bin/ |
H A D | setvolume.cpp | 50 BContinuousParameter *gain = NULL; local 55 gain = dynamic_cast<BContinuousParameter *>(parameter); 60 if (gain == NULL) { 61 fprintf(stderr, "%s: could not found master gain!\n", sProgramName); 75 if (volume > gain->MaxValue()) 76 volume = gain->MaxValue(); 77 else if (volume < gain->MinValue()) 78 volume = gain->MinValue(); 80 gain->SetValue(&volume, sizeof(volume), system_time()); 86 gain [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/mixer/ |
H A D | Resampler.h | 23 int32 destSampleCount, float gain); 29 int32 destSampleCount, float gain); 33 int32 destSampleCount, float gain); 37 int32 destSampleCount, float gain); 41 int32 destSampleCount, float gain); 45 int32 destSampleCount, float gain); 49 int32 destSampleCount, float gain); 53 int32 destSampleCount, float gain); 57 int32 destSampleCount, float gain); 61 int32 destSampleCount, float gain); 72 Resample(const void *src, int32 srcSampleOffset, int32 srcSampleCount, void *dest, int32 destSampleOffset, int32 destSampleCount, float gain) argument [all...] |
H A D | Interpolate.h | 21 int32 destSampleCount, float gain); 25 int32 destSampleCount, float gain); 29 int32 destSampleCount, float gain); 33 int32 destSampleCount, float gain); 37 int32 destSampleCount, float gain); 41 int32 destSampleCount, float gain); 45 int32 destSampleCount, float gain); 49 int32 destSampleCount, float gain); 53 int32 destSampleCount, float gain);
|
H A D | Interpolate.cpp | 35 register float gain = _gain; local 40 *(float *)dest = *(const float *)src * gain; 53 *(float*)dest = gain * (SRC(0) + (SRC(1) - SRC(0)) * current) ; 63 *(float*)dest = SRC(0) * gain; 75 register float gain = _gain / 2147483647.0; local 80 *(float *)dest = *(const int32 *)src * gain; 94 *(float*)dest = gain * (SRC(0) + (SRC(1) - SRC(0)) * current) ; 104 *(float*)dest = SRC(0) * gain; 116 register float gain = _gain / 32767.0; local 121 *(float *)dest = *(const int16 *)src * gain; 157 register float gain = _gain / 127.0; local 198 register float gain = _gain / 127.0; local 239 register float gain = _gain * 2147483647.0; local 299 register float gain = _gain * 32767.0; local 356 register float gain = _gain * 127.0; local 413 register float gain = _gain * 127.0; local [all...] |
H A D | Resampler.cpp | 96 register float gain = _gain; local 101 *(float *)dest = *(const float *)src * gain; 114 *(float *)dest = *(const float *)src * gain; 125 *(float *)dest = *(const float *)src * gain; 144 register float gain = _gain / 2147483647.0; local 149 *(float *)dest = *(const int32 *)src * gain; 162 *(float *)dest = *(const int32 *)src * gain; 173 *(float *)dest = *(const int32 *)src * gain; 192 register float gain = _gain / 32767.0; local 197 *(float *)dest = *(const int16 *)src * gain; 240 register float gain = _gain / 127.0; local 288 register float gain = _gain / 127.0; local 336 register float gain = _gain * 2147483647.0; local 402 register float gain = _gain * 32767.0; local 468 register float gain = _gain * 127.0; local 534 register float gain = _gain * 127.0; local [all...] |
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 | MixerInput.cpp | 76 fInputChannelInfo[i].gain = 1.0; 265 fInputChannelInfo[i].gain); 274 fInputChannelInfo[i].gain); 300 out_frames, fInputChannelInfo[i].gain); 424 MixerInput::SetInputChannelGain(int channel, float gain) argument 428 if (gain < 0.0f) 429 gain = 0.0f; 431 fInputChannelInfo[channel].gain = gain; 440 return fInputChannelInfo[channel].gain; 622 SetMixerChannelGain(int mixer_channel, float gain) argument [all...] |
H A D | MixerCore.cpp | 58 float gain; member in struct:chan_info 139 MixerCore::SetOutputAttenuation(float gain) argument 142 fOutputGain = gain; 597 float gain; local 599 eventTime, &base, &sampleOffset, &type, &gain)) { 607 info->gain = gain; 615 float gain; local 617 &gain); 626 newInfo->gain 650 register float gain = info->gain; local [all...] |
H A D | MixerCore.h | 44 void SetOutputAttenuation(float gain);
|
H A D | MixerOutput.h | 19 * To allow gain change for not active sources, 39 float gain);
|
/haiku-fatelf/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-fatelf/src/kits/game/ |
H A D | GameSoundBuffer.cpp | 48 ApplyMod(uint8 * data, uint8 * buffer, int64 index, float gain, float * pan) argument 50 data[index * 2] += uint8(float(buffer[index * 2]) * gain * pan[0]); 51 data[index * 2 + 1] += uint8(float(buffer[index * 2 + 1]) * gain * pan[1]); 56 ApplyMod(int16 * data, int16 * buffer, int32 index, float gain, float * pan) argument 58 data[index * 2] = int16(float(buffer[index * 2]) * gain * pan[0]); 59 data[index * 2 + 1] = int16(float(buffer[index * 2 + 1]) * gain * pan[1]); 64 ApplyMod(int32 * data, int32 * buffer, int32 index, float gain, float * pan) argument 66 data[index * 2] += int32(float(buffer[index * 2]) * gain * pan[0]); 67 data[index * 2 + 1] += int32(float(buffer[index * 2 + 1]) * gain * pan[1]); 72 ApplyMod(float * data, float * buffer, int32 index, float gain, floa argument 157 SetGain(float gain, bigtime_t duration) argument [all...] |
H A D | FileGameSound.cpp | 42 float gain = *ramp->value; local 43 data[byte] = uint8(float(buffer[byte]) * gain); 61 float gain = *ramp->value; local 62 data[byte] = int16(float(buffer[byte]) * gain); 81 float gain = *ramp->value; local 82 data[byte] = int32(float(buffer[byte]) * gain); 104 float gain = *ramp->value; local 105 data[byte] = buffer[byte] * gain;
|
/haiku-fatelf/src/bin/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-fatelf/src/add-ons/kernel/drivers/audio/hda/ |
H A D | hda_multi_audio.cpp | 316 int32 inputIndex, bool& gain, bool& mute) 324 control.gain = 0; 340 if (gain && AMP_CAP_NUM_STEPS(capabilities) >= 1) { 341 control.mix_control.gain.granularity = AMP_CAP_STEP_SIZE(capabilities); 342 control.mix_control.gain.min_gain = (0.0 - AMP_CAP_OFFSET(capabilities)) 343 * control.mix_control.gain.granularity; 344 control.mix_control.gain.max_gain = (AMP_CAP_NUM_STEPS(capabilities) 346 * control.mix_control.gain.granularity; 361 control.mix_control.gain.granularity, 362 control.mix_control.gain 314 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 418 hda_create_control_for_complex(hda_multi* multi, uint32* index, uint32 parent, hda_widget& widget, bool& gain, bool& mute) argument 487 bool gain = true, mute = true; local 518 bool gain = true, mute = true; local 541 bool gain = true, mute = true; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auich/ |
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 112 float gain; local [all...] |
/haiku-fatelf/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-fatelf/src/add-ons/kernel/drivers/audio/ac97/geode/ |
H A D | geode_multi.cpp | 192 float gain; local 200 gain = ((value & mask) >> 8) * info->granularity; 202 values[0] = info->max_gain - gain; 204 values[0] = gain - info->min_gain; 207 gain = (value & mask) * info->granularity; 209 values[1] = info->max_gain - gain; 211 values[1] = gain - info->min_gain; 214 gain = (value & mask) * info->granularity; 216 values[0] = info->max_gain - gain; 218 values[0] = gain 250 float gain; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/es1370/ |
H A D | multi.c | 31 float gain; local 39 gain = ((value & mask) >> 8) * info->granularity; 41 values[0] = info->max_gain - gain; 43 values[0] = gain - info->min_gain; 46 gain = (value & mask) * info->granularity; 48 values[1] = info->max_gain - gain; 50 values[1] = gain - info->min_gain; 53 gain = (value & mask) * info->granularity; 55 values[0] = info->max_gain - gain; 57 values[0] = gain 89 float gain; local [all...] |
/haiku-fatelf/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); 653 uint8 gain local 661 uint8 gain = (RegValue >> 8) & 0x3f; local 707 float gain = (Info->values[i].gain + base) / mult; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/audio/emuxki/ |
H A D | multi.c | 48 float gain; local 56 gain = ((value & mask) >> 8) * info->granularity; 58 values[0] = info->max_gain - gain; 60 values[0] = gain - info->min_gain; 63 gain = (value & mask) * info->granularity; 65 values[1] = info->max_gain - gain; 67 values[1] = gain - info->min_gain; 70 gain = (value & mask) * info->granularity; 72 values[0] = info->max_gain - gain; 74 values[0] = gain 106 float gain; local [all...] |
/haiku-fatelf/headers/os/media/ |
H A D | MediaFiles.h | 37 const char* item, float gain);
|
/haiku-fatelf/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-fatelf/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...] |