You were right the code works. Thanks.
Type: Posts; User: Lane the Great
You were right the code works. Thanks.
I tested and compiled the code. It didn't make any difference. the sound was still choppy. Here's the example code mine was based off that plays with no sound glitches:
#include <windows.h>...
Latency Checker still spikes but only when my adapter is trying to connect to a wireless connection and Windows Media Player now plays with no problems. Finally!
I updated the driver for my audio controller but it didn't help. I think my problem is with the synchronization of my threads like Codeplug said. The example mine's based off used Critical Sections...
I installed the latest drive for my network adapter and also Driver Genius which scans for outdated drivers. It says my audio driver isn't up to date. I'll try and update that to see if it helps.
To all reading this thread the sound card wasn't the problem with my program. I still can't find the cause of the slower playback and chopiness. Any one have an idea?
I downloaded the DPC Latency Checker and apparently there is a problem with my sound card, there are spikes and the program evens says that some drivers are causing drop-outs. You were right, my...
I changed the priority of the process with task manager to different priorities, including Realtime but nothing changed. Still choppy.
Being fed up with Windows Media Player lagging and screwing up my playlist I decided to pursue my own audio player. I used the Windows WaveOut API and made a thread that would control the position...
You were right about srand! All I did was move srand to the WM_CREATE message so it was called only once and the lightning is rendering at the right speed! I didn't expect srand would slow it down....
I used to glut example you gave me and it rendered but it only updated the display when the window needed redrawing by the system. Ex. if the window was covered and uncovered by another window. It...
I found the profiler and compiled the program with profiling and this is what gprof reported:
Flat profile:
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self ...
Hello, my name's Lane Shaw, and this is my first post on a forum. I'm 16 and I use the Bloodshed Dev-C++ compiler to build my programs. The problem I'm having is an app I made to create lightning...