Implement a few more audio options/functions
Implement a few audio options in to the user interface as well as a few inline audio functions in audio-io.h. Make it so ffmpeg plugin automatically converts to the desired format. Use regular interleaved float internally for audio instead of planar float.
This commit is contained in:
@@ -37,7 +37,7 @@ static void *sinewave_thread(void *pdata)
|
||||
if (cos_val > M_PI_X2)
|
||||
cos_val -= M_PI_X2;
|
||||
|
||||
double wave = cos(cos_val);
|
||||
double wave = cos(cos_val) * 0.5;
|
||||
bytes[i] = (uint8_t)((wave+1.0)*0.5 * 255.0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user