mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
Update documentation.
This commit is contained in:
@@ -326,7 +326,7 @@ orbiting effect. Terminate the program with Ctrl+C.</p>
|
||||
<span style="color:#009900">/* Rotate the listener on the spot to create an orbiting effect. */</span>
|
||||
<span style="color:#0033ff">for</span> (;;) {
|
||||
listenerAngle += 0.01f;
|
||||
ma_engine_listener_set_direction(&engine, 0, sinf(listenerAngle), 0, cosf(listenerAngle));
|
||||
ma_engine_listener_set_direction(&engine, 0, (<span style="color:#0033ff">float</span>)sin(listenerAngle), 0, (<span style="color:#0033ff">float</span>)cos(listenerAngle));
|
||||
|
||||
ma_sleep(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user