Not a WAVE file - no WAVE header
See original GitHub issue#Error Report
Application: Spytify
Version: 1.6.0.0
Region:
Date: 4/30/2020
Time: 11:37 PM
Error Message: Not a WAVE file - no WAVE header
##Stack Traces
Top-level Exception
Type: System.FormatException
Message: Not a WAVE file - no WAVE header
Source: NAudio
Stack Trace: at NAudio.FileFormats.Wav.WaveFileChunkReader.ReadWaveHeader(Stream stream)
at NAudio.Wave.WaveFileReader..ctor(Stream inputStream, Boolean ownInput)
at EspionSpotify.Recorder.<WriteStreamOutputToFileBasedOnNumberOfChannels>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EspionSpotify.Recorder.<WaveIn_RecordingStopped>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
##Assembly References
- ExceptionReporter.NET, Version=4.0.2.0
- MetroFramework, Version=1.4.0.0
- mscorlib, Version=4.0.0.0
- NAudio, Version=1.9.0.0
- NAudio.Lame, Version=1.0.9.26885
- Newtonsoft.Json, Version=12.0.0.0
- PCLWebUtility, Version=1.0.0.0
- SpotifyAPI.Web, Version=1.0.0.0
- SpotifyAPI.Web.Auth, Version=1.0.0.0
- Spytify, Version=1.6.0.0
- System, Version=4.0.0.0
- System.Core, Version=4.0.0.0
- System.Drawing, Version=4.0.0.0
- System.IO.Abstractions, Version=7.0.0.0
- System.Net.Http, Version=4.0.0.0
- System.Windows.Forms, Version=4.0.0.0
- System.Xml, Version=4.0.0.0
- taglib-sharp, Version=2.1.0.0
##System Info
Operating System
-Microsoft Windows 10 Pro
--CodeSet = 1252
--CSDVersion =
--CurrentTimeZone = -360
--FreePhysicalMemory = 12562464
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.18362
Machine
-VIPERSPC
--Manufacturer = System manufacturer
--Model = System Product Name
--TotalPhysicalMemory = 17116495872
Issue Analytics
- State:
- Created 3 years ago
- Comments:27 (11 by maintainers)
Top Results From Across the Web
`Not a WAVE file - no RIFF header` locks file
Try using a stream: using(var inputStream = new FileStream(audioFileLocation, FileMode.Open, FileAccess.Write, FileShare.
Read more >[Solved]-`Not a WAVE file - no RIFF header` locks file-C#
Try using a stream: using(var inputStream = new FileStream(audioFileLocation, FileMode.Open, FileAccess.Write, FileShare.ReadWrite)) { using (var reader ...
Read more >Wav File Header Data not being created properly
I have written a simple audio Application that generates a sin wave and then stores it in a .wav file I create. My...
Read more >"WAV file header does not contain RIFF/WAV/fmt/data"?
When I try to load the wav file in the other program, it complains that "this file's header does not contain RIFF/WAVE/fmt/data!
Read more >wave — Read and write WAV files
The wave module provides a convenient interface to the Waveform Audio “WAVE” (or “WAV”) file format. Only files using WAVE_FORMAT_PCM are supported. Note...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This latest one (spytify-reset-position-without-flush.zip) is working fine for me. Managed to record about 10 songs without error messages, using the same settings as my previous post.
Offtopic: I finished the spanish translation for future versions.
Hi jwallet, first thanks for your work on this app. I’ll contribute with a translation soon.
I’m receiving the same WAVE header error message.
I tried just now using the “spytify-audio-writer” debug version you posted above, and receive the following error message on the log (output path has been blurred):
Instead of a TEMP file, a failed MP3 output was created in the output folder. See attachment.
output.zip