Questions tagged [waveout]

waveOut is an API for playing digital sounds in Windows.

52 questions
0
votes
1 answer

NAudio - WaveOutEvent.Volume Muted my entire game and I CANNOT revert it

I modified the volume for my game with naudio and it is now completely muted, how do I make the sound work again? This is the code: private readonly WaveOutEvent Music_Output = new WaveOutEvent(); //I play the music on a timed event, you can…
omoor
  • 73
  • 8
0
votes
0 answers

Efficient way to port WaveOut API (using OpenAL?)

In the past years I used my own audio engine written using the WaveOutOpen API. Now I would like to port it to Linux / MacOS. I thought about using OpenAL. What would be an efficient way to port this to Linux without changing too much code? I'm…
Z0q
  • 1,689
  • 3
  • 28
  • 57
0
votes
1 answer

Using WAVEFORMATEXTENSIBLE with WAVE_FORMAT_IEEE_FLOAT, waveOutOpen returns WAVERR_BADFORMAT

I have been using WAVEFORMATEX with WaveOut to play audio in Windows, in stereo at rates from 44.1KHz to 192KHz using WAVE_FORMAT_IEEE_FLOAT. The program is written in C++ and compiled in MinGW. This is all working…
Raptor007
  • 366
  • 3
  • 10
0
votes
1 answer

How to get number of channels from audio playback devices?

The game Titanfall 2 shows the audio configuration for the playback device. https://i.stack.imgur.com/WcGpK.png Is there anything I can do to get this information via code in C#? Update & correction (September 29, 2019 at around 3:12pm UTC): The…
0
votes
0 answers

waveOutOpen hangs after waveOutClose in C#

I have a small c# application that uses the waveout interface to periodically call waveoutwrite for writing audio data to the soundcard. I do not use NAudio because I need to use a fixed buffersize of 8192 bytes. I use the mmdll library in a wrapper…
AudioGuy
  • 413
  • 5
  • 18
0
votes
1 answer

InvalidParameter calling waveOutOpen

I am attempting to implement Mp3 streaming using NAudio's BufferedWaveProvider following Mark Heath's blog here. I have all of my streaming implemented, but I'm getting an MmException with the message "InvalidParameter calling waveOutOpen." I saw…
Max
  • 11
  • 2
0
votes
0 answers

WaveOut stuttering while another media is playing in another environment

I am working on streaming mp3 in real time using NAudio library. I have prepared a code to do it and it works good in general except while another media is playing in another process (e.g. Youtube, local mp3 players..), . At that time, mp3 is…
Ali Tor
  • 2,772
  • 2
  • 27
  • 58
0
votes
1 answer

NAudio playback sample values much smaller than recorded values

When I record with nAudio using waveIn the buffer values that I get are large, my chart needs to be scaled to around 20 000 to display the samples correctly. When I replay this audio from the recorded wave file and capture samples from the waveOut…
0
votes
0 answers

waveOutOpen(), waveOutWrite() gives my thread undocumented message 1024

The sound output functions are giving me unexpected messages. Is this a sign I'm doing something wrong? If so what? Otherwise is there a good source that explains what these messages might be? waveOutOpen() gives me message 955 MM_WOM_OPEN as…
Swiss Frank
  • 1,985
  • 15
  • 33
0
votes
1 answer

WaveOut Program Crashing

I'm working on trying to read in raw .wav data and output the data to the speakers, mostly for self-experimentation and teaching. A secondary reason I want the data myself is so I could parse it to try separating pitches perhaps, or building an…
0
votes
1 answer

DirectSound affects system volume on WinXP

I'm currently developing an audio engine that is used in voice network chat software. Everything is working fine - capture/playback/mixing channels. The problem is in using it under Windows XP. I've been getting user reports with information that…
Dalamber
  • 1,009
  • 1
  • 12
  • 32
0
votes
1 answer

InvalidParameter calling waveOutOpen MmException

This code works on 32bit Windows XP but on 64bit Windows 7 it raises an exception. (on any CPU configuration) var format = NAudio.Wave.WaveFormat.CreateCustomFormat( WaveFormatEncoding.Pcm, 8000, 1, 16000, 1, 16) BufferedWaveProvider…
Alen
  • 15
  • 1
  • 6
0
votes
1 answer

What is most common way to play sample buffer in windows in C++?

I am developing a cross-platform audio editor (C++) and it has platform-specific AudioDevice class implementation. This class plays sounds from memory buffer. Primary OS is Linux, but sometimes i give attention to windows port too. The current…
pavelkolodin
  • 2,859
  • 3
  • 31
  • 74
0
votes
3 answers

Bad performance with waveOut synth

I did some research on sound synthesis and managed to write a very simple synthesizer. I've used the microsoft waveOut API. I wrote an interface to simplify the whole process. I can now initialize a (mono) audio stream and call setSample. So with a…
Ruben
  • 524
  • 1
  • 6
  • 14
0
votes
2 answers

no stereo audio in speakers and in one earphone using waveout

I have written an application using MSoft WaveOut api and it works fine except that my speakers don't play stereo only mono. When I plug an earphone in one of the two jacks in one I get the same mono behavior but the other jack plays the file in…