-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scd parsing overhaul (TODO: mutli-channel stuff)
- Loading branch information
Showing
7 changed files
with
325 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
using NAudio.Wave; | ||
using System.IO; | ||
using System.Numerics; | ||
|
||
namespace VfxEditor.ScdFormat.Music.Data { | ||
public abstract class ScdAudioData { | ||
public readonly ScdAudioEntry Entry; | ||
|
||
public ScdAudioData( ScdAudioEntry entry ) { | ||
Entry = entry; | ||
} | ||
|
||
public abstract WaveStream GetStream(); | ||
|
||
public abstract int SamplesToBytes( int samples ); | ||
|
||
public abstract int TimeToBytes( float time ); | ||
|
||
public abstract void BytesToLoopStartEnd( int loopStart, int loopEnd, out double startTime, out double endTime ); | ||
public abstract Vector2 GetLoopTime(); | ||
|
||
public abstract void Write( BinaryWriter writer ); | ||
|
||
public abstract int GetSubInfoSize(); | ||
} | ||
} |
Oops, something went wrong.