arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Functions
audio_tools::quickstart_detail Namespace Reference

SFINAE helper for FileSeekableSource's auto-quickStart: calls writer.quickStart() if that method exists, no-op otherwise - most WriterT types (e.g. an AVI/WAV decoder) don't have one. More...

Classes

class  HasQuickStart
 

Functions

template<typename T >
std::enable_if<!HasQuickStart< T >::value, bool >::type callQuickStartIfAvailable (T &)
 
template<typename T >
std::enable_if< HasQuickStart< T >::value, bool >::type callQuickStartIfAvailable (T &writer)
 

Detailed Description

SFINAE helper for FileSeekableSource's auto-quickStart: calls writer.quickStart() if that method exists, no-op otherwise - most WriterT types (e.g. an AVI/WAV decoder) don't have one.

Function Documentation

◆ callQuickStartIfAvailable() [1/2]

template<typename T >
std::enable_if<!HasQuickStart< T >::value, bool >::type callQuickStartIfAvailable ( T &  )

◆ callQuickStartIfAvailable() [2/2]

template<typename T >
std::enable_if< HasQuickStart< T >::value, bool >::type callQuickStartIfAvailable ( T &  writer)