Bug #495

io.h missing

Added by Pol Henarejos about 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:10/16/2012
Priority:LowDue 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

#1 Updated by Josh Blum almost 2 years 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)

#2 Updated by Josh Blum almost 2 years 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?

#3 Updated by Nicholas Corgan almost 2 years 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.

#4 Updated by Ben Reynwar almost 2 years ago

Any objections to closing this issue and creating a windows-audio feature request?

#5 Updated by Ben Reynwar over 1 year ago

  • Status changed from New to Closed

Also available in: Atom PDF