Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
Generalubiquitous error Pin
Anonymous14-Jul-04 15:23
Anonymous14-Jul-04 15:23 
GeneralRe: ubiquitous error Pin
Nick Parker14-Jul-04 17:00
protectorNick Parker14-Jul-04 17:00 
GeneralCrystal Report Pages Pin
Saktya14-Jul-04 14:29
Saktya14-Jul-04 14:29 
GeneralRe: Crystal Report Pages Pin
Pain_Elemental14-Jul-04 21:44
Pain_Elemental14-Jul-04 21:44 
QuestionFree menu/toolbar library? Pin
Arun Bhalla14-Jul-04 12:46
Arun Bhalla14-Jul-04 12:46 
AnswerRe: Free menu/toolbar library? Pin
Werdna16-Jul-04 5:58
Werdna16-Jul-04 5:58 
GeneralRegistering subclasses with their base Pin
khan200014-Jul-04 12:11
khan200014-Jul-04 12:11 
GeneralProblem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 11:07
crushinghellhammer14-Jul-04 11:07 
I was checking out Ianier Munoz's implementation of streaming audio input using the DirectSound API and C# .NET. My question has to do with a problem I'm facing in C#.

The function I want to access is declared as follows:

[c]
public void Play(nsStreamPlayer.PullAudioCallback pullAudio)
{
// Bunch of stuff
}
[/c]

nsStreamPlayer is a namespace in which a delegate and an interface are defined.

[c]
namespace nsStreamPlayer
{
///
/// Delegate used to fill in a buffer
///

public delegate void PullAudioCallback(IntPtr data, int count);

///
/// Audio player interface
///

public interface IAudioPlayer : IDisposable
{
int SamplingRate { get; }
int BitsPerSample { get; }
int Channels { get; }

int GetBufferedSize();
void Play(PullAudioCallback onAudioData);
void Stop();
}
}
[/c]

The "Play" function is defined in a nested private class

[c] private class PullStream : Stream [/c]

which itself belongs to a public class StreamingPlayer

[c] public class StreamingPlayer : IDisposable, nsStreamPlayer.IAudioPlayer [/c]

NOW: On my mainform designer I have a button called btnStartStream.

I want to write the code such that clicking btnStartStream calls the play function. How do I do this? Everything I've tried throws up an error message.

I know I'm missing something basic. Could you please help me out?

Thanks a lot for your time!
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 11:42
protectorNick Parker14-Jul-04 11:42 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 11:57
crushinghellhammer14-Jul-04 11:57 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 12:25
crushinghellhammer14-Jul-04 12:25 
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 13:19
protectorNick Parker14-Jul-04 13:19 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 13:29
crushinghellhammer14-Jul-04 13:29 
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 15:19
protectorNick Parker14-Jul-04 15:19 
GeneralFileStream / BinaryReader Pin
PaleyX14-Jul-04 10:31
PaleyX14-Jul-04 10:31 
GeneralRe: FileStream / BinaryReader Pin
Nick Parker14-Jul-04 11:54
protectorNick Parker14-Jul-04 11:54 
QuestionPlease i need helping in TAPI application ? Pin
Wail A.Salem14-Jul-04 10:18
Wail A.Salem14-Jul-04 10:18 
AnswerRe: Please i need helping in TAPI application ? Pin
Nick Parker14-Jul-04 10:31
protectorNick Parker14-Jul-04 10:31 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Michael P Butler14-Jul-04 10:34
Michael P Butler14-Jul-04 10:34 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Nick Parker14-Jul-04 10:47
protectorNick Parker14-Jul-04 10:47 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Michael P Butler14-Jul-04 10:52
Michael P Butler14-Jul-04 10:52 
AnswerRe: Please i need helping in TAPI application ? Pin
Michael P Butler14-Jul-04 10:31
Michael P Butler14-Jul-04 10:31 
Generalrss readers Pin
Konstantin_progr14-Jul-04 10:08
Konstantin_progr14-Jul-04 10:08 
GeneralRe: rss readers Pin
Michael P Butler14-Jul-04 10:43
Michael P Butler14-Jul-04 10:43 
GeneralRe: rss readers Pin
Konstantin_progr14-Jul-04 10:45
Konstantin_progr14-Jul-04 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.