Roxifλsz 🇱🇹
That's a good stock photo
Roxifλsz 🇱🇹
BinaryByter
yes :D
BinaryByter
this entire stickerpack is full of good stock photos
BinaryByter
Roxifλsz 🇱🇹
BinaryByter
Roxifλsz 🇱🇹
Roxifλsz 🇱🇹
Burgerphobia
Lucky
🤔
BinaryByter
Lucky
Ανδρέας 🇮🇹
that is racist
BinaryByter
what?
Ανδρέας 🇮🇹
italians are not that white
BinaryByter
Sorry
BinaryByter
xD
klimi
italians are not that white
Where is it written
Ανδρέας 🇮🇹
we are not Hungarian either
Ανδρέας 🇮🇹
the flag is wrong :(
Nikolas
italians are not that white
Well look at me, I'm whiter than white 😆
Ανδρέας 🇮🇹
sorry for the ot
BinaryByter
sorry for the ot
I will ban you for this horrible OT
BinaryByter
xDD
Silvestr
Hello guys! Who can me explain this piece of code from ffmpeg sample t = 0; tincr = 2 * M_PI * 440.0 / c->sample_rate; for (i = 0; i < 200; i++) { /* make sure the frame is writable -- makes a copy if the encoder * kept a reference internally */ ret = av_frame_make_writable(frame); if (ret < 0) exit(1); samples = (uint16_t*)frame->data[0]; for (j = 0; j < c->frame_size; j++) { samples[2*j] = (int)(sin(t) * 10000); for (k = 1; k < c->channels; k++) samples[2*j + k] = samples[2*j]; t += tincr; } encode(c, frame, pkt, f); }, Or maybe you know where I can read about this sound wave creating and undertsood how is working this magic.
Silvestr
https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_audio.c
Silvestr
I am confused with this tincr = 2 * M_PI * 440.0 / c->sample_rate; and also with this samples = (uint16_t*)frame->data[0]; for (j = 0; j < c->frame_size; j++) { samples[2*j] = (int)(sin(t) * 10000);
BinaryByter
why are you confused with this bad code?
Lucky
Welcome AVM
Silvestr
why are you confused with this bad code?
It somehow works, but I don`t understand how
Silvestr
a lot of variables
BinaryByter
its bad code anyway
BinaryByter
but ask us EXACTLY what you don't understand
Silvestr
Why I need float t = 0; float tincr = 2 * M_PI * 400.0 / codec_context->sample_rate; this two variables and what kind of relations between them.
Silvestr
I know these creates sound waves, but how?
Silvestr
but ask us EXACTLY what you don't understand
maybe you know someone who can explain me that?
Anonymous
Hi
BinaryByter
maybe you know someone who can explain me that?
nobody can explain you something without knowing what you don't undersatnd
BinaryByter
tincr is the timeincrement
BinaryByter
i think
Silvestr
tincr is the timeincrement
thanks, I will try to experiment with that.
BinaryByter
perfect :D
BinaryByter
:D
Dima
ban this guy anyone
Dima
That group name also, lol!
Saran
Hi
Roxifλsz 🇱🇹
ban this guy anyone
A warn is in order, at the very least
Silvestr
This will generate a 400 hz wave, typically known as dial tone.
How I can change sound wave from one sample to another?
Silvestr
I should change tincr?
Rajeev
How I can change sound wave from one sample to another?
There are two parameters, i.e. Tone Frequency (as 400 hz) and other is sampling rate typically its 8000 but depends on codec selected. if you need 440 hz, change tincr as 2 * M_PI 440.0// codec_context->sample_rate;
Anonymous
Hello
klimi
Anonymous
Anonymous
Lenovo yoga 530, 700 euros. What do you think? What can I buy with the same price, but better?
Anonymous
??
Ибраги́м
??
Offtopic
Anonymous
I can't write there
Ибраги́м
U can
Anonymous
No
Ибраги́м
Unless u've been restricted
Anonymous
Ибраги́м
Leave and join again
Anonymous
Okk done
Anonymous
How to write inorder,preorder and postorder traversals using a binary tree?
Anonymous
Anonymous
From this tree,How can I write pre,post and inorder traversals?
Anonymous
How can i read a website into a string using C++