Class SampleRateConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.IO.Audio
Assembly: Glitch9.IO.dll
Syntax
public class SampleRateConverter : JsonConverter<SampleRate>
Methods
| Edit this page View SourceReadJson(JsonReader, Type, SampleRate, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override SampleRate ReadJson(JsonReader reader, Type objectType, SampleRate existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| SampleRate | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| SampleRate | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, SampleRate, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, SampleRate value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| SampleRate | value | The value. |
| JsonSerializer | serializer | The calling serializer. |