XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Direct Sound Ogg-Vorbis streaming not working on Quad-Core XP machines

Last post 8/5/2009 9:21 PM by vspencerACI. 2 replies.
  • 8/1/2009 8:33 AM

    Direct Sound Ogg-Vorbis streaming not working on Quad-Core XP machines

    Hey,

    I have been working on a C++ Direct Sound/Ogg-Vorbis player and was able to stream up to 4 ogg files and play them using secondary buffers.

    Everything was fine until I tried to run the program on a Quad-Core/XP machine. The play time is extremely reduced, i.e., an 8 sec long file is played in 4 sec or less. What's strange is that the same code works on Dual-Core/XP, Quad-Core/Vista - same machine as the Quad-Core/XP, Dual-Core/Windows 7 and i7/Windows 7 machines.

    The specs for the Quad-Core/XP machine are:
    - 4GB RAM
    - Intel Core 2 Quad CPU Q9950
    - RealTek HD Audio

    If you need more information please let me know.

    Thanks for your help.
    V
  • 8/5/2009 3:53 AM In reply to

    Re: Direct Sound Ogg-Vorbis streaming not working on Quad-Core XP machines

    I solved the problem by setting the audio hardware acceleration in DirecX Diagnostic Tool to Basic Acceleration.
  • 8/5/2009 9:21 PM In reply to

    Re: Direct Sound Ogg-Vorbis streaming not working on Quad-Core XP machines

    Answer
    Reply Quote
    Evil Steve at GameDev said this about the DirectSound and hardware acceleration:

    "If you're using notifications to signal that you're reaching the end of the buffer, they're very very broken on a lot of hardware (Especially on-board audio controllers). The solution is to use software buffers for streaming. On Vista, DirectSound isn't hardware accelerated at all, so the buffers will be forced into software even if you specify hardware - which means the notifications will work correctly."

    I just test using software buffers for streaming and it works.
Page 1 of 1 (3 items) Previous Next