audio was working fine, i just had the wrong frequency...
git-svn-id: svn://anubis/anaglym/trunk@259 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
ba77e98431
commit
2763da5f43
2
Video.cc
2
Video.cc
@ -14,7 +14,7 @@ static void Video_sound_callback(void * userdata, Uint8 * stream, int len)
|
|||||||
Sint16 * str = (Sint16 *) stream;
|
Sint16 * str = (Sint16 *) stream;
|
||||||
for (int i = 0; i < len / 4; i++)
|
for (int i = 0; i < len / 4; i++)
|
||||||
{
|
{
|
||||||
str[i*2] = (Sint16) (32000.0 * sin(pos / 44100.0 * M_PI));
|
str[i*2] = (Sint16) (32000.0 * sin(pos * 263.0 / 44100.0 * 2.0 * M_PI));
|
||||||
str[i*2+1] = 0;
|
str[i*2+1] = 0;
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user