Subversion Repositories DIN Is Noise

Rev

Rev 2266 | Rev 2302 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2266 Rev 2267
Line 141... Line 141...
141
void play::master (float* L, float* wav, int n, float vol)  { // master with volume
141
void play::master (float* L, float* wav, int n, float vol)  { // master with volume
142
  gen_wav_and_mix (wav, n); // mix waveforms
142
  gen_wav_and_mix (wav, n); // mix waveforms
143
  operator() (L, n, wav, vol); // apply volume
143
  operator() (L, n, wav, vol); // apply volume
144
}
144
}
145
145
-
 
146
-
 
147
void play::master (float* L, float* wav, int n, float* vola)  { // master with volume array
-
 
148
  gen_wav_and_mix (wav, n); // mix waveforms
-
 
149
  operator() (L, n, wav, vola); // apply volume
-
 
150
}
-
 
151
146
void play::gen_wav_fm (solver& _sol, float& _x, float* wav, float* fm, int n) { // generate waveform samples with FM 
152
void play::gen_wav_fm (solver& _sol, float& _x, float* wav, float* fm, int n) { // generate waveform samples with FM 
147
  _sol (_x, pdx, n, fm, wav);
153
  _sol (_x, pdx, n, fm, wav);
148
}
154
}
149
155
150
void play::gen_wav_am (float* out, float* wav, float* am, int n) { // apply AM to waveform samples
156
void play::gen_wav_am (float* out, float* wav, float* am, int n) { // apply AM to waveform samples