mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-06 01:03:19 +02:00
tweak audio compression to 22050
This commit is contained in:
parent
cabcbbc0d2
commit
39c4c729e4
3 changed files with 5 additions and 5 deletions
|
@ -145,10 +145,10 @@ bool Audio::init()
|
|||
if (err != paNoError) goto error;
|
||||
|
||||
err = Pa_OpenDefaultStream(&stream,
|
||||
2, // input channels
|
||||
2, // output channels
|
||||
1, // input channels
|
||||
1, // output channels
|
||||
paFloat32, // sample format
|
||||
44100, // sample rate (hz)
|
||||
22050, // sample rate (hz)
|
||||
512, // frames per buffer
|
||||
audioCallback, // callback function
|
||||
(void*)data); // user data to be passed to callback
|
||||
|
|
Binary file not shown.
4
main.cpp
4
main.cpp
|
@ -89,7 +89,7 @@ Hand myHand(HAND_RADIUS,
|
|||
glm::vec3(0,1,1)); // My hand (used to manipulate things in world)
|
||||
|
||||
glm::vec3 box(WORLD_SIZE,WORLD_SIZE,WORLD_SIZE);
|
||||
ParticleSystem balls(500,
|
||||
ParticleSystem balls(10,
|
||||
box,
|
||||
false, // Wrap?
|
||||
0.0, // Noise
|
||||
|
@ -112,7 +112,7 @@ ParticleSystem balls(500,
|
|||
#define RENDER_FRAME_MSECS 10
|
||||
#define SLEEP 0
|
||||
|
||||
#define NUM_TRIS 100 // 20000 //000
|
||||
#define NUM_TRIS 50000 // 20000 //000
|
||||
struct {
|
||||
float vertices[NUM_TRIS * 9];
|
||||
float normals [NUM_TRIS * 3];
|
||||
|
|
Loading…
Reference in a new issue