Results 1 to 3 of 3

Thread: directsound to a more low-level api

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192

    directsound to a more low-level api

    i have written some code that adds waveforms together and handles this to a fixed length array, allowing for smooth playback of simultaneous frequencies.

    i would like to, if possible, access the audio memory directly rather than writing to an array and using directsound to copy
    Attached Files Attached Files
    Last edited by dafhi; Nov 3rd, 2002 at 01:58 AM.

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    299
    Sorry i don't have the answers you require, but i am well impressed by your code. Being a rookie to DX programming and such i find it pretty much what i have been looking for, for a long time. I've been after a way to get the levels of the sound within the buffers.
    I'm not sure if thats exactly what you are doing there but it looks similar. I am trying to modify the code in such a way as to put in a wav file instead of the tones that you are generating. I was wondering if you already had something along these lines.
    If you do could you either post it or attach it to post?
    Cheers if you could. If you can't then i'll just work my way through your osc project.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    there are a few good examples of writing to wav at planet-source-code.

    search term 'brain' might come up with at least 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width