---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/SoundSampleData
---

# SoundSampleData

## Overview

`SoundSampleData` is a class in Aspose.PDF FOSS for .NET.

SoundSampleData constructors allow specifying samplingRate alone or together with numberOfSoundChannels, bitsPerChannel, and SoundSampleDataEncodingFormat.

This class provides 4 methods for working with SoundSampleData objects in .NET programs.
Available methods include: `SoundSampleData`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `BitsPerChannel`, `DefaultEncodingFormat`, `DefaultOfBitsPerChannel`, `DefaultOfSoundChannels`, `DefaultSamplingRate`, `EncodingFormat`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `SamplingRate` | `long` | Read/Write | Gets or sets the sampling rate. |
| `NumberOfSoundChannels` | `int` | Read/Write | Gets or sets the number of sound channels. |
| `BitsPerChannel` | `int` | Read/Write | Gets or sets the bits per channel. |
| `EncodingFormat` | `SoundSampleDataEncodingFormat` | Read/Write | Gets or sets the encoding format. |
| `DefaultSamplingRate` | `long` | Read | Gets the default sampling rate. |
| `DefaultOfSoundChannels` | `int` | Read | Gets the default of sound channels. |
| `DefaultOfBitsPerChannel` | `int` | Read | Gets the default of bits per channel. |
| `DefaultEncodingFormat` | `SoundSampleDataEncodingFormat` | Read | Gets the default encoding format. |

## Methods

| Signature | Description |
|-----------|-------------|
| `SoundSampleData(samplingRate: long)` | Calls SoundSampleData(samplingRate) on this SoundSampleData instance. |
| `SoundSampleData(samplingRate: long, numberOfSoundChannels: int)` | Calls SoundSampleData(samplingRate, numberOfSoundChannels) on this SoundSampleData instance. |
| `SoundSampleData(samplingRate: long, numberOfSoundChannels: int, bitsPerChannel: int)` | Calls SoundSampleData(samplingRate, numberOfSoundChannels, bitsPerChannel) on this SoundSampleData instance. |
| `SoundSampleData(samplingRate: long, numberOfSoundChannels: int, bitsPerChannel: int, soundSampleDataEncodingFormat: SoundSampleDataEncodingFormat)` | Calls SoundSampleData(samplingRate, numberOfSoundChannels, bitsPerChannel, soundSampleDataEncodingFormat) on this SoundSampleData instance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)