Jump to content

  • Log In with Google      Sign In   
  • Create Account

CdrTomalak

Member Since 12 Mar 2012
Offline Last Active Aug 01 2014 04:19 PM

Posts I've Made

In Topic: NAudio problems.

04 February 2014 - 01:04 PM

PadWithZeroes is a property that prevents the buffer from stopping the playback.

It usually keeps on playing an "empty sound" waiting for new data in the buffer.

I guess this is used when streaming, to allow continuous playing without the need to restart it every time the stream data is late for any reasons.

 

Have you seen this: [?]

http://naudio.codeplex.com/discussions/357995#post844154

Thanks for the heads up on that.

 

I've read that thread and it's exactly the problem I'm getting.

 

Mark has suggested I look at his blog so I'm going to give that a go now.


In Topic: NAudio problems.

03 February 2014 - 02:59 AM


What does Array[i].play() do exactly (like in what does it call)?

 

It calls the Play() method of the WaveOutEvent object, which plays a sound in a new thread.

 


What is the PadWithZeroes property value you're using?

 

Not sure what property is being referred to. Can you clarify?


In Topic: Easy to use c# sound API - thoughts?

29 January 2014 - 02:06 PM

I've had a look at BASS.NET. This still looks like an API where I'd end up writing boiler-plate code to play a sound even.

 

SDL.NET seems to have terrible support, so if I got stuck I'd be on my own somewhat.

 

I had a go with Naudio and Xaudio2 a while back and ditched them for WMP.dll, which worked well enough at the time.


In Topic: Threading and sound. Annoying bug.

26 January 2014 - 02:32 PM

Thanks Phil. The only reason I'm using threads is that when I play without a thread all execution waits for the sound to finish. Can you recommend a simple method I could use? I thought that sound playing had to be done via threading due to the wait issue, but I could be very wrong here!


In Topic: SlimDX D3D11 - Too many view objects.

26 January 2014 - 11:24 AM

Thanks Iwm! I went through the code and created a view for each texture as part of initialisation. The error has gone away now. I left the game running on 100 lives and it just keeps on going... smile.png


PARTNERS