New Post: AcmNotPossible calling acmStreamOpen
OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "C:\\Users\\jack_sparrow_000\\OneDrive\\Documents"; openFileDialog1.Filter = "wav files (*.wav)|*.wav";...
View ArticleNew Post: AcmNotPossible calling acmStreamOpen
I think you have the wrong project... Try posting in the NAudio project.
View ArticleNew Post: AcmNotPossible calling acmStreamOpen
Thank you sorry I never noticed I was on the wrong project.
View ArticleSource code checked in, #88aec8622b7332120909a42a6f2a7bc709158dcb
* Update version numbers and notes
View ArticleReleased: NVorbis v0.8.4 (Nov 20, 2014)
BugFix: Forward seeking when target page ends with partial packet should ignore partial packetChanged MDCT to be thread-safe
View ArticleCreated Release: NVorbis v0.8.4 (Nov 20, 2014)
BugFix: Forward seeking when target page ends with partial packet should ignore partial packetChanged MDCT to be thread-safe
View ArticleNew Post: OGG playback problem
Hello! Today I faced some problem with your NVorbis lib. I tried to play some OGG file and got following error msg... System.IO.InvalidDataException: Found invalid data to decode. at...
View ArticleNew Post: OGG playback problem
I haven't actually looked at the files yet, but that error should only happen when the reader got a "continuation" packet but wasn't expecting it (basically, the page header on a page indicated the...
View ArticleSource code checked in, #ff020df6f07ccb77c06024ca971eae46eb0ac8fa
* Bugfix: Max-size partial packets should trigger continuation logic
View ArticleNew Post: OGG playback problem
Wow, the "non-working" file has a 110,842 byte comment packet... The page reader didn't know how to handle that properly, so it just "assumed" the packet was complete and blew up when the next packet...
View ArticleNew Post: [SOLVED] OGG playback problem
Thank you so much! :) Will test it this evening. Edit: It's working now, thanks so much! :) Best regards
View ArticleNew Post: Cross-platformness and .NET Core
Merry xmas! I will be developing a 2D game engine for my personal projects sometime next year, supporting Ogg Vorbis without using unmanaged code would be great but was this library designed to work on...
View ArticleNew Post: Cross-platformness and .NET Core
NVorbis should work fine on all .Net compatible frameworks. If it doesn't, send a bug report so it can be addressed.Merry Christmas!
View ArticleNew Post: NullReferenceException when loading audio
Stacktrace: at NVorbis.VorbisCodebook.InitTree(DataPacket packet) in e:\Programming\Nvorbis\NVorbis\VorbisCodebook.cs:line 125 at NVorbis.VorbisCodebook.Init(DataPacket packet) in...
View ArticleNew Post: How to decode OGG to Wav from byte array properly?
I am creating a custom file format for my game, the file contains some game assets such as the sprite and the ogg file as the bgm of the game, and i want to load the ogg file without writing it into...
View ArticleNew Post: How to decode OGG to Wav from byte array properly?
Three options:Wrap the byte data in a MemoryStream: var oggStream = new MemoryStream(oggData);Change the custom file format reader to return a stream that reads data as needed (preferred) Implement...
View ArticleNew Post: How to decode OGG to Wav from byte array properly?
Seem i figured out how to decode it with 1st option (not sure tho, it uses NVorbis.VorbisReader), but the decoding process somehow is so heavy, its seem due to loop on ReadSamples Here my code:public...
View ArticleNew Post: How to decode OGG to Wav from byte array properly?
To be honest, no. Your problem here is massive memory allocations. I'm seeing 1) the ogg file, 2) the write buffer (about 11x the ogg file size), and 3) the result buffer (same as # 2). That means for...
View ArticleNew Post: How to decode OGG to Wav from byte array properly?
BTW, the performance bottleneck you see in the loop on ReadSamples is due to MemoryStream having to expand its capacity pretty often. If you don't want to (or can't) change the logic:Set the...
View Article