Commit Graph

11 Commits

Author SHA1 Message Date
Rob Watson 6dde29cdcf GetPeaksForSegment: add extra invalid arg check 2022-02-04 16:22:06 +01:00
Rob Watson 06fce9af95 Refactor MediaSetService.GetPeaksForSegment.
continuous-integration/drone/push Build is failing Details
- Fix bug where the function would return empty high bins when
  framesPerBin was a low value (< ~10)
- Improve readability
- Add error test cases
2022-01-07 13:34:18 +01:00
Rob Watson 5a4ee4e34f Add FFmpeg WorkerPool
continuous-integration/drone/push Build is passing Details
2022-01-05 19:49:47 +01:00
Rob Watson 2b1a668c9d Add GetAudioSegment flow
continuous-integration/drone/push Build is passing Details
2021-12-29 16:41:43 +01:00
Rob Watson dd526b6916 Extract ModuloReader from service.go
continuous-integration/drone/push Build is passing Details
2021-12-17 17:52:59 +01:00
Rob Watson 2445ebc02f Rename gRPC endpoints and service methods.
- GetAudio > GetPeaks
- GetAudioSegment > GetPeaksForSegment
2021-12-17 17:30:53 +01:00
Rob Watson f2d7af0860 Extract S3 code to S3FileStore
Re: #5
2021-12-07 20:58:11 +01:00
Rob Watson 468ddf4e9a Add benchmark for MediaService.GetAudioSegment 2021-12-06 18:40:02 +01:00
Rob Watson 6d8b1beba7 Add test coverage for MediaService.GetAudioSegment 2021-12-05 20:05:58 +01:00
Rob Watson 8794b42459 ModuloReader: handle zero reads from inner reader 2021-11-21 16:09:30 +01:00
Rob Watson 97a55632ef Fix panic when reading blocks not divisible by 4 2021-11-21 16:09:30 +01:00