Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Playback plays at 50% speed with AAC files

$
0
0
btw is there a trick to getting Property changes recognised in the Constructor without an extra Init() function?

For example:

I have this property:
        public bool PreferMediaFoundation
        {
            get { return preferMediaFoundation; }
            set { preferMediaFoundation = value; }
        }   
The user calls it via:
_waveStream = new AacFileReader(sAudioFile) 
{ 
    PreferMediaFoundation = true 
};
... but "PreferMediaFoundation = true" is processed AFTER the constructor is done.

I need to take care ofPreferMediaFoundation in the constructor itself if possible. Otherwise I would need to add an extra constructor variable.

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images