File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,25 @@ public DFPWMStream(Profile profile, uint sampleRate)
85
85
{
86
86
Profile = profile ?? throw new ArgumentNullException ( nameof ( profile ) ) ;
87
87
if ( sampleRate == 0 )
88
- throw new ArgumentException ( "Sample rate must be greater than zero." , nameof ( sampleRate ) ) ;
88
+ throw new ArgumentException ( "Sample rate must be greater than zero." ,
89
+ nameof ( sampleRate ) ) ;
89
90
SampleRate = sampleRate ;
90
91
}
91
92
92
93
94
+ /// <summary>
95
+ /// Gets or sets the current position within the stream,
96
+ /// automatically adapts to the last bit.
97
+ /// </summary>
98
+ ///
99
+ /// <returns>
100
+ /// The current position within the stream.
101
+ /// </returns>
102
+ ///
103
+ /// <exception cref="ArgumentOutOfRangeException">
104
+ /// </exception>
105
+ /// <exception cref="ObjectDisposedException">
106
+ /// </exception>
93
107
public override long Position
94
108
{
95
109
get => base . Position ;
Original file line number Diff line number Diff line change 6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
<Nullable >warnings</Nullable >
8
8
<SignAssembly >False</SignAssembly >
9
+ <GenerateDocumentationFile >true</GenerateDocumentationFile >
10
+ <IncludeSymbols >true</IncludeSymbols >
11
+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
12
+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
13
+ <PrivateRepositoryUrl >https://github.com/0KepOnline/MeowingDFPWM</PrivateRepositoryUrl >
14
+ <ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
9
15
<Title >MeowingDFPWM</Title >
10
16
<Authors >0KepOnline</Authors >
11
17
<Description >DFPWM implementation for .NET with DFPWM/DFPWM1a profiles support.</Description >
17
23
<PackageTags >dfpwm;dfpwm1a;computronics;opencomputers;computercraft;minecraft</PackageTags >
18
24
<NeutralLanguage >en</NeutralLanguage >
19
25
<GeneratePackageOnBuild >True</GeneratePackageOnBuild >
20
- <Version >1.0.1</Version >
26
+ <Version >1.0.1</Version >
21
27
</PropertyGroup >
22
28
23
29
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
29
35
<DebugType >portable</DebugType >
30
36
</PropertyGroup >
31
37
38
+ <ItemGroup >
39
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" >
40
+ <PrivateAssets >all</PrivateAssets >
41
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
42
+ </PackageReference >
43
+ </ItemGroup >
44
+
32
45
<ItemGroup >
33
46
<None Update =" MeowingDFPWMIcon-128px.png" >
34
47
<Pack >True</Pack >
You can’t perform that action at this time.
0 commit comments