문제

Can any one tell me that how to decode mp3 file.
I want to decode mp3 file likewise any media player but my work is to decode and read its specific characteristics.
Can I use NAudio for this purpose?
Now what I need is RAWDATA of the mp3 file.

도움이 되었습니까?

해결책

Use this method bits[index] you can access

e.g

BitArray bits = new BitArray(FrameByteArray);
Console.Write(bits[59]);

다른 팁

See http://msdn.microsoft.com/en-us/library/system.collections.bitarray.get.aspx

BitArray.Get Method: Gets the value of the bit at a specific position in the BitArray.

bool value = bits[149];

Remember that the index is zero-based.

MSDN documentation

The BitArray class definitely defines an indexer, so you shouldn't have any problem getting the value using bits[149]. That value will be a bool rather than an int though, so you have to check it against true/false rather than 1/0.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top