Bug #495
io.h missing
| Status: | Closed | Start date: | 10/16/2012 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | gr-audio-portaudio | |||
| Target version: | - | |||
| Resolution: |
Description
In Windows there is no implementation of audio. windows-audio is encapsulated with #if 0 and hence it does nothing. I use portaudio to give support to audio. However, since it uses ::write() functions, io.h shall be included to avoid compile errors.
History
Updated by Josh Blum 6 months ago
- Resolution set to worksforme
Pol Henarejos wrote:
In Windows there is no implementation of audio. windows-audio is encapsulated with #if 0 and hence it does nothing. I use portaudio to give support to audio. However, since it uses ::write() functions, io.h shall be included to avoid compile errors.
Are you using gr-audio? Because gr-audio-portaudio is deprecated or removed.
As far as I know, gr-audio compiles windows support and worked for me last time I tried it:
########################################################################
## Windows Support
########################################################################
if(WIN32)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/windows)
list(APPEND gr_audio_libs winmm.lib)
list(APPEND gr_audio_sources
${CMAKE_CURRENT_SOURCE_DIR}/windows/audio_windows_source.cc
${CMAKE_CURRENT_SOURCE_DIR}/windows/audio_windows_sink.cc
)
endif(WIN32)
Updated by Josh Blum 6 months ago
- Resolution deleted (
worksforme)
Josh Blum wrote:
Pol Henarejos wrote:
In Windows there is no implementation of audio. windows-audio is encapsulated with #if 0 and hence it does nothing. I use portaudio to give support to audio. However, since it uses ::write() functions, io.h shall be included to avoid compile errors.
Are you using gr-audio? Because gr-audio-portaudio is deprecated or removed.
As far as I know, gr-audio compiles windows support and worked for me last time I tried it:
[...]
I take it back, I see that windows audio sink is implemented, but not the source.
As far as the port audio is concerned - can you try adding
#ifdef _MSC_ver #include <io.h> #endif
And submit the patch?
Updated by Nicholas Corgan 5 months ago
I don't see an issue with the port-audio files. Without adding any ifdefs to bring in io.h, it's always compiled fine.
Updated by Ben Reynwar 4 months ago
Any objections to closing this issue and creating a windows-audio feature request?
Updated by Ben Reynwar 3 months ago
- Status changed from New to Closed