Questions tagged [directsound]

DirectSound is a software component of the multimedia API collection known as Microsoft DirectX. It is geared to play audio.

168 questions
4
votes
1 answer

DirectSound: simple pcm playing

I'm playing with DirectSound and trying to play simple random wav data with following code: int _tmain(int argc, _TCHAR* argv[]) { LPDIRECTSOUND8 dsound; WAVEFORMATEX format; const int numchunks = 8; LPDIRECTSOUNDBUFFER dsbuf; …
user1266334
  • 153
  • 2
  • 12
3
votes
2 answers

Streaming Data to Sound Card Using C on Windows

As part of a university project I have to do some signal processing and would like to output the results using the PC sound card. The software has to be written in C and needs to work with Windows (preferably 7 and XP). I have found code examples…
sheepez
  • 986
  • 1
  • 10
  • 26
3
votes
1 answer

How can I add events to a wrapped class in C#?

I am using the DirectSound framework and SecondaryBuffer objects. I am wrapping the SecondaryBuffer object in another class because I have some other values I want to associate with my SecondaryBuffer. After playing a sound, I would like to dispose…
Kyle Uithoven
  • 2,414
  • 5
  • 30
  • 43
3
votes
0 answers

Play sound with C# using DirectSound (DirectX API)

This might seem like a very basic question, but not even by researching for hours I could find out what I did wrong. I tried to write a simple console application that is supposed to play a sound from a resource, and this is my code: using…
user5749714
3
votes
1 answer

Playback "clicking" noise

I am trying to write a program to play a small .wav file in C++. I have programmed it following the DirectX SDK documents to write and play on a secondary static buffer. It runs correctly except that at the end of the playback for any .wav file,…
kaykun
  • 2,247
  • 2
  • 24
  • 37
3
votes
3 answers

Which audio library to use?

I want to build a .Net application for processing audio, and distribute it using ClickOnce deployment. I need access to a raw audio pipeline. Which audio library should I be using? I've heard the managed libraries for DirectSound are a dead end. I…
Jeb
  • 15,939
  • 6
  • 34
  • 37
3
votes
1 answer

How do I process the microphone input in real-time?

I'm starting to create a proof of concept for an idea I have, and at this point, I need some guidance as to how I should begin. I need to sample the microphone input, and process that signal in real-time (think Auto-Tune, but working live), as…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
3
votes
1 answer

Voice Conference - how to have more people in conversation?

first of all, I'm just a hobbyist, so I'm sorry if this is dumb question or if I'm being too naive. (It also means that I can't buy expensive libraries) This is the situation: I'm building a simple voice chat application in C#.NET (something like…
Ken
  • 33
  • 3
3
votes
2 answers

Directsound with streaming buffer - Lock does not wrap! Using ported DirectX headers for Delphi

Right-o, I'm working on implementing DirectSound in our Delphi voip app (the app allows for radios to be used by multiple users over a network connection) Data comes in via UDP broadcasts. As it is now, we go down on a raw data level and do the…
Michael Stahre
  • 481
  • 6
  • 14
3
votes
1 answer

How to read bytes from a .wav file vb.net

I'm trying to do some work with .wav files and I've been able to play the files and play sound randomly by creating an array of bytes (see code for both below) I'd like to know if there's a method I can use to get the bytes from a .wav file. My…
FraserOfSmeg
  • 1,128
  • 2
  • 23
  • 41
3
votes
2 answers

Memory dump analysis (application hang)

I am attempting to analyze a memory dump that I received from one of my end users after a hang occurred in my application. It seems to be related to the audio playback portion of my application. I believe that there are two threads involved, the…
Philip Bennefall
  • 1,477
  • 5
  • 20
  • 33
3
votes
1 answer

How can I play a .wav file using SharpDX DirectSound in a C# WPF project?

I want to be able to precisely control the timing of .wav files played in my program. I also want to be able to play more than one .wav file at the same time. The SoundPlayer was not good enough because I can't play two sounds at once, and even when…
Jackson Dean Goodwin
  • 617
  • 3
  • 11
  • 20
3
votes
2 answers

Why do some wav files play in my c# directsound app but some don't?

I've got a c# application that plays simple wav files through directsound. With the test data I had, the code worked fine. However when I used real-world data, it produced a very unhelpful error on creation of the secondary buffer:…
tenpn
  • 4,556
  • 5
  • 43
  • 63
2
votes
2 answers

MP3 playback issues with DirectX when MP3 has album art encoded

I'm using the Clootie DirectShow9 headers with Delphi 2007. I created a wrapper component that plays audio and video. All is good until I get an MP3 that has album art encoded in it. The mp3 files like this just will not play. I do not get an…
John
  • 21
  • 2
2
votes
2 answers

DirectSound: "Value does not fall within the expected range." when initializing Notify

I'm getting that exception when I try to run a simple DirectSound program. Here's the code: using System; using System.Runtime.InteropServices; using System.Threading; using Microsoft.DirectX.DirectSound; namespace AudioDemo { class Program …
lzm
  • 827
  • 2
  • 11
  • 25
1
2
3
11 12