Пример #1
0
 /// <summary>
 /// Creates and adds a session to this dataset using the specified parameters.
 /// </summary>
 /// <param name="dataset">This dataset.</param>
 /// <param name="storeName">The name of the application that generated the persisted files, or the root name of the files.</param>
 /// <param name="storePath">The directory in which the main persisted file resides or will reside, or null to create a volatile data store.</param>
 /// <param name="startTime">Starting time for streams of data..</param>
 /// <param name="audioBufferSizeMs">The size of each data buffer in milliseconds.</param>
 /// <param name="sessionName">The name of the session (optional, defaults to streamReader.Name).</param>
 /// <param name="partitionName">The partition name.</param>
 /// <returns>The newly added session.</returns>
 public static Session AddSessionFromWaveFileStore(this Dataset dataset, string storeName, string storePath, DateTime startTime, int audioBufferSizeMs = WaveFileStreamReader.DefaultAudioBufferSizeMs, string sessionName = null, string partitionName = null)
 {
     return(dataset.AddSessionFromStore(new WaveFileStreamReader(storeName, storePath, startTime, audioBufferSizeMs), sessionName, partitionName));
 }
Пример #2
0
 /// <summary>
 /// Creates and adds a session to this dataset using the specified parameters.
 /// </summary>
 /// <param name="dataset">This dataset.</param>
 /// <param name="storeName">The name of the application that generated the persisted files, or the root name of the files.</param>
 /// <param name="storePath">The directory in which the main persisted file resides or will reside, or null to create a volatile data store.</param>
 /// <param name="sessionName">The name of the session (optional, defaults to streamReader.Name).</param>
 /// <param name="partitionName">The partition name.</param>
 /// <returns>The newly added session.</returns>
 public static Session AddSessionFromPsiStore(this Dataset dataset, string storeName, string storePath, string sessionName = null, string partitionName = null)
 {
     return(dataset.AddSessionFromStore(new PsiStoreStreamReader(storeName, storePath), sessionName, partitionName));
 }